LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-15-2003, 06:57 PM   #1
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Rep: Reputation: 15
grub.conf and Kernel Panic!!


OK. I think I may have posted this question or one very similar to it several months ago, but I am posting it again because I now have a better grasp of Linux and think I have a better idea what I should be asking.

Anyway, yesterday I recompiled my stock RH 2.4.20-8 kernel to the newest 2.4.22. It compiled fine and I got it running with some errors (stuff I forgot to select in the config) but it did boot with no kernel panic. At this point I was using LILO. Then I decided to switch to GRUB and recompile again because of the errors I was getting. I rebooted after altering my grub.conf and I got this

VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 00:00

So then I rebooted and used the old kernel and it worked fine. Then I reinstalled LILO and rebooted. Voila! My new kernel works! But I really want to use GRUB!

My question is:
What is wrong with my grub.conf? Thats the only thing that I can think of that is wrong with this thing!

Here is my current grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title Red Hat Linux (2.4.22)
root (hd0,1)
kernel /vmlinuz-2.4.22 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi
initrd /initrd-2.4.22.img
title DOS
rootnoverify (hd0,0)
chainloader +1

And here is what my current lilo.conf looks like:

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.22
label=New
initrd=/boot/initrd-2.4.22.img
read-only

image=/boot/vmlinuz-2.4.20-8
label=linux
initrd=/boot/initrd-2.4.20-8.img
read-only
append="hdc=ide-scsi hdd=ide-scsi root=LABEL=/"

other=/dev/hda1
optional
label=DOS

Please help me. I guess I could use LILO but from what I understand.....GRUB is technically superior.

Thanks,
Phekno
 
Old 10-15-2003, 07:06 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I think your problem is the ROOT label. Grub.conf and lilo.conf do not have the same syntax.

Change:
Code:
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi
To:
Code:
kernel /vmlinuz-2.4.20-8 ro root=/dev/hdax hdc=ide-scsi hdd=ide-scsi
where "/dev/hdax" is the partition where your root filesystem is mounted ie: "/". So it would likely be /dev/hda2 if you have a seperate /boot partition. I can't tell you exactly what it would be without knowing your partitioning scheme.

Change the same thing for your other kernel as well...and you should be golden.
 
Old 10-15-2003, 07:42 PM   #3
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
Close but no cigar.

Here is what grug.conf looks like now:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.22)
root (hd0,1)
kernel /vmlinuz-2.4.22 ro root=/dev/hda2 hdc=ide-scsi hdd=ide-scsi
initrd /initrd-2.4.22.img
title DOS
rootnoverify (hd0,0)
chainloader +1

(Note: I got rid of my old kernel)
I did this and when I rebooted the kernel panicked again and now it says that I need to pass an init string or something.

So I'm stuck again.
 
Old 10-15-2003, 07:48 PM   #4
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
OK I fixed it.

/dev/hda3



Thanks for all the help!

Phekno
 
Old 10-15-2003, 11:08 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Glad it's working for you
 
  


Reply



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
Grub = Kernel panic iirish Linux - Newbie 4 04-22-2005 09:11 AM
Grub Kernel Panic CloudBuilder Linux - General 3 02-07-2005 05:11 PM
grub.conf and kernel panic...GGGRRRRRRR 10xOXR Linux - Newbie 2 01-28-2005 03:25 PM
kernel panic, grub and fdisk daigoro_cub Linux - Newbie 5 09-14-2004 02:15 PM
Grub.conf - Kernel Panic. liguorir Linux - Software 2 06-29-2003 01:03 PM

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

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