grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[semi-PATCH] grub.texi: emergency booting without root passwd


From: jidanni
Subject: [semi-PATCH] grub.texi: emergency booting without root passwd
Date: Sat, 27 Dec 2008 03:10:07 +0800

Please add this somewhere you feel comfortable with in grub.texi.

I looked, but cannot find the right place.

Thank you.

@Chapter Tips
@node Forgot the root password
One place when grub can come in very handy is when one forgot the root
password, and hence cannot boot or even shutdown the system. Use
@example
linux   /boot/vmlinuz-... root=... rw init=/bin/sh
initrd  /boot/initrd.img-...
@end example
The key is the "rw init=/bin/sh". (And after editing /etc/passwd to change
root's :x: to ::, be sure not to just exit the shell, but hit
CTRL-ALT-DEL, else one has to push the reset button.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]