Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to remove modules from startup?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sparriskrigaren
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 103

PostPosted: Sun Aug 31, 2003 8:38 pm    Post subject: How to remove modules from startup? Reply with quote

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
View user's profile Send private message
Gradaz
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 101
Location: Strongbadia

PostPosted: Sun Aug 31, 2003 8:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
sparriskrigaren
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 103

PostPosted: Sun Aug 31, 2003 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gradaz
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 101
Location: Strongbadia

PostPosted: Sun Aug 31, 2003 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
sparriskrigaren
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 103

PostPosted: Sun Aug 31, 2003 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54330
Location: 56N 3W

PostPosted: Sun Aug 31, 2003 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gradaz
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 101
Location: Strongbadia

PostPosted: Sun Aug 31, 2003 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum