On Wed, Apr 24, 2002 at 10:00:19AM -0000, it  Force wrote:
> How to go to single user mode?
> 
> is there any way i can go to single user mode like how
> LILO has in it? ie. linux single
> 
> i seem to have lost my root password.

Well, adding 's' or '1' to the end of the kernel command line will get
you into single-user mode. However, most modern distros run 'sulogin' if
you try to boot into single-user mode, so in your case that may not help.
You may need to append 'init=/bin/sh' to your kernel command line,
manually remount ('mount -o remount -n -w /') your root partition, and
then run 'passwd' to reset root's password. (Remember to 'mount -o
remount -n -r / ; sync ; sync ; reboot -f' when you're done, otherwise
the FS won't be sync'd or unmounted, and your changes will probably be
lost.)

When you're at the GRUB menu, press 'e' to edit the selected menu item,
then select the line to edit, press 'e' again, and make your changes.
Then once you've made the needed changes, press 'b' to boot (don't go
back to the root menu, your changes will be lost).

-- 
Derrik Pates      |   Sysadmin, Douglas School   |    #linuxOS on EFnet
[EMAIL PROTECTED] |     District (dsdk12.net)    |    #linuxOS on OPN

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to