[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel upgrade: mkinitrd: module raid1 not found

Hi Justin,

Thanks for your help, I got it working now, but it is weird. This is what I
read at http://www.wlug.org.nz/SoftwareRaid:

"The most recent versions (eg LinuxKernel2.6) of the Debian kernel-image
packages build a new initrd image upon installation. They should
automatically notice if the root device is /dev/md* and arrange for the
appropriate modules to be present in the initrd image and loaded
appropriately. So if the software raid array is actually your root
filesystem when you do the kernel install, everything should just work."

and probably that's the problem: my kernel didn't have the raid modules and
mkinitrd is being too smart, trying to add the raid modules anyway. Sounds
like a bug to me.

But this is good news too, since root-on-raid now works with raid modules
and I can now use a stock kernel again!


"Justin Guerin" <jguerin@cso.atmel.com> wrote in message
> Hi Bob,
> You are correct: a raid1 module is not required since you compiled it into
> the kernel.  Actually, because you compiled it into the kernel, no module
> was built, which is why it can't be found.  To fix this error the most
> simple way, re-configure your kernel to build raid1 as a module, then
> compile again.
> On the other hand, since you're building your own kernel, why not just
> build in all the components you know you'll need at boot time, and build
> the rest (ones that you only think you might need) as modules.  That way,
> you won't even have to use an initial ram disk.
> But back to fixing your error without rebuilding your kernel: where is
> mkinitrd's confdir?  It's supposed to be /etc/mkinitrd, and if it's trying
> to put the raid1 module into the initial ram disk, then it should be in
> config files somewhere, but your grep doesn't seem to have found it.  It's
> possible it's in /usr or somewhere else.  If you find it, check to see
> that's not the culprit.
> Let the list know what route you decide to take and how it works.
> Justin Guerin
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact

Reply to: