-   Linux - General (
-   -   Kernel configuration fail (

Tommo 08-27-2009 09:58 AM

Kernel configuration fail

I am trying to build a vanilla kernel ( I run Debian stable and my current kernel (shipped with debian) is 2.6.26-2-686.

I'm a big fan of the Gentoo handbook (x86) so I just followed that:


# pwd
# make menuconfig
# make && make modules_install
# cp arch/x86/boot/bzImage /boot/kernel-

My /boot/grub/menu.lst:

# Kernel shipped with debian
title                Debian GNU/Linux, kernel 2.6.26-2-686
root                (hd0,0)
kernel                /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro quiet
initrd                /boot/initrd.img-2.6.26-2-686

# New Vanilla kernel
title                Debian GNU/Linux, kernel (Vanilla)
root                (hd0,0)
kernel                /boot/kernel- root=/dev/sda1

I built my filesystem support, etc, into the kernel so I shouldn't need an initial ramdisk (the Gentoo handbook doesn't add one in the grub configuration stage anyway).

But when I try to boot from the new kernel, I get:

kernel panic - not syncing : VFS: Unable to mount root fs on unknown-block(0,0)
VFS: Cannot open root device "sda1" on unknown-block(0,0)

This suggests my "root=" is wrong in my menu.lst. This cannot be the case since the other kernel has the same argument and works fine. I mustn't have built everything I need into the kernel when configuring it.

My disk layout:

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00080451

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        3993    32073741  83  Linux
/dev/sda3            3994        9726    46050322+  5  Extended
/dev/sda5            3994        4243    2008093+  82  Linux swap / Solaris
/dev/sda6            4244        9726    44042166  83  Linux

Any ideas?

forrestt 08-27-2009 10:21 AM

A quick Google search gave me this. And it was a whole lot easier than posting all that stuff you posted.



Tommo 08-29-2009 07:38 AM

Thanks, I'll give that a shot.

All times are GMT -5. The time now is 09:53 PM.