Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-18-2003, 11:39 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
hang during booting :(

My redhat linux 2.4.18-14 hung during booting after last Thursday's blackout :

Initializing USB mode... [ok]
/etc/rc.d/rc.sysinit: line 187 100 segmentation fault. grep -iq ...

Check root file system...
/: clean [ok]

/etc/rc.d/rc.sysinit: line 274 109 segmentation fault....
Remounting root filesystem in read-writing mode [ok]
Activating swap partitions [ok]
/etc/rc.d/rc.sysinit: line 339 129 segmentation fault....
Find module dependencies [ok]
/etc/rc.d/rc.sysinit: line 381 179 segmentation fault....
Check filesystems
/boot : clean
Mounting local filesystems [ok]
Enabling local filesystem quotas [ok]

Then it just hung here

1) Any idea what this problem is? And how to fix it?
2) I tried boot to rescue mode, chroot /mnt/sysimage, cd /var/log/, boot.log has 0 byte, and messages.log last changed date is 2003-08-14, where do I get logs of the boot process? (I wrote the above log on pater and keyed them in...)
3) I have tried boot to rescure mode, chroot /mnt/sysimage, fsck e2fsck /dev/hda2... , but it still won't boot after that.
4) What do those "segmentation fault" indicate?

Any input would be greatly appreciated, thanks!
Old 08-18-2003, 02:54 PM   #2
Registered: Jul 2003
Location: Boston, MA, USA
Distribution: RedHat, SuSE, Gentoo, Slackware, Mandrake ...
Posts: 111

Rep: Reputation: 15
The segmentation fault messages are from programs that are dying horrible deaths as your system tries to boot. The number just before the word "segmentation" in each message is the process ID of the program that's dying. Boot to rescue mode and look at your /etc/rc.d/rc.sysinit script. See what's on lines 100, 187, 274, 339 and 381, which are the lines that run the programs that are failing. This will tell you what programs those are, and from the script context you might be able to tell what it's failing to do.

My rc.sysinit apparently does not correspond to yours (my line 100 is a blank line, for instance), so I can't tell you more.

It's possible that your system got a power spike just before the power went out, and some stuff on the disk got fried. Not too likely, however, but possible. I can't imagine why you would suddenly get seg-faults on system tools like this.

Oh, I should explain: a segmentation fault occurs when a process attempts to access memory that is not mapped to it. The kernel allocates memory for a process, and controls the mapping of physical memory to the virtual address space that the process sees. So while your process may be able to address 4GB of memory on a 32-bit box, much of that address space is unmapped. If the process pulls some random number into a register and attempts to use that as an address into memory, the hardware that controls memory mapping will interrupt the process, and the kernel will kill it off because it has behaved badly.
Old 08-19-2003, 01:40 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much for the feedback and detailed explanation Mack!

I read the rc.sysinit, but dont' understand what went wrong...

Since I have application data backed up, I figured it would be easier for me just to re-install OS.

Just want to say thanks!


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
booting the kernel *hang* ANewbie Linux - Newbie 7 12-07-2005 02:00 AM
booting the kernel leads to a system hang? DeathCrush19 Mandriva 1 09-29-2004 01:03 PM
booting kernel hang mrweirdo Fedora 4 04-27-2004 11:23 PM
GeForce, Hang on boot, hang on X ctrl-alt-bspace bigearsbilly Linux - Hardware 0 03-01-2004 08:56 AM
redhat 8 : system hang while booting dost Linux - General 1 02-13-2004 11:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:26 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
Open Source Consulting | Domain Registration