LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2009, 02:57 AM   #1
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
modprobe question


Hi All,

It is known fact that modprobe is used to load modules from standard directories and insmod from current directory. Is it possible for:

1. Cause modprobe to look in to a directory which is not a standard installed directory for modules?

2. Where should i place my module inorder to make my module get loaded by modprobe (the configuration steps)? .

3. What are the standard directories searched by modprobe?

Thanks,
 
Old 04-06-2009, 03:22 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by greplinux View Post
Cause modprobe to look in to a directory which is not a standard installed directory for modules?
'man modprobe' shows you it loads modules by name, not path. One way to make it look elswhere could be specifying a custom modprobe.conf. I never needed to try it, maybe you can.


Quote:
Originally Posted by greplinux View Post
Where should i place my module inorder to make my module get loaded by modprobe (the configuration steps)? .
Modprobe needs current modules.dep files. Those reside in your /lib/modules/`uname -r` directory, ergo place your modules there.


Quote:
Originally Posted by greplinux View Post
What are the standard directories searched by modprobe?
You can easily find that out for yourself:
0. Locate any module in your /lib/modules/`uname -r` directory,
1. Run 'strace -eopen modprobe modulename',
2. Inspect opened (config) files and see if they contain plain paths or filenames with paths.
 
Old 04-09-2009, 02:00 AM   #3
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 17
Thank you
 
  


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
modprobe / modinfo question jeff_k Linux - General 1 02-09-2008 05:03 AM
modprobe question ethyrdude Debian 2 11-17-2006 05:52 PM
Need to un-modprobe question jbuckley2004 Linux - General 2 01-25-2006 04:01 PM
modprobe question littleking Slackware 8 12-04-2003 01:15 PM
Quick question about modprobe calimer Linux - Hardware 5 04-24-2003 01:58 PM


All times are GMT -5. The time now is 05:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration