load modules at boot
Hi,
I'm trying to load my necessary hardware modules at boot instead of running hotplug every time. My goal is a faster boot. I know how to use lsmod to list the modules that are currently running, but how do I add those to the kernel at boot to replace hotplug? I'm running Slack 10.1 with the 2.4 kernel. Thanks, --C |
Ummm...lets see 2.4 series uses /etc/modules.conf I think. You should be able to add the modules you want to load at boot time in that file.
|
Do I just copy the names directly from lsmod and just make a list in modules.conf, or is there special syntax? Also, If I decide to upgrade to 2.6 kernel, how does that operate?
Thanks so much, --C |
Have a look at /etc/rc.d/rc/modules
Unless you have already changed it, there is some info in there :) |
Okay, finally got it. In case anyone else is having the same problem, here's what I did:
I appended the lsmod output to modules.conf $ lsmod >> /etc/modules.conf Then I edited it to make all the new lines look like: /sbin/modprobe MODULENAME Then I disabled hotplug by renaming /etc/rc.d/rc.hotplug to _rc.hotplug It now takes me 23 seconds from bootloader to console login, and about 30 seconds to the xcfe desktop with xdm. I finally beat M$ for boot time! Gotta love Slackware :) --C Gateway 450ROG laptop Pentium M 1.4 GHz 512MB SDRAM Slackware 10.1 Kubuntu Hoary Hedgehog |
All times are GMT -5. The time now is 09:33 PM. |