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

RE: Kernel 2.6.6 does not recognise /dev/md0 automatically



Hi Clement,
> Thank you very much for your reply.  Sure, the std kernel 
> 2.6.6 works fine with raid1.  Or otherwise the root partition 
> (RAID1) could not be mounted. (The problem was, apart from 
> the root partition, no other RAID1 partition was mounted 
> automatically.)
> 
> During the boot process, I noticed this error:
> 
> 	ide_detect module not found
> 
> (The RAID comprises 2 ATA drives) I did some google searches 
> but cannot find any help.  So I compiled a 2.6.6 kernel with 
> IDE support built-in.  Bingo, that fixed the problem.
 
> Trouble is, I cannot upgrade the kernel with a simple 
> apt-get.  It will be great if the std kernel can have this 
> problem fixed.
> 
This does work with std kernels using initrd!  You'll need to start off
with a custom prepared initrd as explained earlier, and load such
required modules as ide_detect and others into the initrd.  Once you've
done that you are away and running for apt upgrades.  During the deb
package kernel_image install, the install script checks to see what the
current kernel is using and customises the initrd accordingly (brilliant
work by the package maintainers & kernel team that allows the automatic
kernel upgrade).  This is where your problem is; if you have the modules
compiled into the kernel, they won't get picked up at install time by
the install script and thus don't make it into the initrd.  If the
modules are loaded after boot,(e.g. like Sound modules etc..) they also
will be missing in the initrd.

Hope this helps...

Lew Shobbrook



Reply to: