Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help with kernel panic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bension
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 86

PostPosted: Sun Jun 07, 2009 10:15 pm    Post subject: help with kernel panic Reply with quote

I just tried to upgrade my kernel, after compiling a reboot I get a kernel panic. Here is the error:

Quote:

VFS: Cannot open root device "hda5" or unknwown-block
Please append a correct "root=" boot option


My 2.6.16 boots just fine, but I get the error with 2.6.29

In my grub.conf:

Quote:

title=2.6.16
root (hd0,1)
kernel /boot/kernel-2.6.16 root=/dev/hda5

title=2.6.29
root (hd0,1)
kernel /boot/kernel-2.6.29 root=/dev/hda5


I want /dev/hda5 to mount to /. Not sure why this doesn't work in the new kernel
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Jun 07, 2009 10:28 pm    Post subject: Reply with quote

You most likely didn't configure in support for the filesystem that is used by your root partition. You made quite a jump in kernel versions and a lot of options got moved around in the menuconfig tree. Just copying the old .config file and doing "make oldconfig" won't be enough. You'll need to manually go through all the options when configuring the new kernel. (or possibly use genkernel)
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
bension
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 86

PostPosted: Sun Jun 07, 2009 11:23 pm    Post subject: Reply with quote

/dev/hda5 is reiserfs - I did check to make sure I included fs support. I did use make menuconfig - when going through all the tree the options did look a lot different. I probably missed something, but not sure where to look, I'll go back and check the FS support one more time. A bit more from the error message:

Quote:

Please append a correct "root=" boot option; here are the available partions:
....sda driver: sd
....sda1...
.....sda2
......


Why is each partition listed as sda instead of hda? Maybe that's my problem.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun Jun 07, 2009 11:44 pm    Post subject: Reply with quote

bension wrote:
/dev/hda5 is reiserfs - I did check to make sure I included fs support. I did use make menuconfig - when going through all the tree the options did look a lot different. I probably missed something, but not sure where to look, I'll go back and check the FS support one more time. A bit more from the error message:

Quote:

Please append a correct "root=" boot option; here are the available partions:
....sda driver: sd
....sda1...
.....sda2
......


Why is each partition listed as sda instead of hda? Maybe that's my problem.


ATA disks are now supported through the PATA emulation layer in the SATA subsection. That's why they are named as scsi drives, just like SATA ones or usb sticks. So, yes, you need to adjust not only grub.conf, but also your fstab accordingly.
Back to top
View user's profile Send private message
bension
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 86

PostPosted: Mon Jun 08, 2009 3:53 pm    Post subject: Reply with quote

Thanks i92guboj - that was indeed the problem. Once I change references to sda I am able to boot up.

Now I have some other driver issues I need to address.

Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum