bug-grub
[Top][All Lists]
Advanced

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

Re: How to go to single user mode?


From: Derrik Pates
Subject: Re: How to go to single user mode?
Date: Wed, 24 Apr 2002 09:00:51 -0600
User-agent: Mutt/1.3.28i

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
address@hidden |     District (dsdk12.net)    |    #linuxOS on OPN



reply via email to

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