SlackwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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 .
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.