LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-04-2006, 12:10 PM   #1
h3xis
Member
 
Registered: Jan 2005
Distribution: Debian "Lenny"
Posts: 66

Rep: Reputation: 15
kernel 2.6.16.19 filesystem woes


I have some pretty good experience with building custom kernels and the like and I haven't had any problems in the past with doing so but I am really about to go crazy on this one. I'm trying to get 2.6.16.19 working and I cannot for the life of me figure out why I am getting "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2)" whenever I try to boot with it. I know that my grub file is correct:

root (hd0,1)
kernel /boot/bzImage-2.6.16.19 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.16.19
savedefault
boot

I know for a fact that /dev/hda2 is where the root of the drive is because the kernel I am using now (2.6.8.2) sees it. Initially I had just built file system support for only reiserfs, which is what I use as I don't have a need for JFS, XFS, ext, ext2, ext3, or minix. This gave me "Kernel panic - not syncing: VFS: Unable to mount root fs on unkwnon-block(0,0)" so I decided to go back and include all file system support. As a result, I now get what I posted above. I have all the file systems built into the kernel and I'm pretty sure I made the initrd file right (mkinitrd -o initrd.img-2.6.16.19 2.6.16.19). Anyone know what the deal is? Could this problem extend to another section of the kernel configuration?
 
Old 06-04-2006, 12:46 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Check that your disk drive is supported in Device Drivers > ATA/ATAPI/MFM/RLL support. If nothing else, you may need the generic IDE chipset support.
 
Old 06-04-2006, 01:53 PM   #3
h3xis
Member
 
Registered: Jan 2005
Distribution: Debian "Lenny"
Posts: 66

Original Poster
Rep: Reputation: 15
^ Sadly, that was the second thing I checked for. I have all ATAPI/IDE stuff built in because I had the same problem in the past and this fixed it. Guess this is a different issue
 
Old 06-04-2006, 02:20 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Hm. The only other thing I can think of (and I'm not sure this is required) is RAM disk support and Initial RAM filesystem support. Both are in Device Drivers > Block Devices. On my kernel, I've just used the defaults for RAM disk support and both that and the Initial RAM Filesystem are built into the kernel.
 
Old 06-04-2006, 02:45 PM   #5
h3xis
Member
 
Registered: Jan 2005
Distribution: Debian "Lenny"
Posts: 66

Original Poster
Rep: Reputation: 15
/me sighs

Yes, I made sure those were both built in as well. In fact, right before I get the kernel panic it will say that the RAM disk has been mounted. I'm thinking I'm just going to wipe the configuration data and start over from scratch. Thanks for your help though.
 
Old 06-04-2006, 03:01 PM   #6
h3xis
Member
 
Registered: Jan 2005
Distribution: Debian "Lenny"
Posts: 66

Original Poster
Rep: Reputation: 15
Oh, if it's of any interest or help I have uploaded my kernel configuration data. See below.

Config-2.6.16.19
 
Old 06-04-2006, 03:39 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'm going to admit to being stumped. Nothing glaringly obvious is jumping out from your config file. About the only suggestion I've got is to run a make clean, and then start with the config from your 2.6.8.2 kernel.
 
Old 06-04-2006, 04:18 PM   #8
h3xis
Member
 
Registered: Jan 2005
Distribution: Debian "Lenny"
Posts: 66

Original Poster
Rep: Reputation: 15
Alright, that's what I'll do. Thanks
 
Old 06-04-2006, 05:41 PM   #9
h3xis
Member
 
Registered: Jan 2005
Distribution: Debian "Lenny"
Posts: 66

Original Poster
Rep: Reputation: 15
HA! Got it. I was on a rampage and dug around in the miscellaneous file systems section and found CRAMFS hiding away. Built it in, and that was exactly the problem. Everything works like a charm now...minus the 4 or 5 FATAL errors I saw during start up :| I suppose I'll be working on that tonight.
 
Old 06-04-2006, 05:58 PM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by h3xis
HA! Got it. I was on a rampage and dug around in the miscellaneous file systems section and found CRAMFS hiding away. Built it in, and that was exactly the problem.
This seemed odd to me. So, I did a Google search and found the following information on Wikipedia:

Quote:
For this reason, some Linux distributions also appear to use cramfs as a file system for initial ramdisks (initrd) (recent versions of Debian in particular) and installation images (SuSE in particular), where there are onerous constraints on memory and image size.
So that's one to watch out for on recent Debian releases.

One question: With a custom kernel, are there any advantages to running an initrd? I can understand why packagers would use this functionality, but can the home hobbyist with a fully customised kernel benefit from an initrd in any way?
 
Old 06-06-2006, 03:38 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Just wanted to drop a "thanks" to all of you as this thread. It helped me fix my own 2.6.16.19 compile woes. Although I don't use initrd, I had forgotten to include my IDE controller (it was a module) and so I got the dreaded kernel panic. Now everything works great and so does my laptop's battery monitor!
 
Old 06-06-2006, 08:45 PM   #12
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
"That's what we're all here for."

And the reason that "we're all here" is that .. we've all "been there, done that."

"We're not incredibly-smart... we've just made the same mistakes slightly earlier than you did."

CRAMFS is needed by the initial-ramdisk support. If you're using that, the initrd image will be ... a CRAMFS.
 
Old 06-07-2006, 07:04 AM   #13
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
OK, now I've managed to become the seriously confused one. I've never included cramfs in any of my custom kernels, and I've never had this problem. I do include RAM disk support and initial RAM filesystem support. Are these different from initrd? Or, as suggested by rkelsen, is this a Debian-specific issue?
 
Old 06-07-2006, 07:36 AM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by Hangdog42
OK, now I've managed to become the seriously confused one. I've never included cramfs in any of my custom kernels, and I've never had this problem. I do include RAM disk support and initial RAM filesystem support. Are these different from initrd? Or, as suggested by rkelsen, is this a Debian-specific issue?
I get the impression that recent Debian kernel packages include an initrd with all of the "essential, but not built in" kernel modules. It is possible to build your own initrd, but I don't understand why anyone would want to do this with a custom kernel. Packagers obviously need to provide the widest support in the smallest package, so I can see why they'd need to do it.

Suse and Fedora are two other distros which use an initrd by default. Although I'd hazard a guess that not many Suse and Fedora users ever compile a custom kernel (or anything else for that matter)...
 
Old 06-11-2006, 08:11 PM   #15
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 799

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by rkelsen
It is possible to build your own initrd, but I don't understand why anyone would want to do this with a custom kernel. Packagers obviously need to provide the widest support in the smallest package, so I can see why they'd need to do it.
In the normal run of things, I don't think anyone would need an initrd. If you need to support alot of different setups, such as in distros, then you would, but not for a custom kernel. My kernel even with most everything built in is still small:

1241688 /boot/bzImage-2.6.16.18-nfmod

That's with all pci cards other than the ethernet card, cd, floppy, sound, framebuffer, filesystems (root and msdos/w32), and netfilter (base only). The only major thing I load later is USB support w/printer and ethernet card support.
 
  


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
kernel 2.6.11.9 woes onelung02 Slackware 6 05-15-2005 05:09 AM
Using the ext3 filesystem in 2.4 kernel powah Linux - General 2 04-21-2005 11:55 PM
Kernel 2.6.2 Woes slapshotct Linux - General 4 02-05-2004 12:06 PM
Kernel woes Geosharp Linux - General 6 08-21-2003 08:45 AM
New kernel and ext3 filesystem Thymox Linux - Software 3 12-03-2001 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:02 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