F8 freezes during boot - "getpwnam failed for roota"
Fedora 8 freezes during boot - "getpwnam failed for roota"
I'm running F8 dual-boot with XP on a Dell Inspiron 6000. Yesterday, Fedora ran fine all day - no sign of problems. Last night I switched over to the Win side for a few hours, and then shut the computer down for the night. This morning, I tried to boot into Fedora, and it hung on "Enabling local filesystem quotas". Left it for an hour or so, nothing happened. Tried rebooting into both available kernels several times, same thing. Windows still boots fine.
I booted into text mode and found an error "getpwnam failed for roota" at "Enabling local filesystem quotas". I can't find any information on this problem and 'roota' seems very strange to me. Any ideas??
Thanks in advance for any help you can provide.
Thanks for your response. This is the first case of this behavior or of an all-out crash of which I am aware. I didn't do anything that I know of that made the system unstable, certainly not during the days right before the problem began.
In /var/log/messages I found the following (repeated every 30 minutes during the day before the boot-up freezing started until I shut down to switch to the Windows partition):
May 4 04:29:14 localhost smartd: Device: /dev/sda, 1 Currently unreadable (pending) sectors
May 4 04:29:14 localhost smartd: Device: /dev/sda, 1 Offline uncorrectable sectors
Running 'badblocks -v -v /dev/sda' gives:
Pass completed, 0 bad blocks found
Running 'fsck -p /dev/sda' gives
fsck 1.40.2 (12-Jul-2007)
WARNING: couldn't open /etc/fstab: No such file or directory
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
Also, there is no daemon.log in /var/log - would it be anywhere else? How do I check the login database? 'rpm -qVa 2>&1> /tmp/rpmqVa.log' creates an empty rpmqVa.log file.
A few more pieces of information.
1. Digging back through old /var/log/messages files, I see that the bad sector message was appearing for over one month. Running a selftest with smartctl (smartctl -l selftest /dev/sda) gives the following:
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA
#1 Extended offline Completed without error 0% 7 -
2. If I change the entry for root in /etc/passwd to roota (after booting into the system with the rescue CD), I then get a message of "getpwnam failed for root" during bootup at the same point, and the same freeze.
3. Also, looking at lastlog shows only one entry. The full text of lastlog is below:
Username Port From Latest
root **Never logged in**
This strikes me as strange since I have certainly logged in as root and I usually login with another account on this machine (e.g., magmagal, which I still see a line for in the /etc/passwd file).
Is is possible that some file went corrupt? That I got hacked or got a virus somehow?? Any thought or suggestion would be appreciated.
Well, I still have no idea what caused the problem, despite spending lots of time trying to figure it out, but I solved it. Running fsck manually and answering yes to all prompted changes solved whatever was wrong.
Here's what I did:
1. Boot from Rescue CD
2. Answer no to prompt about mounting the filesystem ('Skip')
3. At the command line, enter the following sequence of commands:
> lvm pvscan
> lvm vgscan
> lvm lvscan
> lvm -lvchange -ay /dev/VolGroup00/LogVol00 (using information from previous commands)
4. Run fsck and answer 'y' to all prompts:
> fsck /dev/VolGroup00/LogVol00
After fsck finished I rebooted and the system appears to be completely back to normal. There were lots of changes made by fsck, but I did not document them.
Good to see you fixed things on your own. WD
|All times are GMT -5. The time now is 11:06 AM.|