Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-09-2004, 12:25 PM   #1
LQ Newbie
Registered: May 2003
Location: Tuscaloosa, AL
Distribution: RedHat Rel 7.2 - 2.4.7-10
Posts: 27

Rep: Reputation: 15
Question single user mode using grub

I rebooted my linux box and it says run 'fsck manually. But I've forgotten the root password. How do i login into single user mode from grub?
Plz advice.

Old 08-09-2004, 01:31 PM   #2
Registered: Aug 2004
Distribution: Suse 9.1 Pro
Posts: 54

Rep: Reputation: 15
Hey, you can't just "log" into single user mode from grub. At least that is what I gather. Grub can manually launch your Linux distro, but its the linux stuff, not grub, that is affected. I'm a noob, so in your situation, I would reinstall Linux. Of course, if you have stuff you want to save, use a recover floppy and dump your info onto floppy or nother hard drive. Hope this helps....

Also, if it is a Grub error, is it stage one or two. I think if it is a boot up error, it is stage two. If your OS is the problem, I'd reinstall it. Then you can reset the root password.

Last edited by Eagle_Seven; 08-09-2004 at 01:33 PM.
Old 08-09-2004, 01:52 PM   #3
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
At the selection menu, highlight the linux entry.
Type e
arrow down to the line which starts with kernel
Type e
go to the end of the line and space over one space
Type init 1 and press the enter key
Type b to boot up in that mode ( single user / init 1 )

When you get to the prompt, you can change the root password with the passwd command.

When you are done, no need to reboot, just type init 5
Old 09-02-2004, 02:33 PM   #4
LQ Newbie
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
or at GRUB you select a to append kernel args and type ' single' at the end of the line the boot.

Old 09-02-2004, 02:49 PM   #5
Registered: Aug 2004
Distribution: Fedora Core 4
Posts: 90

Rep: Reputation: 15
Originally posted by Eagle_Seven
Hey, you can't just "log" into single user mode from grub. At least that is what I gather. Grub can manually launch your Linux distro, but its the linux stuff, not grub, that is affected.
Actually, you can boot into 'single -user mode' from GRUB and LILO (and probably others). Single user mode is useful in cases like this where the owner has forgotten the root password. The password set during single user mode becomes the root password. More on single user mode:



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
single user mode in GRUB isaac_linux Linux - General 1 04-03-2004 09:27 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 09:52 AM
Single User Mode From GRUB medamnit Linux - Newbie 3 05-20-2002 05:08 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM
grub boot loader and single user mode midnightcommander Linux - General 1 04-02-2001 04:12 AM

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration