LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-03-2005, 03:15 AM   #1
nostromo
Member
 
Registered: Mar 2003
Distribution: Debian 8
Posts: 74

Rep: Reputation: 15
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?
 
Old 10-03-2005, 04:03 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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.
 
Old 10-03-2005, 05:02 AM   #3
nostromo
Member
 
Registered: Mar 2003
Distribution: Debian 8
Posts: 74

Original Poster
Rep: Reputation: 15
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?
 
Old 10-03-2005, 07:52 AM   #4
GlowGlow
Member
 
Registered: Jun 2005
Posts: 111

Rep: Reputation: 15
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 .
 
Old 10-03-2005, 08:59 AM   #5
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Rep: Reputation: 30
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
 
Old 10-03-2005, 11:36 AM   #6
GlowGlow
Member
 
Registered: Jun 2005
Posts: 111

Rep: Reputation: 15
You can both use an underscore and a normal dash with the module tools.
 
Old 10-04-2005, 03:36 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 10-04-2005, 09:53 AM   #8
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conf.modules Vs Modules.conf Issue, lost eth0 initialization LinuxFreebie41 Linux - General 3 11-04-2004 06:02 AM
modprobe.conf from modules.conf Vaxon Linux - Hardware 1 09-22-2004 05:22 AM
Update-modules: No longer managing /lib/modules/modprobe.conf? geekzen Debian 0 04-03-2004 06:49 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration