ubuntu 싱글모드

기본적으로 리눅스는 Grub 에서 편집모드로 들어가서 커널 구문 맨 뒤에 single 

이라는 구문을 추가시켜주면 싱글모드로 부팅된다. 하지만 우분투 8.04는 좀
달라서 애를 먹었다.

Gurb Recovery 모드로 부팅했다.

여기서 3번째를 선택했으나

Give root Password for maintenance

for type Control-D to continue:
이렇게 뜬다. 루트 패스워스를 묻는다…Root 패스워드 잊어서 왔는데 이거 머니!!!!
그래서 구글링을 했다.  역시 우분투 사이트에서 찾을수있었다.. 나랑 비슷한 사례를
당한 사람이 별루 없었나 약간 헤매어서 찾게되었다..

The Standard Way

/!\ This procedure gives you a full root shell! You can damage your system if you are not careful!

  1. When booting up press ESC at the grub prompt and use the arrow keys to select the rescue mode option and press enter.
  2. This will boot the system in rescue mode and you should arrive at a prompt that looks like this
    • root@something
  3. To reset your password type this in
    • passwd <username>

      and then enter you new password.

  4. Once you are done resetting your password you can than switch back to the normal GUI mode by putting this in
    • init 2

If if appears to boot normally, but you see a message that says:

  • Give root password for maintenance (or type Control-D to continue):

then you will have to try a different trick below.

 

The Other Way

If the “Standard Way” does not work for you and you recieve the “Give root password for maintenance” message, you can recover your password using the following steps

1. Reboot your computer

2. Press ESC at the grub prompt.

3. Select your image.

4. Highlight the line that begins kernel and press ‘e’ to edit

5. Go to the very end of the line, change the ro to rw and add init=/bin/bash

press enter, then press b to boot your system.

Your system will boot up to a passwordless root shell.

6. Type in passwd username

7. Set your password.

8. Type in reboot

이글 보고 작업 고고고
1 STEP

지금 쓰는 커널의 recovery mode 에 커서를 움직인후 b를 눌러 편집모드로 들어간다.

2.STEP

2번째 커널 구문에 커서를 놓고 다시 b를 눌러서 편집모드로 들어간다.

3.STEP

ro 를 rw로 바꾸어 주고 single 뒤에 init=/bin/bash 추가 엔터

엔터를 치면 다시 2번 화면으로 돌아온다 b를 눌러서 부팅!
b는 boot을 의미.
[참조] rw는 쓰기권한 init=/bin/bash는 bash쉘을 띄우라는 말이다.
4.STEP

passwd root 로 패스워드 Change! 그러나 reboot 명령이 안된다 ㅡㅡ;

exit 를 치니 아래와 같은 화면이 뜬다.  Ctrl + Alt + Del는 먹힌다.

여기서 바로 첫번째를 선택하면 바로 재부팅없이 x-window를 실행시킨다.

이제 바뀐 패스워드를 입력해서 쓰면 된다~http://envyteam.tistory.com/17

Leave your Comment

Your email address will not be published. Required fields are marked *