LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-24-2003, 03:59 AM   #1
trouby
Member
 
Registered: Sep 2003
Posts: 59

Rep: Reputation: 15
Loading modules


Hey,

I never knew... where is the right place to load kernel modules?
Of course there are modules like ethernet cards that should be loaded before ifconfig configures the interfaces,


For some reason I have compiled as modules the ethernet cards and they go up automatically, I guess it loads automatically by the kernel itsself when something (like ifconfig) tries to access the ethernets.

Anyway, where do I put modules in Slackware?

Thanks.
 
Old 12-24-2003, 04:04 AM   #2
delta9
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 66

Rep: Reputation: 15
I think the logical place would be /etc/rc.d/rc.modules
 
Old 12-24-2003, 04:06 AM   #3
trouby
Member
 
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
so /etc/modules.conf is only for aliasing or what?
 
Old 12-24-2003, 04:54 AM   #4
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Re: Loading modules

Quote:
Originally posted by trouby
Hey,

I never knew... where is the right place to load kernel modules?
Of course there are modules like ethernet cards that should be loaded before ifconfig configures the interfaces,


For some reason I have compiled as modules the ethernet cards and they go up automatically, I guess it loads automatically by the kernel itsself when something (like ifconfig) tries to access the ethernets.

Anyway, where do I put modules in Slackware?

Thanks.
AFAIK if you're using kmod (automatic kernel modules loading) you don't need to worry about loading modules, since the kernel does that automatically when it needs modules loaded. For example, you need USB mass storage? It gets loaded the first time the kernel is instructed to have access to it, I repeat, as far as I know.

Anyway, usually you don't need to edit /etc/rc.d/rc.modules if you need modules you have built when compiling your kernel. If you compile external modules, which aren't normally in the kernel source, for example omnibook kernel module, you need to add the corresponding modprobe line to your rc.modules.

/etc/modules.conf is for aliasing, as you said, and I'll add another useful file, i.e. /etc/hotplug/blacklist to which you can add modules you don't want to be automatically loaded at startup. Have a look at blacklist, since it's clearly commented, and you'll understand what a newbie (even if my infos say I'm a member now) as myself is trying to say.

Merry Xmas.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
loading modules danimalz Debian 2 10-18-2005 10:22 PM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
loading modules priller Linux - Newbie 1 06-03-2004 09:09 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM


All times are GMT -5. The time now is 03:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration