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 01-25-2003, 10:08 AM   #1
eddcrossman
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Rep: Reputation: 15
Angry Redhat 8.0 boot problems


Hello, i recently installed redhat linux 8.0 on my compaq laptop.

i booted it a few times to test it out it boted fine. When i returned to it today, a few weeks later, trying to boot linux resulted in the following errors:


blah...
blah...
pivotroot pivot_root (/sysroot, /sysroot/initid) failed:20
unmount /initid/proc failed:2
Freeing unused kernel memory: 212k freed
kernel panic: No init found. Try passing init= option to kernel

then the whole thing stops and the caps and scroll lock lights flash on and off.

I have been all over google looking for an answer and there are many messages areound to do with this error but i cant really find anything i understand.

I can boot from my instalation disk into rescue mode, this gives me a command line but i dont know what to do then

any help would be greatly appriciated, im a bit new to linux and don't know what to do.

thanks in advance
 
Old 01-25-2003, 10:15 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you can chroot to /mnt/sysimage

then you will be on your filesystem

then you need to reinstall lilo
 
Old 01-25-2003, 10:20 AM   #3
eddcrossman
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Original Poster
Rep: Reputation: 15
is lilo and grub the same?? i have grub at the moment, should i reinstall that?? also how do i reinstall lilo or grub??
 
Old 01-25-2003, 10:28 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
check your /etc/grub.conf file
install with this command
Code:
grub-install /dev/hda
for lilo you need a /etc/lilo.conf file and then run this

Code:
lilo
 
Old 01-25-2003, 10:41 AM   #5
eddcrossman
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Original Poster
Rep: Reputation: 15
im sorry i dont really understand, what do i do with the .conf files?? i ran the grub--install /dev/hda and got a grub> prompt, what should i do at this point? sorry about this but i am very new to linux
 
Old 01-25-2003, 04:36 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
what's in your grub.conf file

and what partitions do you have linux on?
 
Old 01-30-2003, 08:30 AM   #7
eddcrossman
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Original Poster
Rep: Reputation: 15
ok, after a few days off fixing linux to do some exams im gonna try again:

i can boot from my installation cd and it says:
mounted under /mnt/sysimage directory

the prompt i get is _/bin/sh-2.05b#

when i run the /sbin/grub-install /dev/hda command i get the response:

/sbin/grub: not found

i dont really know what to do with the .conf files or how to check them from the prompt i have
 
Old 01-30-2003, 02:41 PM   #8
Machinegun
Member
 
Registered: Jan 2003
Posts: 56

Rep: Reputation: 15
grub.conf will be in /etc/ directory. You can edit with vi grub.conf. Post what the file has.
 
Old 01-30-2003, 02:57 PM   #9
eddcrossman
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Original Poster
Rep: Reputation: 15
ok, i run the vi grub.conf and i get a screen like this:
~
~
~
... all the way to the bottom
~
"grub.conf" line 1 of 1 --100%--
 
Old 01-30-2003, 05:34 PM   #10
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Quote:
Originally posted by eddcrossman
is lilo and grub the same?? i have grub at the moment, should i reinstall that?? also how do i reinstall lilo or grub??
They are the same in that they are each a boot manager. If you used to have grub installed, then you can use the rescue mode of your install CD to reinstall, or make a fresh install of it. The same goes for Lilo and the rescue mode of your install CD.

Actually, grub.conf is not always the configuration file for grub, sometimes it's just a link to the actual configuration file at /boot/grub/menu.lst. For Lilo, the configuration file is at /etc/lilo.conf.

You can check to see if you have either a lilo.conf or a menu.lst by going to the appropriate directory and typing in:

ls -al menu.lst

or

ls -al lilo.conf

All that is interesting, but your real goal is to install/reinstall a boot manager to the MBR of your first bootable hard drive. So go ahead and do the rescue mode thing with your install CD.

/edit - My apologies, I got "grub-happy" in this post. There is, of course, no such thing as /boot/grub/grub.lst -- it is /boot/grub/menu.lst (that's "menu.lst", with an ELL not a ONE)


Last edited by jglen490; 01-31-2003 at 03:15 PM.
 
Old 01-30-2003, 05:37 PM   #11
eddcrossman
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Original Poster
Rep: Reputation: 15
when i do the rescue mode all i get is a prompt, nothing useful actually happens
 
Old 01-30-2003, 05:57 PM   #12
eddcrossman
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Original Poster
Rep: Reputation: 15
ok so /etc/grub/grub.1st says:

# kernel /vmlinuz-version ro root = /dev/hda5
# initrd /initrd -version.img

...blah
...blah

title RedHat linux
root(hd0,1)
kernel /vmlinuz-2.4.18-14 ro root = LABEL = /
initrd /initrd -2.4.18-14.img

does this mean that instead of trying to re-install grub like this:
/sbin/grub-install /dev/hda

i should be doing this:
/sbin/grub-install /dev/hda5

?????
 
Old 01-30-2003, 09:04 PM   #13
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
hda5 is a partition. In order to boot you need to put a boot loader in the mbr of the primary master or the bot disk assigned by the bios, normally it will be

/dev/hda

hda5 is where it finds linux and boots it. If the files you have specified in the config file are not where the config files says they are you will not be able to boot.

You need to check to see that it is correct

fdisk -l will list the partitions names, size and filesystem type. You need to make sure the partitions are right and that the image file that you have named is there on the partition.
 
Old 02-02-2003, 05:59 AM   #14
Larrin
LQ Newbie
 
Registered: Feb 2003
Posts: 4

Rep: Reputation: 0
I believe that you need to edit your grub.conf file by replacing the
line

"kernel /vmlinuz-2.4.18-14 ro root = LABEL = /"

with something like this

"kernel /vmlinuz-2.4.18-14 ro root = /dev/hda# = /"

where # is (1,2,3,...) where your root partition resides.

Just a guess,
Larrin
 
  


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
RedHat 9 Boot Problems yushchenko Linux - Software 1 12-23-2004 09:21 PM
RedHat Boot Problems. BLazeD Linux - Newbie 12 02-09-2004 07:20 PM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 10:14 PM
Redhat boot problems chris82 Linux - Newbie 10 10-20-2003 02:42 PM
redhat 9 boot problems filth Linux - Distributions 10 05-11-2003 05:54 AM


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