DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The difference that I have only a / and a /home partition.
I compiled my kernel (2.6.8) with RAID support.
After the reboot I got a Kernel panic. See my log: KernelPanic
In the tutorial there was no initrd defined in the grub menu list. Can it be the problem?
debian:/# sfdisk -l /dev/hda
Disk /dev/hda: 8322 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 8322/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 158 159- 1277136 fd Linux raid autodetect
/dev/hda2 159 521 363 2915797+ 5 Extended
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
/dev/hda5 159+ 180 22- 176683+ 82 Linux swap / Solaris
/dev/hda6 181+ 521 341- 2739051 fd Linux raid autodetect
debian:/#
and hdc:
Code:
debian:/# sfdisk -l /dev/hdc
Disk /dev/hdc: 8322 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hdc1 * 0+ 2534- 2534 1277136 fd Linux raid autodetect
/dev/hdc2 2534+ 8319- 5786- 2915797+ 5 Extended
/dev/hdc3 0 - 0 0 0 Empty
/dev/hdc4 0 - 0 0 0 Empty
/dev/hdc5 2534+ 2884- 351- 176683+ 82 Linux swap / Solaris
/dev/hdc6 2884+ 8319- 5435- 2739051 fd Linux raid autodetect
debian:/#
The compiled kernels provided by Debian have support for Linux software RAID, no need to start compiling the kernel oneself really, unless you know your situation is such that the configuration of the kernels is not suitable.
The need of an initrd image depends on your kernel. If you have some things compiled as modules that are needed before the filesystem is available, you need to create an initrd image containing those modules. When compiling own kernels it is very easy to forget some essential things to either compile in statically or put into the initrd.
Given the output on the console, it appears as the root filesystem is not found. Hard to say the exact reason, but I don't see any mention of anything related to the RAID array in the output. If I'd venture a guess, I'd say you are missing some important module somewhere.
One way of lessening nasty RAID bootup issues is to put /boot on a separate partition that is not part of any array. But that won't be of any help if some modules are missing one way or the other as described above as it will fail then too.
Essentially, double-check that you have done everything right.
I myself run a Linux software RAID-0 setup with Debian that I configured during the Debian's installation.
I don't know enough of manual tinkering with the Linux software RAID setups to be of any huge help, but this is how I have things set up. I'm using the 2.6.8-2-k7 kernel provided by Debian.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.