LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-27-2009, 09:58 AM   #1
Tommo
Member
 
Registered: May 2006
Posts: 80

Rep: Reputation: 15
Kernel configuration fail


Hi.

I am trying to build a vanilla kernel (2.6.26.2). 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:

Code:
# pwd
/usr/src/linux
# make menuconfig
# make && make modules_install
# cp arch/x86/boot/bzImage /boot/kernel-2.6.26.2-debian
My /boot/grub/menu.lst:
Code:
# 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 2.6.26.2 (Vanilla)
root		(hd0,0)
kernel		/boot/kernel-2.6.26.2-debian 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:
Code:
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:
Code:
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, 10:21 AM   #2
forrestt
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.

HTH

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

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


Reply

Tags
build, configure, kernel, panic, vfs



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration