LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-15-2014, 12:17 PM   #1
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 142

Rep: Reputation: 10
Custom kernel on Dell Optiplex panics: cannot mount root partition (null)


Compiled a custom 3.15.5. kernel for an Optiplex 745, running Debian Wheezy:

make proper
make allmodconfig
make localyesconfig

Checked it for any obvious missing/incorrect stuff and compiled, then copied the kernel etc. to /boot, installed modules (such as existed), and updated GRUB2.

It does not boot. Complains that it cannot mount the root filesystem "null" or unknown-block(0,0) and panics, no matter what I specify for root partition. This suggests to me that it is not seeing the partitions at all; however, the necessary ATA drivers are all definitely compiled into the kernel, and the required partition type is enabled in the config. So I have no idea what's going on.

Likewise, the necessary filesystem drivers are compiled in, and the SATA, PATA, and SCSI hard disk drivers.

Did support for this computer's ATA controller get dropped from the kernel, or something? What is happening here? I've never seen a kernel panic like this when all necessary drivers are configured.

Edit: to add insult to injury, the kernel does in fact see the partitions - it prints a list of them when it panics. It appears to be just ignoring the root= directive. How can I make it not ignore that?

Last edited by Gullible Jones; 07-15-2014 at 02:12 PM.
 
Old 07-15-2014, 12:38 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,077

Rep: Reputation: Disabled
Just to be sure: did you built-in the driver for root's (/) file system, or included it in an initrd?
 
Old 07-15-2014, 12:50 PM   #3
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 142

Original Poster
Rep: Reputation: 10
Yup. Root is ext4, ext4 drivers are compiled into the kernel.

I also just tried recompiling without initrd support, having read in one thread on one forum somewhere that enabling initrd makes the kernel ignore the root directive. No go. It continues to ignore it.
 
Old 07-15-2014, 01:47 PM   #4
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 142

Original Poster
Rep: Reputation: 10
I think maybe the issue was the "internal kernel command line" option being enabled, set to defaults, and overriding the specified parameters... Tried recompiling with that disabled, but wound up with all debug options disabled, and a kernel that traces itself more and more slowly until it panics.

My bad. It looks like allmodconfig does not produce a usable kernel, and stripping it down with localyesconfig does nothing to change that; I will try oldconfig instead.
 
Old 07-15-2014, 01:58 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,077

Rep: Reputation: Disabled
Maybe we'll be able to help you better if you state your aim in compiling a custom kernel.

Nevertheless, I'd recommend that you take as a basis your running kernel's config file (or one provided by your distribution), do a "make oldconfig" then possibly "make menuconfig" (replace "menu" with "n", "x" or "g" if you prefer), to tweak the configuration to your liking.
 
Old 07-15-2014, 02:12 PM   #6
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 142

Original Poster
Rep: Reputation: 10
I have done that any times. I was hoping that the new 'localyesconfig' option would allow me to automatically generate stripped-down GrSecurity kernels from a base config.

But it clearly is not adequate on its own. This time I got a kernel that booted... And did not include keyboard and mouse drivers. Yay.

I'm marking this as [solved] for now, since what I was trying to do is clearly not supported at all.
 
  


Reply



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
dell optiplex gx-1 kernel compile EDDY1 Linux - Newbie 4 09-02-2010 12:09 AM
SPARC64 Linux 2.6.23 on Ultra 10 panics on root mount with PCI0646 psychicist Solaris / OpenSolaris 2 10-18-2007 05:12 AM
Custom Kernel Panic: Unable to mount root fs on 08:11 halfpower Slackware 9 10-12-2006 06:22 PM
custom kernel panics DAChristen29 Ubuntu 2 07-18-2005 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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

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