LinuxQuestions.org
Visit Jeremy's Blog.
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 03-28-2005, 07:30 AM   #1
x-radian
LQ Newbie
 
Registered: Aug 2003
Location: Kuala Lumpur
Distribution: Linux
Posts: 19

Rep: Reputation: 0
Unhappy Kernel Panic


Hi Guys ,
I need advise from you guys as when i finish compile kernel then after i rebbot the server and i get the error message like below :

VFS: Cannot open root device "hdc2" or unknown-block(0,0)
Please append a correct "root=" boot option
kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


Can somebody help me how to solve this problem and one more thing can somebody advise me how to configure grub.conf correctly ?

Thanks Guys
 
Old 03-28-2005, 07:44 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
First, Linux is not a distribution, it is the kernel. The other apps and
different things included in addition to the kernel make an OS. If you
put your Linux distribution it will be easier to help you when you post.

This kernel panic means you don't have support for your root filesystem,
or the hard drive device, in your kernel. So, you can look and see what
you've compiled in the kernel. If you can't figure it out, post the output of:

/sbin/lspci
grub.conf
cat /etc/fstab
and your kernel .config file
 
Old 03-28-2005, 07:47 AM   #3
x-radian
LQ Newbie
 
Registered: Aug 2003
Location: Kuala Lumpur
Distribution: Linux
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Chinaman
First, Linux is not a distribution, it is the kernel. The other apps and
different things included in addition to the kernel make an OS. If you
put your Linux distribution it will be easier to help you when you post.

This kernel panic means you don't have support for your root filesystem,
or the hard drive device, in your kernel. So, you can look and see what
you've compiled in the kernel. If you can't figure it out, post the output of:

/sbin/lspci
grub.conf
cat /etc/fstab
and your kernel .config file


Opsss .. sorry .. the linux distribution is Red Hat 9.0
 
Old 03-28-2005, 07:50 AM   #4
x-radian
LQ Newbie
 
Registered: Aug 2003
Location: Kuala Lumpur
Distribution: Linux
Posts: 19

Original Poster
Rep: Reputation: 0
Here is my grub.conf

splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img

title Red Hat Linux (2.6.11)
root (hd0,4)
kernel /boot/kernel-2.6
 
Old 03-28-2005, 07:51 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
x-radian,

Change that in your LQ UserCP so that we can tell
just by looking at your posts.

I don't know about GRUB -- couldn't figure it out so
I use LILO. But the problem with your kernel panic
is probably either you don't have your root filesystem
built into the kernel; or you don't have your IDE device
built in. Those cannot be modules unless you use an
initrd image.
 
Old 03-28-2005, 07:53 AM   #6
x-radian
LQ Newbie
 
Registered: Aug 2003
Location: Kuala Lumpur
Distribution: Linux
Posts: 19

Original Poster
Rep: Reputation: 0
ok ... that interesting if you can guide me how to use lilo
 
Old 03-28-2005, 08:00 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Please post that other output -- and someone else can help you use
grub I'm sure. It looks to me like you're telling grub to mount (hd0,4)
which to me would be /dev/hda4 (or /dev/hda5 if you have extended
partitions). Then the kernel says it's trying to locate your / filesystem
at "hdc2" or unknown-block(0,0) --- and /dev/hdc2 would be something
like (1,2) if I'm correct. See why I use LILO? You use the device name
and it's done.

That other output will tell us what you've got that's causing this kernel
panic.

If you really want to use LILO rather than GRUB, I can tell you exactly
how to configure LILO, but not how to remove GRUB.
 
Old 03-29-2005, 07:58 AM   #8
brundles
Member
 
Registered: Nov 2003
Location: UK
Distribution: SUSE 9.2
Posts: 77

Rep: Reputation: 15
Did you build an initrd image for the new kernel? At the moment there isn't any reference to it for the 2.6 kernel. If you ran the mkinitrd command and built the image correctly you should be able to just append the line into GRUB - similar to the existing initrd line for the 2.4 kernel.

That may help - but I'm not familiar with the root option on the 2.4 kernel there.
 
  


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 08:14 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