LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2002, 01:25 PM   #1
bschmidt
LQ Newbie
 
Registered: Nov 2002
Posts: 11

Rep: Reputation: 0
Kernel panic


After a little work (and a lot of learning) I was finally able to custom configure my kernel, make the dependences and make the image. Whne I reboot my computer, Grub lists my custom kernel as an option, but when I try to boot it, I get the following:

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

Unfortunately, I don't know how to 'append a correct "root="'.

Can anyone please inform me how to do this so I can finally get say I've sucessfully recompiled my kernel. Thanks.

Running kernel 2.4.18-18.8.0 using RedHat8.0

Bryan
 
Old 12-01-2002, 02:17 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
What does your /boot/grub/grub.conf look like?

-K.
 
Old 12-01-2002, 02:47 PM   #3
bschmidt
LQ Newbie
 
Registered: Nov 2002
Posts: 11

Original Poster
Rep: Reputation: 0
default=1
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-18.8.0custom)
root (hd0,1)
kernel /vmlinuz-2.4.18-18.8.0custom ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-18.8.0custom.img
title Red Hat Linux (2.4.18-18.8.0)
root (hd0,1)
kernel /vmlinuz-2.4.18-18.8.0 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-18.8.0.img
title Red Hat Linux (2.4.18-14)
root (hd0,1)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img
title Win2K
rootnoverify (hd0,0)
chainloader +1
 
Old 12-01-2002, 06:19 PM   #4
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
And what does the contents of /boot look like? What files are there?

-K.
 
Old 12-01-2002, 06:36 PM   #5
bschmidt
LQ Newbie
 
Registered: Nov 2002
Posts: 11

Original Poster
Rep: Reputation: 0
/boot contains the following:

boot.b os2_d.b
chain.b System.map
config-2.4.18-14 System.map-2.4.18-14
config-2.4.18-18.8.0 System.map-2.4.18-18.8.0
grub System.map-2.4.18-18.8.0custom
initrd-2.4.18-14.img System.map-2.4.18-18.8.0custom.old
initrd-2.4.18-18.8.0custom.img vmlinux-2.4.18-14
initrd-2.4.18-18.8.0.img vmlinux-2.4.18-18.8.0
kernel.h vmlinuz
lost+found vmlinuz-
message vmlinuz-2.4.18-14
message.ja vmlinuz-2.4.18-18.8.0
module-info vmlinuz-2.4.18-18.8.0custom
module-info-2.4.18-14 vmlinuz-2.4.18-18.8.0custom.old
module-info-2.4.18-18.8.0
 
Old 12-01-2002, 06:56 PM   #6
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
try changing the "root=LABEL=/" to "root=/dev/hdc1" or whatever your root partition is?

Dunno,

-K.
 
Old 12-03-2002, 04:13 AM   #7
themuppeteer
LQ Newbie
 
Registered: Nov 2001
Location: Belgium
Posts: 18

Rep: Reputation: 0
I found this sample on
http://www.yolinux.com/TUTORIALS/Lin...dBootDisk.html

and like Kevin said, you should fille in your root partition.
you could try /dev/hd0 for root. You should know your own root partition ;-)

default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz - Image to be displayed: /boot/grub/splash.xpm.gz which is on the second hard drive, first partition.
title Red Hat Linux (2.4.9-21)
root (hd1,0) - Root of GRUB reference. Same as /boot. See above table.
kernel /vmlinuz-2.4.9-21 ro root=/dev/sdb6
initrd /initrd-2.4.9-21.img - Referenced from GRUB root reference. Hence file: /boot/initrd-2.4.9-21.img
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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