LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 08-27-2009, 10:58 AM   #1
Tommo
Member
 
Registered: May 2006
Posts: 77
Thanked: 0
Kernel configuration fail


[Log in to get rid of this advertisement]
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?
linuxdebian Tommo is offline  
Tag This Post , , , ,
Reply With Quote
Old 08-27-2009, 11:21 AM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Newport News, Virginia, USA
Distribution: Fedora, Kubuntu, RedHat, SuSe, Sabayon
Posts: 1,106
Thanked: 40
A quick Google search gave me this. And it was a whole lot easier than posting all that stuff you posted.

HTH

Forrest
linuxfedora forrestt is offline     Reply With Quote
Old 08-29-2009, 08:38 AM   #3
Tommo
Member
 
Registered: May 2006
Posts: 77
Thanked: 0

Original Poster
Thanks, I'll give that a shot.
linuxdebian Tommo is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
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


All times are GMT -5. The time now is 04:52 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration