LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-05-2008, 11:31 AM   #1
Magmagal
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Rep: Reputation: 0
F8 freezes during boot - "getpwnam failed for roota"


Fedora 8 freezes during boot - "getpwnam failed for roota"

--------------------------------------------------------------------------------

Hi all,

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.
 
Old 05-07-2008, 06:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Magmagal View Post
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.
From 'man getpwnam': "The functions getpwnam() and getpwuid() search the password database for the given login name or user uid, respectively, always returning the first one encountered.". The password database is /etc/passwd, and 'getent passwd root roota' should show the account info. By default you should have only one account with UID 0 called "root". AFAIK it's still in kernel time when the "Enabling local filesystem quotas" message appears, so that's definately not good. Have there been any situations earlier on where the system performed "weird"? Or did you experience any crashes earlier on or do things that made the system instable? Anyway. Check your login database ('last') and system and daemon logs for irregularities, verify your installation with 'rpm -qVa 2>&1> /tmp/rpmqVa.log' and check rpmqVa.log for details like missing files and MD5 hashes not matching (see 'man rpm' for explanation of verify output). If you are going to post details or errors, please use BB code tags for readability and post *exact* messages, not descriptions of.
 
Old 05-09-2008, 08:49 AM   #3
Magmagal
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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[2591]: Device: /dev/sda, 1 Currently unreadable (pending) sectors
May 4 04:29:14 localhost smartd[2591]: 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
/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>

Last edited by Magmagal; 05-09-2008 at 08:51 AM.
 
Old 05-09-2008, 12:43 PM   #4
Magmagal
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 05-10-2008, 01:59 PM   #5
Magmagal
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 05-18-2008, 02:30 PM   #6
Magmagal
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 05-18-2008, 08:23 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Good to see you fixed things on your own. WD
 
  


Reply

Tags
boot, fedora 8



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
Boot freezes at "Starting HAL daemon" after Kernel recompile DiBosco Linux - Software 2 04-14-2007 05:53 AM
2007 freezes at boot-up on "Loading default keymap" EtherGhost Mandriva 1 11-06-2006 01:46 AM
Boot-up freezes at "hpssd" and "hpiod" diogobaeder Linux - Software 1 08-02-2006 07:51 PM
Need help with my "boot proccess"(FC5), Acer TravelMate 4602WLMi freezes bravo_elf Linux - Laptop and Netbook 2 04-14-2006 06:21 PM
boot process freezes at "Probing IDE interface ide0..." drowstar Mandriva 8 11-03-2004 01:43 AM

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

All times are GMT -5. The time now is 10:09 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