Visit Jeremy's Blog.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 09-10-2008, 07:37 AM   #1
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Rep: Reputation: 15
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/controlpen 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
Old 09-11-2008, 04:28 PM   #2
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
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.
Old 09-12-2008, 01:35 AM   #3
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Original Poster
Rep: Reputation: 15

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>
Old 09-12-2008, 01:51 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
Old 11-23-2008, 12:54 AM   #5
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Command help to mount INITRD.img and add files to it to create bootloader newtovanilla Linux - Newbie 5 07-01-2013 05:23 PM
how can I add udev into initrd? randomsel Slackware 1 06-29-2008 09:27 PM
How to add non-US keyboard layout to initrd (cryptsetup)? malo_umoran Slackware 6 04-05-2008 09:44 AM
How to compile initrd image adding new network drivers kiranbyk Linux - Software 3 05-30-2007 06:58 AM
Compile Kernal with New Drivers...How to add drivers? scgadgets Linux - General 4 09-19-2001 10:27 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration