LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-24-2006, 12:12 PM   #1
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Kernel compilation error!!


Hi to all,

I'm using RedHat 9 (kernel 2.4.20-8) and I tried to upgrade the kernel to 2.4.32. I did the following steps for compilation:

make xconfig
make bzImage
make modules
make modules_install
make install

I got the following errors:

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

Can anyone tell how to correct these errors?

Warm regards,
Visham
 
Old 02-24-2006, 01:07 PM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
http://www.google.com/linux?q=redhat+9+kernel+upgrade

Should point you to resolving specific issues with compiling a kernel for RH9. Your particular cannot open root device error is likely due to the root filesystem type not being compiled into the new kernel. Two fixes are either to include ext2/ext3 (assuming that is the format of the root filesystem) compiled in instead of modularized into the kernel or to create an initrd image.

FYI This is the networking forum, your post would probably fit better in linux-newbie or distributions-red hat. Rather than posting an additional thread there, it would be best to wait for an admin to move this thread though.

Last edited by Darin; 02-24-2006 at 01:11 PM.
 
Old 02-24-2006, 10:17 PM   #3
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Hi,

many thx for the reply..

actually I thought so too..i have done kernel upgrades on RH9 using a 2.6 kernel..got no real problems.

But for the 2.4.32, i got the above errors..i also tried to change the settings in the .config file (saying 'yes' to the different filesystems (ext2,ext3,..) but still the same error..

I don't find the VFS in the .config though..Can you tell me what option I can choose to solve it?

Warm regards,
Visham
 
Old 02-25-2006, 04:19 PM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
VFS isn't what needs to be changed in the kernel. The kernel needs to have support for whatever filesystem the root partition is on either built in, or in an initrd image. If this support is not in the kernel, then when the system tries to boot up VFS will not be able to read the root partiton and will spit out the above error.
 
Old 02-25-2006, 08:38 PM   #5
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Hi Darin,

What do you suggest I should enable in the kernel? I enabled all the features that I know are important..am I doing anything wrong in the steps given in above msgs?

Warm regars,
Visham
 
Old 02-25-2006, 09:51 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Don't forget to compile in the support for the controller chipset on the motherboard you need that as well.
 
Old 02-26-2006, 06:51 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Moved: This thread is more suitable in Linux General and has been moved accordingly to help your thread/question get the exposure it deserves.

Try using the device name rather than the label as the kernel option.
 
Old 02-27-2006, 06:31 AM   #8
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Hi to all,

Many thx for your replies guys..

To Happy Tux:
Quote:
Don't forget to compile in the support for the controller chipset on the motherboard you need that as well
Under what option do I get that? Can you give me an example of such a controller?

To David Ross:
Quote:
Try using the device name rather than the label as the kernel option
Can you please give me an example of how to do this? I know I have to put the 'hdd' thing, but I don't know how to put it correctly.

Warm regards,
Visham
 
Old 02-27-2006, 10:48 AM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally Posted by vishamr2000
Hi to all,

Many thx for your replies guys..

To Happy Tux:


Under what option do I get that? Can you give me an example of such a controller?
The first line in the output of the command below you need to select the one in this section for you motherboard.

Code:
>$ grep -i pii /boot/config-2.6.12-ck6
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_SCSI_ATA_PIIX is not set
# CONFIG_I2C_PIIX4 is not set
If you cannot figure it out can you post the name/model of your motherboard and one of us should be able to tell you the correct one to enable.
Quote:
To David Ross:


Can you please give me an example of how to do this? I know I have to put the 'hdd' thing, but I don't know how to put it correctly.

Warm regards,
Visham
He means something like root=/dev/hda1 using the partition number/drive letter of your /.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
kernel compilation error sumak86@gmail.com Slackware 2 12-06-2005 05:07 PM
kernel compilation error bond_7942 Linux - Newbie 2 02-02-2005 01:14 PM
kernel compilation error htamayo Linux - Software 3 01-07-2005 04:15 PM
kernel compilation error in 2.4.20-8 cranium2004 Linux - Software 1 11-24-2004 06:04 AM


All times are GMT -5. The time now is 03:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration