View previous topic :: View next topic |
Author |
Message |
sparriskrigaren Tux's lil' helper
Joined: 20 Aug 2003 Posts: 103
|
Posted: Sun Aug 31, 2003 8:38 pm Post subject: How to remove modules from startup? |
|
|
Where can I find a file which tells Gentoo which modules that should be loaded at startup? I'd like to remove some of them to try something. A friend of mine told me to check /etc/modules.autoload.d/kernel-2.4 but there's not really anything in that file.
So he told me something about hotplugging. Help me out folks |
|
Back to top |
|
|
Gradaz Tux's lil' helper
Joined: 11 Nov 2002 Posts: 101 Location: Strongbadia
|
Posted: Sun Aug 31, 2003 8:49 pm Post subject: |
|
|
Take a look at this:
http://www.gentoo.org/doc/en/rc-scripts.xml
rc-update utility should help. If you compile something into the kernel it has to be removed by recompiling the kernel. |
|
Back to top |
|
|
sparriskrigaren Tux's lil' helper
Joined: 20 Aug 2003 Posts: 103
|
Posted: Sun Aug 31, 2003 9:14 pm Post subject: |
|
|
The stuff is not compiled into the kernel, they're modules. But I'm sorry, I don't see how that will help me removing the modules that are loaded on the startup. Isn't there just a script or something that tells gentoo which modules that should be loaded, that I can alter? |
|
Back to top |
|
|
Gradaz Tux's lil' helper
Joined: 11 Nov 2002 Posts: 101 Location: Strongbadia
|
Posted: Sun Aug 31, 2003 9:22 pm Post subject: |
|
|
For modules I would use these commands:
insmod to load
lsmod to show loaded moduled
rmmod to unload
On my system I load nvidia drivers. I specify that in /etc/modules.autoload |
|
Back to top |
|
|
sparriskrigaren Tux's lil' helper
Joined: 20 Aug 2003 Posts: 103
|
Posted: Sun Aug 31, 2003 9:30 pm Post subject: |
|
|
I found out how to do it.
I had to add the modules I don't want loaded to a file:
/etc/hotplug/blacklist
Now it works fine.
thanks anyway! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54330 Location: 56N 3W
|
Posted: Sun Aug 31, 2003 9:33 pm Post subject: |
|
|
Gradaz,
modprobe is more user friendly. It loads dependencies too.
Regards,
NeddySeagoon _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Gradaz Tux's lil' helper
Joined: 11 Nov 2002 Posts: 101 Location: Strongbadia
|
Posted: Sun Aug 31, 2003 9:39 pm Post subject: |
|
|
You are probably right. I always do modprobe after insmod fails:)
Can someone explain why hotplugging is loading some those modules and you have to blacklist them? |
|
Back to top |
|
|
|