LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2011, 02:31 PM   #1
tunkaflux
LQ Newbie
 
Registered: Apr 2003
Posts: 10

Rep: Reputation: 0
Custom kernel + RAID1 = Kernel Panic


Hello,

I'm currently running Slackware64 13.37 with the 2.5.38.4 huge kernel from /testing on a RAID1 root (ext3 on /dev/md0).

I'm trying to compile a custom kernel at the moment, but whenever I try to run it, the boot process seems to hang just after the /dev/md0 messages with an error like "VFS Unable to mount root fs on unknown-block(9,0)". I'm following Alien Bob's kernel compile guide at http://alien.slackbook.org/dokuwiki/...kernelbuilding

I've compiled ext2, ext3, ext4, RAID support in the kernel and I'm currently at a loss at what I'm still missing... It's probably something stupid that I'm currently overlooking

Any ideas are greatly appreciated
 
Old 07-20-2011, 04:49 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
You'll need an initrd if you are booting from the RAID array.
 
Old 07-20-2011, 05:21 PM   #3
tunkaflux
LQ Newbie
 
Registered: Apr 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mRgOBLIN View Post
You'll need an initrd if you are booting from the RAID array.
Do I also need one when I compile everything in the kernel? I was under the impression this was not necessary?
 
Old 07-20-2011, 05:56 PM   #4
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Yes it's still needed.
 
Old 07-21-2011, 02:58 AM   #5
tunkaflux
LQ Newbie
 
Registered: Apr 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for your answer. How do I know which modules to add?
 
Old 07-21-2011, 03:34 AM   #6
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
run
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
If you are sure you have all kernel modules built in you may not need to specify any modules so something like this might do it.

Code:
mkinitrd -c -k 2.6.38.4 -f ext4 -r /dev/md0 -R -u -o /boot/initrd.gz
Don't forget to add your initrd line to lilo.conf and run lilo again
 
Old 07-21-2011, 02:26 PM   #7
tunkaflux
LQ Newbie
 
Registered: Apr 2003
Posts: 10

Original Poster
Rep: Reputation: 0
How come an initrd is not needed when using the Slackware huge kernel?

According to the mkinitrd_command_generator.sh I had to use "mkinitrd -c -k 2.6.38.4-tfx -f ext4 -r /dev/md0 -m ext4 -R -u -o /boot/initrd.gz" which I did, adapted lilo, still kernel panic
 
Old 07-21-2011, 04:12 PM   #8
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
How come an initrd is not needed when using the Slackware huge kernel?
In my experience, the initrd has been required ever since the "raid-autodetect" behaviour changed in the kernel.

The raid array is assembled in the initrd.

Looking back at your first post you said that you had "RAID1 root (ext3 on /dev/md0)." so you'd need "-f ext3" (unless that was a typo)

Last edited by mRgOBLIN; 07-21-2011 at 04:52 PM.
 
Old 07-21-2011, 04:42 PM   #9
tunkaflux
LQ Newbie
 
Registered: Apr 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mRgOBLIN View Post
How come an initrd is not needed when using the Slackware huge kernel?
In my experience, the initrd has been required ever since the "raid-autodetect" behaviour changed in the kernel.
Hmm, strange.

Quote:
Originally Posted by mRgOBLIN
The raid array is assembled in the initrd.
How come I don't need one when I use the huge kernel? Sorry about all the questions, I'm just trying to understand how the initrd and boot process works...

Quote:
Originally Posted by mRgOBLIN
Looking back at your first post you said that you had "RAID1 root (ext3 on /dev/md0)." so you'd need "-f ext3" (unless that was a typo)
That was a typo, sorry ;-)

Last edited by tunkaflux; 07-25-2011 at 03:42 AM.
 
  


Reply

Tags
kernel panic, raid1, slackware 13.37



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
Debian 6.0 - custom kernel compile Kernel panic - not syncing: VFS: Unable to mount Bono Debian 5 05-06-2011 06:18 PM
kernel panic - custom kernel won't mount file system j-osh Fedora 8 11-19-2008 01:13 AM
kernel panic while booting custom compiled 2.6.24 kernel on RHEL 4 AS samkraju Red Hat 4 02-10-2008 12:55 AM
Kernel panic during boot with software RAID1 Petevs Linux - General 2 09-11-2007 06:41 PM
kernel panic after building custom kernel for macbook sparrott Linux - Laptop and Netbook 1 06-29-2007 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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