-   Linux - Enterprise (
-   -   Add drivers to initrd (

shvnsen 09-10-2008 06:37 AM

Add drivers to initrd

I have posted earlier in threads and my prob is solved to an extent. I added ata_piix module in initrd by: mkinitrd --preload ata_piix initrd.version kernel version
then I copied it into my usb. when I started installing from usb it gave me errors:

Unable to find device-mapper major/minor
File descriptor 3 left open
No volume found /dev/mapper/control:open failed
No such file or directory
/bin/lvm exited abnormally
Is device-mapper driver missing from kernel

Now I know the problem and I want to add usb driver as module in initrd
But I m not getting the exact syntax
Kindly help me out
Thank you

CRC123 09-11-2008 03:28 PM

If you know what modules you need inserted, the syntax should be similar to what you listed above but with an '=':


mkinitrd --preload=ata_piix --preload=<modulename> <initrd.version> <kernel version>
You need a seperate '--preload=..' for every module.

shvnsen 09-12-2008 12:35 AM


U know what this is the main problem that I somehow not understanding which all modules to add.

One more help I need. If i have module name as ata_piix
then the syntax wud be
mkinitrd --preload=ata_piix --preload ata_piix <initrd-version> <kernel version>

jschiwal 09-12-2008 12:51 AM

No, use --preload=<module name1> --preload=<module name2> <initrd_version> <kernel version>
You said you needed another module included. The example given in post 2 was for including the second module. You can use the --preload option again for a third option as well. On some systems, there is a config file where you can enter which modules you need. Look in /etc/sysconfig/kernel and see if it's there.

Mkinitrd is usually a script program and fine tuned for each distro for their particular needs. For example, some distro's produced initrd files that are compressed ext2 filesytems, while others use compressed cpio archives.

newtovanilla 11-22-2008 11:54 PM


Is this for a PATA hd?

You can also take the existing initrd and add your own linuxrc to it that will load the module:

modprobe ata_piix

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