LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-31-2008, 02:58 PM   #1
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
New modules to initrc file


How does one add modules to the initrd file? I have added a new SCSI controller that was not present when I did the install initially. When the machine boots up, it complains about a drive on the controller not existing, but when the machine is done booting up, the drive is mounted where it should be. I would like to get the machine to boot cleanly though.

Keith
 
Old 01-31-2008, 09:28 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Try adding the modules to /etc/modprobe.preload and see if that takes care of your problem; it should unless you want to boot off the scsi drive. That's a lot easier than making a new initrd which is what you have to do using the mkinitrd command. You can't just add the modules you want to an existing initrd AFAIK. I haven't had to do that for a long time but check out man mkinitrd for more details.
 
Old 03-06-2008, 07:59 AM   #3
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Original Poster
Rep: Reputation: 30
Hmmm.... I can not seem to find that file: /etc/modprobe.preload. I am running FC7 if that matters.

Keith
 
Old 03-18-2008, 08:59 AM   #4
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Original Poster
Rep: Reputation: 30
Anyone else.......

Keith
 
Old 03-28-2008, 09:08 AM   #5
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
I am unsure whether this is the same for F7 (I think it is), but the correct way to load a module on boot in Fedora 8 is to create a .modules file in /etc/sysconfig/modules/ - here is how to do it for a module called "mymodule":

1) Create a new file called "/etc/sysconfig/modules/mymodule.modules" and open it for editing in your favourite editor.

2) Now paste the following into the file, adjusting the name "mymodule" as necessary:

Code:
#!/bin/sh
echo -n "Loading mymodule..."
if /sbin/modprobe mymodule
then
        echo "SUCCESS"
else
        echo "FAILURE"
fi
3) Save and exit, then change the file permissions as follows:

Code:
chmod 744 /etc/sysconfig/modules/mymodule.modules
On next boot, the module will be loaded.

HTH
 
  


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
FATAL: Could not load /lib/modules/2.6.14-default/modules.dep no such file exist dr_zayus69 Linux - Software 3 12-26-2005 06:44 PM
Modules' script file cb951303 Slackware 10 08-30-2004 02:43 PM
Slack9 - no PPP (can't open dependencies file /lib/modules/2.4.18/modules.dep) bluehz Slackware 1 05-04-2003 02:32 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:18 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