LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


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

Rep: Reputation: 15
Add drivers to initrd


Hi,

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, 03:28 PM   #2
CRC123
Member
 
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 '=':

Code:
mkinitrd --preload=ata_piix --preload=<modulename> <initrd.version> <kernel version>
You need a seperate '--preload=..' for every module.
 
Old 09-12-2008, 12:35 AM   #3
shvnsen
Member
 
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Original Poster
Rep: Reputation: 15
Hi,

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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-22-2008, 11:54 PM   #5
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
linuxrc

Quote:
ata_piix
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
 
  


Reply



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 04:23 PM
how can I add udev into initrd? randomsel Slackware 1 06-29-2008 08:27 PM
How to add non-US keyboard layout to initrd (cryptsetup)? malo_umoran Slackware 6 04-05-2008 08:44 AM
How to compile initrd image adding new network drivers kiranbyk Linux - Software 3 05-30-2007 05:58 AM
Compile Kernal with New Drivers...How to add drivers? scgadgets Linux - General 4 09-19-2001 09:27 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:28 PM.

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