LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-27-2005, 12:41 PM   #1
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Rep: Reputation: 0
Kernel Hang on startup


.. fairly new user here - but I've had the box up and running for the better part of a year without issue. I run an Apache webserver and use the machine primarily to show pictures of the new baby to family far away.

Well - after re-arranging a room, I powered on the server - and it fails to finish booting. It hangs near the beginning, on the line:

Setting Default Font (latercyrheb-sun16):


20 minutes later it's still there. It doesn't seem to matter which kernel version I boot to. And if I turn off quiet mode - I'm still hanging on that exact line.

So - any advice, either experience with this same problem or pointers on where to look for log files that may shed light on my problem?


If I hit ctrl-c - booting continues, but only to a commandline with read-only file system access....

Any help would be appreciated. I'll check this thread - or you can mail me directly at pfloydn@gmail.com


Thanks,
Pete
 
Old 06-27-2005, 01:08 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Well probably a font issue. Can you post your grub.conf file? or lilo.conf file, whichever you use. And try to remember if you compiled anything or made any changes that might affect this? Think hard.
 
Old 06-27-2005, 01:21 PM   #3
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Hmm - so perhaps I need a bit more education:

In my /etc directory is grub.conf. However, when I do an ls on this directory both grub.conf and vfontcap have a red block around them and are flashing. I'm not able to do a 'more' grub.conf, though I can do it on other files in that directory. When I do a 'more' on grub.conf, I'm told the file doesn't exist.

I do use grub to initialize the system...


I have made no recent changes to the system. I did a yum -update all about a month ago. All I do is add new pictures to the coppermine DB...


I unplugged the system to move it last night, and this is what I'm running into when trying to boot this morning.


So - what does the flashing red block around grub.conf mean?
 
Old 06-27-2005, 01:48 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The flashing red block probably means that /etc/grub.conf is a symlink to a non-existant file, possibly in /boot, if that's a separate partition. Try 'ls -l /etc/grub.conf'.
 
Old 06-27-2005, 01:52 PM   #5
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Yeah - that's exactly what I just decided. It's a bad symbolic link. The grub.conf file in my .etc directory is a link to on that should be in boot/grub/grub.conf.


Unfortunately - my boot directory is empty... absolutely empty... I'm guessing that that's not one of those 'good things'?



To answer the question above, if I do an ls -la /etc/grub.conf I'm told there's no such file (see above).

-Pete
 
Old 06-27-2005, 02:02 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Most likely, /boot is on a separate (unmounted) partition. Try doing "mount /boot" and seeing what happens If it won't mount, try first doing "mount -o remount,rw /", then "mount /boot" again.
 
Old 06-27-2005, 02:26 PM   #7
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks Matir - that restored the boot partition and now I can see grub.conf.

It's got a list of all the kernel versions I can load ( as an aside, I get this problem regardless of the version chosen).


So - here's the entry within grub.conf for the latest version:

root (hd0,0)
kernel /vmlinuz-2.6.10-1.770_FC2 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.10-1.770_FC2.img



So where do I look from here?

Also - thanks guys for all your help so far. I'm obviously out of my league here - but learning quickly.
 
Old 06-27-2005, 02:38 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I'm not sure where FC2 puts its console fonts, but you might want to make sure "setfont" can be run, and the fonts can be found (use find on the name of the font), as in:
find / -name 'latercyrheb-sun16*'
 
Old 06-27-2005, 03:09 PM   #9
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
the font is found in the following path:
/lib/kbd/consolefonts/latarcyrheb-sun16.psfu.gz


If I call: setfont --help, I'm givin a proper help message.
However - if I call: setfont latarcyrheb-sun16 the system hangs just as it does during kernel init...

So - is there anything I can modify to change the font being applied initially to bypass this problem?

or can I get a new latarcyrheb-sun16.psfu.gz anywhere?

-Pete
 
Old 06-27-2005, 03:12 PM   #10
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Actually - SetFont fails to return regardless of which font I try to apply....
 
Old 06-27-2005, 03:12 PM   #11
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Hrrm, perhaps your setfont somehow got screwed up? Or the kernel? It's possible you could just disable this, though I'm not sure how on FC2.
 
Old 06-27-2005, 03:47 PM   #12
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
There's something more fundamental wrong with the system. Perhaps I lost a sector on the HD.... grep returns a segmentation violation when run, for instance.

I swapped out the memory on the system - same result.

So - I think I'm going to have to re-install and start over...

-Pete
 
Old 06-27-2005, 08:06 PM   #13
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Tried running memtest86+, just to confirm it's not memory? Though it does seem more like hard drive.
 
Old 06-28-2005, 08:53 AM   #14
pfloydn
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Well lucky me. I've figured it out. While the machine was consistently updated via Yum, and while it sat behind a firewall with just a few ports open - I'm the proud owner of a SuckIt infestation. I'm not sure what was done with it, but when pressing ctrl-alt-del I got a message about SuckIt not being able to read and IDT entry... looked up SuckIt on Google and didn't like what I found very much.

So - time to install a new drive and then see how much of my webserver I can easily salvage off of this old one.

Thanks so much for all your help - I did learn some things...
 
Old 06-28-2005, 09:10 AM   #15
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If you should happen to find out how you were infected, let us know. I would strongly encourage you to look into it to prevent it from recurring.
 
  


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
Hang on Startup Johnburrell Linux - Newbie 2 03-28-2005 10:13 AM
Startup Hang - Slackware 9 achaudhary Slackware 9 06-06-2004 11:47 AM
RH9 boot hang on initial startup rje_NC Linux - Laptop and Netbook 5 07-07-2003 08:46 PM
startup hang after configuring kernel parameter bejamex Linux - Newbie 3 06-16-2003 03:21 AM
SMB (netfs) hang on startup cherup Linux - Newbie 0 04-13-2003 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:57 AM.

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