LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 04-03-2005, 05:40 PM   #1
cdavidson
Member
 
Registered: Jan 2004
Location: Mississippi
Distribution: Gentoo 2006.1, openSuSe 10.2
Posts: 43

Rep: Reputation: 15
Angry Just rebuilt kernel for the first time....kernel panic!!!


In an effort to ward off my noobness, I just rebuilt my first kernel. I've got a test machine that I'm doing this on so at least it's not my workstation. Anyway, here's the situation:

I've got RH9 (kernel 2.4.20-8) running on a Dell OptiplexGX150. I did a vanilla install with no X Windows system specifically for the purposes rebuilding the kernel. I downloaded linux-2.6.11.6.tar.bz2 from kernel.org and then procedded to follow the instructions on Digital Hermit's Kernel Build HOWTO. The compiling, etc. went off without a hitch. Once the rebuild was done, I edited my grub.conf accordingly and rebooted to try out 2.6. During bootup I received the following messages:

Code:
Mounting root file system:
mount:  error 19 mounting ext3
pivotroot:  pivot_root(/sysroot, /sysroot/initrd) failed:  2
umount  /initrd/proc failed:  2
Freeing unused kernel memory:  264k freed
Kernel panic-  not syncing:  no init found.  Try passing init= option to the kernel
At first glance, it would seem that it can't mount an ext3 fs, but I'm 99.999% sure that I wouldn't have disabled support for it in the 2.6 kernel. Please help. Thanks in advance.
 
Old 04-03-2005, 05:46 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
Couple of points:

The kernel module tools supplied with RH9 won't work with a 2.6 kernel. You'll need to get and install the newer module-init-tools packages.

Did you do a mkinitrd for your new kernel? If so, I'm guessing the 2.6 kernel isn't able to actually load any modules frokm it due to the point mentioned above -- as a result, it's not able to get the ext3 filesystem module to mount the root filesystem.

You really ought to just compile everything you really need (like ext3) directly into the kernel to avoid all this mess -- you'll still need module-init-tools to load other modules, though.

If you did do that and it's still not working make sure you've specified the correct root= parameter on the kernel command line.
 
Old 04-03-2005, 05:57 PM   #3
cdavidson
Member
 
Registered: Jan 2004
Location: Mississippi
Distribution: Gentoo 2006.1, openSuSe 10.2
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for the quick reply btmiller...

I checked the minimum software requirements for the 2.6 kernel and it specified at least version 0.9.10 for module-init-tools. I checked my version using depmod -V and my RH9 box had v2.4.22 from the install, so I didn't give it another thought. You think I should obtain the most current version and recompile? I did do a mkinitrd of the new kernel. I will integrate fs drivers directly into the kernel from now on (should've thought of that one myself...).
 
Old 04-03-2005, 07:40 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
The 2.4.22 is probably the version of modutils, which is the precursor to module-init-tools. You need module-init-tools for the 2.6 kernel.
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kickstart install has kernel panic, every other time hawarden Linux - General 1 10-26-2005 07:45 PM
Rebuilt kernel - no sound now :( Influx Linux - Newbie 3 10-11-2005 09:28 AM
[2.6.11 just compiled] kernel panic at boot-time MD3 Slackware 10 04-24-2005 11:39 AM
kernel panic EVERY time new kernel installed InfinitiesWorld Mandriva 1 01-11-2004 06:12 PM


All times are GMT -5. The time now is 02:21 AM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration