Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-27-2009, 10:58 AM   #1
Registered: May 2006
Posts: 80

Rep: Reputation: 15
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?
Old 08-27-2009, 11:21 AM   #2
Senior Member
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

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


Old 08-29-2009, 08:38 AM   #3
Registered: May 2006
Posts: 80

Original Poster
Rep: Reputation: 15
Thanks, I'll give that a shot.


build, configure, kernel, panic, vfs

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
2.6.22 kernel warnings cause mkinitrd to fail jhwilliams Linux - General 1 09-11-2007 06:09 PM
fail to bootup after kernel upgrade Oracbase Linux - Software 5 08-23-2005 10:36 PM
jabberd 2 configuration fail mb1212 Linux - Networking 1 06-15-2004 12:39 PM
Fail to upgrade linux to kernel 2.6.5 hehetnt Linux - Laptop and Netbook 1 05-06-2004 09:21 AM
Kernel compile fail NightShade737 Linux - Software 3 06-29-2003 06:54 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration