difference between /etc/modules.conf and /etc/modprobe.conf

2,385 views
Skip to first unread message

chenthil manavalan

unread,
Jan 22, 2009, 11:41:36 PM1/22/09
to VG...@googlegroups.com
Hi Friends ,
                 Am totally confused with purpose these 2 files (  /etc/modules.conf and /etc/modprobe.conf  ) . Can any 1 provide me  a link which provide me a clear picture of  these files and directories also .

/etc/depmod.d
/etc/depmod.d/depmod.conf.dist
/etc/modprobe.d
/etc/modprobe.d/blacklist-compat
/etc/modprobe.d/modprobe.conf.dist

of these file and directory .

I didnt find a /etc/modules.conf in RHEL 5 machine .

http://tldp.org/HOWTO/Module-HOWTO/x197.html --> this link states that "modprobe" command uses /etc/modules.conf file . We all know that modprobe is available in RHEL 5. How does the module probing will happen in RHEL without /etc/modules.conf or they use /etc/modprobe.conf file instead of /etc/modules.conf . Please confirm this also .

Please suggest any Good link which illustrates with an example of  insmod , depmod , rmmod , modprobe ,  "installation of driver" , dynamic loading of modules .

--
Thanks and Regards
L .Chenthil Manavalan B.E
Mobile No:9380002657

~~~0Pen ~~~ S0uRce ~~~

unread,
Jan 23, 2009, 4:38:23 AM1/23/09
to VG...@googlegroups.com
Hi



try the below link this may be helpful to you

http://www.ibm.com/developerworks/linux/library/l-config.html






--
~~~ 0Pen ~~~ S0uRce ~~~

Alok Thaker

unread,
Jan 23, 2009, 6:03:59 AM1/23/09
to VG...@googlegroups.com
Hi Dear,

See modules are basically defined as M in kernel image which
means kernel checks that the support for any device or services would
required modules to be loaded while booting and detect them in layman
terms. If you don't enable some modules in /etc/modules.conf or
/etc/modprobe.conf that modules can be made detected using insmod and
modprobe command so it would be detected for that session only and
again when you reboot if wouldn't be detected unless you make it
enable in modprobe.conf or modules.conf.

The thing is 2.6 series of kernels uses modprobe.conf instead of
modules.conf which was being used by 2.4 series of kernels so need to
panic if you don't see modules.conf in RHEL5 brother.

modprobe,insmod,depmod,rmmod are generally the commands to play with
modules. modprobe and insmod mostly does the same thing,depmod looks
for module dependencies and rmmod is used for removing the module.

You can have a look at tldp.org the linux documentation project on
internet which has lot of docs on kernel hacking,kernal internals and
device drivers.

Thanks,
Alok
www.inferno.co.in !
Go with the best !
All Linux/Java Solutions-Training under one roof !
(Mob:-9925519798)

chenthil manavalan

unread,
Jan 23, 2009, 8:02:15 AM1/23/09
to VG...@googlegroups.com
Hi Friend

Thanks for the prompt answer . we really appreciate your reply .

Thanks
Chenthil
Reply all
Reply to author
Forward
0 new messages