본문 바로가기

Linux

우분투/(Mint) 패스워드 초기화

레드헷 계열 CentOS 와 우분투 계열은 싱글모드 진이 방식이 살짝 다름.


어쨋든 결론은 싱글 모드로 부팅만 하면 됨.


grub 모드 에서 (커널 고르는 선택 창)


커널 고른 후 'e' 누름


boot command를 Edit 하는 창으로 넘어감.




if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 \
    --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 2341023-1252-2235-1234-2352662331

else
    search --no-floppy --fs-uuid --set=root 2341023-1252-2235-1234-2352662331

fi

linux   /vmlinuz-3.13.0-40-generic root=/dev/mapper/ubuntu--vg-root ro  quiet splash $vt_handoff
initrd  /initrd.img-3.13.0-40-generic


quiet splash $vt_handoff  -->>> 이 부분을 


init=/bin/bash  치환// 바꿔준다


F10을 이용하여 현재 옵션으로 부팅 


이제 싱글모드로 부팅이 된다.


# 그럼 이제 아는것 처럼


passwd 명령어를 이용하여 루트패스워드 초기화 진행

'Linux' 카테고리의 다른 글

/etc/motd 를 이용하여 로그인 성공시 공지사항 출력  (0) 2016.02.04
xx월드)) php.ini 수정시 옵션  (0) 2016.01.25
리눅스 폴더,디렉토리 별 설명  (0) 2015.12.12
[CentOS 6.x] NFS,NIS 연동  (0) 2015.12.11
DNS 설정파일  (0) 2015.12.11