LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2004, 11:09 AM   #1
johnnhoj
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
error booting


I have red hat linux 9.0. It has been working fine for a couple of months. But yesterday while booting up, I got the following:

INIT: version 2.84 booting
Setting default font (latarcyrheb-sun16): [OK]

Welcome to /etc/rc.d/rc/rc.sysinnit: line 70 36 Segmentation fault LC_ALL=C grep -q "Red Hat" /etc/redhat-release

Press 'I' to enter interactive startup.
Mounting proc filesystem: [FAILED]
/etc/rc.d/rc.sysinit: line 90: 43 Segmentation fault LC_ALL=C grep -q /initrd /proc mounts
Configuring kernel parameters: Error: /proc must be mounted
To mount / proc at boot you need an /etc/fstab line like:
/proc /proc proc defaults
In the meantime, mount /proc /proc -t proc
[FAILED]


The next couple of lines are OK. Then

/etc/rc.d/rc.sysinit: line 182: 66 Segmentation fault LC_ALL=C grep -lq "nousb" /proc/cmdine 2>dev/null
/etc/rc.d/rc.sysinit: line 182: 68 Segmentation fault LC_ALL=C grep -q "usb" /proc/cmdine 2>dev/null

And it hangs there.

Can anyone help? Thanks
 
Old 12-18-2004, 03:17 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Looks like it's trying to tell you that an important line is missing from /etc/fstab (the /proc line in the error messaes). To fix it, since you can't boot into the system, you will have to boot from the installation cd, which will give you a running system from the cd, not the hard disk.
Once booted from cd, log in as root user (you may be in command-line mode. I hope you're comfortable with that).

To be able to fix fstab, you will first need to be able to mount the partition in which RH is installed (not the same as mounting the filesystem at boot). To do that, you will have to edit the running version of fstab (not the installed one).

first command:
cd /etc

next:
vim fstab

In case you're not familiar with vim, I'll give you the commands. If you know how to use vim, just skip over these commands.

Press the letter i to enter insert mode.
Scroll to the bottom of the list, and add a line like this:
/dev/hda1 /mnt/redhat ext2 defaults 1 2

where hda1 is the partition in which RH is installed. If your partition is different, supply that number insead.
where /mnt/redhat is the mount you will create, ext2 is the default linux filesystem type. if you're useng ext3 or something else, use that instead.

once that line is entered into the running version of fstab, press the esc key to exit insert mode. to save the changes, press :wq (that's colon w q) to save and exit vim.

next, creat the mount point in the running system (this will disappear when you reboot):
mkdir /mnt/redhat

now, you have a place to mount your redhat partition to gain access files for repair.

next command:
mount /dev/hda1 (or whatever you put in fstab)

then:
cd /mnt/redhat/etc to get to the fstab on the rh partition (not the running one).
Now:
vim fstab (the installed one, not the running one) and look for the /proc line given in the boot error messages. If it isn't there, add it (as you did with the running fstab), then esc :wq to save the repair.
Now, unmount the partition:
umount /dev/hda1

remove the install cd from the drive, and reboot. If proc not being in fstab was the only problem, that should fix it.
 
  


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 error bijo Linux - Hardware 1 11-03-2005 06:42 AM
booting error? kee Slackware 2 06-03-2005 10:02 AM
Error while booting. soner Linux - General 1 10-29-2004 03:33 PM
booting error mrfreeze Linux - Newbie 2 07-03-2004 03:15 PM
error 28 while booting help chander Linux - Software 2 10-19-2003 05:28 AM


All times are GMT -5. The time now is 05:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration