Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-03-2005, 03:15 AM
|
#1
|
|
Member
Registered: Mar 2003
Distribution: Slackware 14
Posts: 73
Rep:
|
rc.modules, modprobe.conf?????
I'm using Slack 10.1 with new kernel 2.6.13, so far I understood that
if I want some modules to load/unload at boot, I need to edit
/etc/modprobe.conf or rc.modules.
What confuses me is that if I do 'lsmod' I get a list of some modules
, which I want to remove, that are not present in those two files.
For example I want to remove nvsound, orinoco_pci and so on
for some reason but they do not exist in modprobe.conf nor in
rc. modules.
Is there another file that I should be aware of?
|
|
|
|
10-03-2005, 04:03 AM
|
#2
|
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
Yes, they may be loaded by hotplug (/etc/rc.d/rc.hotplug) you could add those modules to hotplug's blacklist at /etc/hotplug/blacklist to avoid it load them.
|
|
|
|
10-03-2005, 05:02 AM
|
#3
|
|
Member
Registered: Mar 2003
Distribution: Slackware 14
Posts: 73
Original Poster
Rep:
|
Should I make blacklist executable?
I would also like to know where to find a list of those modules since I can't find them anywhere except in /lib/modules/2.6.13/modules.alias.
Is that the right list which loads them while system is booting?
|
|
|
|
10-03-2005, 07:52 AM
|
#4
|
|
Member
Registered: Jun 2005
Posts: 111
Rep:
|
Quote:
Originally posted by nostromo
Should I make blacklist executable?
|
No.
Quote:
I would also like to know where to find a list of those modules since I can't find them anywhere except in /lib/modules/2.6.13/modules.alias.
Is that the right list which loads them while system is booting?
|
Hotplugging does not use a list. On the initial startup, it just collects al PCI/USB/Cardbus device IDs, and looks up if there is any module associated with a device ID. If this is the case, the module is loaded. After booting the system hotplugging is automatically triggered when a device is plugged. The kernel runs the hotplug binary that is set in /proc/sys/kernel/hotplug (normally /sbin/hotplug) with information about the event as environment variables. The same procedure is then repeated for this device (the ID is looked up, modules are loaded if needed).
If you want to have full control over what modules should be loaded, you can disable hotplug with
chmod a-x /etc/rc.d/rc.hotplug
Or just list any module you do not want to load in /etc/hotplug/blacklist .
|
|
|
|
10-03-2005, 08:59 AM
|
#5
|
|
Member
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194
Rep:
|
even the module name is (for exemple) "ide-scsi", it's included in rc.modules as "ide_scsi" I don't know why but maybe you have the same problem
|
|
|
|
10-03-2005, 11:36 AM
|
#6
|
|
Member
Registered: Jun 2005
Posts: 111
Rep:
|
You can both use an underscore and a normal dash with the module tools.
|
|
|
|
10-04-2005, 03:36 AM
|
#7
|
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,589
|
When you use 'modprobe', it figures out if a module needs other modules loaded and loads them all in the right order. 'insmod', on the other hand, loads only the module that you specify.
If you want to load everything manually, do as suggested abbove and make /etc/rc.d/rc.modules non-executable and also empy out the modprobe.conf file or rename it.
|
|
|
|
10-04-2005, 09:53 AM
|
#8
|
|
Member
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 736
|
I believe you can also use the "alias" statement in "/etc/modules.conf" to alias the module name being loaded to the correct module name (that you want to be loaded). If hotplug detects the device it will load the driver you specified in the "alias".
The ALSA sound drivers use that technique to load generic driver names and then alias the driver names to the correct driver names for the sound card.
I was quite confused about modules too.
rc.modules loads modules that are not automatically loaded.
modules.conf is used to specify options to always use when loading a module, or to alias a module name to a different name.
For example, if you use "insmod abcd" and there is an alias in "modules.conf" plus options specified there, you may actually end up with something like this.
insmod xyz irq=6 port=0x3fc
In this example "abcd" was aliased to "xyz" and there was an options statement specifying the "irq=6" and "port=0x3fc".
Since hotplug, modprobe (and other things?) load modules automatically, it's important to know what's in "modules.conf". Mine was empty when I installed Linux.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:33 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|