View previous topic :: View next topic |
Author |
Message |
dbbolton n00b
Joined: 22 Apr 2009 Posts: 44 Location: WV
|
Posted: Thu Jun 18, 2009 6:06 pm Post subject: VFS panic |
|
|
My root partition (sda7) is in an extended partition (sda1) but I'm getting a kernel panic from VFS saying it can't open root device sda or unknown block (2,0). It also says "here are the available partitions" but none are listed. I'm 200% sure that I built ext2 and ext3 into my kernel.
Here is my fdisk -l with comments added:
Code: |
livecd ~ # fdisk -l
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000936f4
Device Boot Start End Blocks Id System
/dev/sda1 1 6079 48829536 5 Extended
/dev/sda2 6080 7903 14651280 83 Linux #debian /
/dev/sda3 7904 24681 134769285 83 Linux #debian /home
/dev/sda4 24682 24792 891607+ 82 Linux swap / Solaris #debian swap
/dev/sda5 1 9 72229+ 83 Linux #gentoo /boot
/dev/sda6 10 72 506016 82 Linux swap / Solaris #gentoo swap
/dev/sda7 73 1289 9775521 83 Linux #gentoo /
/dev/sda8 1290 6079 38475643+ 83 Linux #gentoo /home
|
Here is my /etc/fstab for the gentoo system:
Code: |
/dev/sda5 /boot ext2 noauto,noatime 1 2
/dev/sda7 / ext3 noatime 0 1
/dev/sda6 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
|
And my Grub entry (from the debian system, but grub is in the mbr)
Code: |
root (hd0,4)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sda7
|
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9882 Location: almost Mile High in the USA
|
Posted: Thu Jun 18, 2009 11:17 pm Post subject: |
|
|
If no partitions are listed, likely you have your disk drivers omitted from your kernel ('N' or 'M' -- they need to be built in). Check your kernel config to make sure your drivers are built-in. Make sure you've got all your necessary libata or legacy-ata or other scsi drivers built in.
You can use modules - but the only way to put your disk drivers as modules is if you use an initrd. Not recommended to do manually, but I hear genkernel does this fine... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Fri Jun 19, 2009 9:03 am Post subject: Re: VFS panic |
|
|
dbbolton wrote: | My root partition (sda7) is in an extended partition (sda1) but I'm getting a kernel panic from VFS saying it can't open root device sda or unknown block (2,0). It also says "here are the available partitions" but none are listed. I'm 200% sure that I built ext2 and ext3 into my kernel.
...
And my Grub entry (from the debian system, but grub is in the mbr)
Code: |
root (hd0,4)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sda7
|
|
it's not clear if you can load debian but not gentoo
the error is when trying to access gentoo isn't it?
the error you're reporting seems to point to a wrong root parameter passed to the kernel.
This means that the gentoo kernel could use a different partition mapping (or even different PATA/SATA drivers), this means that sda could be seen as a different partition... just a guess.
how did you compiled the gentoo kernel? did you checked everthing was ok?
I'd wait for some more input from you and a better explanation of what's going on.
Posting the whole grub.conf could help. _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
|
|
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
|
|