LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-18-2003, 10:39 AM   #1
maybewhatif
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
[ok]
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, 01:54 PM   #2
MacKtheHacK
Member
 
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, 12:40 PM   #3
maybewhatif
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!
 
  


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


All times are GMT -5. The time now is 03:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration