LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   load modules at boot (https://www.linuxquestions.org/questions/linux-newbie-8/load-modules-at-boot-315685/)

coldsalmon 04-21-2005 09:53 AM

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

Crashed_Again 04-21-2005 11:20 AM

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.

coldsalmon 04-21-2005 02:11 PM

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

snowtigger 04-21-2005 02:18 PM

Have a look at /etc/rc.d/rc/modules
Unless you have already changed it, there is some info in there

:)

coldsalmon 04-21-2005 04:36 PM

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.