• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

how to load the driver module when boot up??

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

firebird79

Member
Joined
Mar 24, 2002
recently i swap in a creative sound card and it mass up my onboard sound card driver. now i had to type modprobe cmpci everytime after i reboot. where should i edit so i don't hv to do this tedious thing anymore??
 
You'ge going to want to put that into one of you start up scripts. But which script, and where to put it all depends on what distro you're running.

On slackware, I would put that into the '/etc/rc.d/rc.modules' script. But, I'm not sure about other distros. Just go into you /etc directory and and type 'grep -rl module *' and that should find all the files that have the word module in them, and I'm sure one of those will be the script where you can put the command.

You might also want to read this HOWTO
http://www.ibiblio.org/pub/Linux/docs/HOWTO/Module-HOWTO
 
i'm not a linux power user by any stretch of the imagination, but wouldn't the best way to do this is to recomplie the kernel?
 
MaxPower said:
i'm not a linux power user by any stretch of the imagination, but wouldn't the best way to do this is to recomplie the kernel?

While this would be one way to resolve the problem, one of the main points of loadable modules is that you don't have to rebuilt the kernel all that often. That way you can get a small, customized, stable kernel running, and either have the kernel autoload the modules it needs, or you can do it by hand. That can save memory, since you only load what you need, plus if you use the kernel autoloader it will do all of that on the fly when ever it needs a module. The Module-HOWTO describes the pros and cons of loadable modules, and would definitaly be a good read if you get the chance.

Usually what I do, is make the base kernel with low level drivers built in, and then make things like sound cards, NICs, USB, etc. as modules.

But the nice thing about GNU/Linux is that it is your machine and you can do what you want. So, if you want to build everything into the kernel and not mess with modules, you are free to do it.
 
i finally figure out where to edit. well, i'm using RH7.3 with kernel 2.4.19. like moorcito said, edit the /etc/rc.d/rc.sysinit. add "modprobe cmpci" on the bottom of the file and then restart. boom....it work!! thanks pals!!!
 
Back