LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 06-06-2006, 11:57 AM   #1
jrocos
LQ Newbie
 
Registered: Sep 2005
Posts: 7

Rep: Reputation: 0
FC4 boot shows "no such user : root"


FC4 boot shows "no such user : root".
Since it cannot find the user root(superuser) all sorts of permissions are denied as the boot proceeds, leaving a console login prompt which ignores keyboard input. The full line is:

Starting udev : MAKEDEV : no such user : root

There, of course, was a root user in my previous installation of FC2 on this machine. In this installation it asked for a password for root.

Since upgrading to FC4 seems to have wiped out the ability to boot under my old kernels, I cannot boot the machine to make any repairs in a shell.

Please help! Thanks.
 
Old 06-06-2006, 12:13 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try using a knoppix CD to boot. Then mount your root partition, mount /dev/hda2 /mnt/hda2 and chroot /mnt/hda2 (be sure to use whatever proper dev and partition for your root filesystem). This should give you a root shell on your former system. Try to passwd root or something like that and see if you can reset your root password. If there's still no root user, I'm not sure what to do. But at least you could recover your old files and reinstall as a last resort...

Here's a link to system recovery with knoppix
 
Old 06-06-2006, 06:28 PM   #3
jrocos
LQ Newbie
 
Registered: Sep 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I obtained and used Knoppix (great stuff), and found that I, indeed, have a root user on my system. I chrooted to my hard disk, and was able to change the password of root.

There is no change when trying to boot. It denies permissions and denies that a user called root exists. Is it even possible to not have a root user in Linux? Why is the loader trying to verify that he exists? Wouldn't all operations at boot automatically be assumed to be done by root?

It would be nice to know which files are controlling the boot at this point and where they are trying to pick up the root user from. The ...no such user : root... happens directly after the "Welcome to Fedora press "I" for Interactive" message. A number of lines appear before this, denying access to various files. How could I possibly be booting as an underpriviledged user? Who would I be?

BTW, Thanks much for the Knoppix info!
 
Old 06-07-2006, 01:30 AM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I've honestly never seen this error before and google doesn't seem to be very helpful. My only recommendation is to enable your bootlog (on Debian edit /etc/default/bootlogd) and the try to reboot. It should create a file /var/log/boot.log. When the boot fails, reboot into Knoppix and see if there's anything useful in there...

Sorry I couldn't be more help...
 
Old 06-07-2006, 11:37 AM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I thought of one other thing you might check is that the root account on fedora has a UID and GID of 0 (i.e do the chroot thing you did above). Just look at /etc/passwd file. It should look like
Code:
root:x:0:0:root:/root:/bin/bash
 
Old 01-18-2007, 12:47 PM   #6
jerds
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Rep: Reputation: 0
I'm having the exact same problem, none of the above suggestions worked. Any idea why it would simply lose all the user information? Or how to fix this without restoring/reinstalling?
I can use a rescuedisk and see everything on the drive perfectly.
 
Old 01-21-2007, 09:20 AM   #7
Waperboy
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
I'm also having this exact same problem on my fathers box. It manifested after some hardware problem (memory), which caused random segmentation faults during boots - after replacing the memory, I now have this problem.

I can boot in single user mode, but when I do a whoami, it says cannot find user with id 0.

passwd, group, shadow etc. files are visible and readable, and user root, gdm and others are there.

/ is mounted on '/dev/VolGroup00/LogVol00', which seems a bit strange....

I'd really like to repair this - everything is there, the system has just somehow lost where to look for users...

Last edited by Waperboy; 01-21-2007 at 09:27 AM.
 
Old 02-15-2011, 11:06 AM   #8
amarn
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
FC

https://bugzilla.redhat.com/show_bug.cgi?id=192072 Check this bug
 
  


Reply


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
"rm -rf /tmp", now Evolution shows "(no folder displayed" Ed-MtnBiker Linux - Software 7 04-10-2006 04:05 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM
why does KDE shows only "Log out to Root " and Gnome has all options ? kishore_coolboy Linux - Newbie 2 03-11-2004 01:15 AM
System will not boot, shows "L 99 99 99..." oneway Mandriva 5 01-15-2004 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 04:21 PM.

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