Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load modules at boot?

Status
Not open for further replies.

miblo

Technical User
Sep 3, 2001
76
SE
Hi,

How do I specify a certain module to load at boot time?

I have a RedHat 9 server and need the ide_cd module to load so I can use the CD-RW device. Manually typing 'modprobe ide_cd' loads it perfectly, but I want the module to load automatically when the machine boots.

Any pointers greatly appreciated.

TIA,

~Mike
 
The "Right Way(tm)" to do it is to alias the kernel resource that is being requested to the appropriate module in /etc/modules.conf

For example, these are from my laptop:
Code:
alias snd-card-0 snd-es1968
alias usb-controller uhci-hcd
alias wlan0 ndiswrapper

But you have to find out what the resource the kernel is requesting to do it that way.
 
Thanks, I figured as much. But how do I determine what the kernel resource is?

Specifically, I want to use cdrecord. cdrecord fails unless I do a 'modprobe ide_cd' prior to using it. Just running cdrecord does not automatically load the ide_cd driver, as one might expect.

So, how do I determine what resource cdrecord (or any other application) is requesting? This is my main issue...

 
I've never had to figure it out. Try this:

Code:
lsmod | sort > lsmod.out.pre
mod_proble your_module
lsmod | sort > lsmod.out.post
diff lsmod.out.*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top