LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-19-2008, 01:01 AM   #16
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31

sorry...mistake in my question...just i want to know from which path the "modules" are loaded when kernel boots?
 
Old 12-19-2008, 05:58 AM   #17
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
by using google i found that /etc/modprobe.d/aliases is the path to load the modules when kernel boots....but i saw the file /etc/modules i get confussed...
The o/p of that file tells that its the file used to load the modules when kernel boots...i dont know which is the correct one...can anyone help me...
 
Old 12-19-2008, 08:19 AM   #18
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
I believe you need more than usbcode to make your usb device work. What you need depends on then device...
 
Old 12-19-2008, 11:12 AM   #19
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
No friend...just i know the content of the above files and purpose of that above files..so that i can easyly do my work...
 
Old 12-19-2008, 02:44 PM   #20
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
Ok, here goes:

/etc/modules for your distribution is likely where the list of modules that are loaded at boot time resides.
/etc/modprobe.d/alias (on my box its /lib/modules/2.6.24.5/modules.alias) is a list of module names linked to the path of the module on the HDD (Hence why it is called alias. Aliasing is a common theme in linux, especially when it comes to configuring bash).
Those aliases are what you call when you use the modprobe command, i.e.

root@yourbox:/# modprobe usbserial

usbserial is an alias for on of the usb modules, which is actually located at /lib/modules/2.6.24.5/kernel/drivers/usb/serial/usbserial.ko. As you can see, typing usbserial as opposed to the full path is much more convenient, so modprobe and depmod maintain the alias list for you to make things a bit easier :-).
 
Old 12-19-2008, 10:22 PM   #21
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
Thanks a lot gankoji
Quote:
Originally Posted by gankoji View Post
/etc/modules for your distribution is likely where the list of modules that are loaded at boot time resides.
you said that /etc/modules for my distribution will have the list of modules which is used to load at boot time...but there is no modules list..only "fuse" and "lp" is there..can you tell me why it is like that?

Last edited by shariefbe; 12-19-2008 at 10:25 PM.
 
Old 12-20-2008, 11:50 AM   #22
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
Dont know what to do...kindly refer my post and reply me.....so confussed due to this.....
 
Old 12-20-2008, 04:32 PM   #23
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by shariefbe View Post
Thanks a lot gankoji


you said that /etc/modules for my distribution will have the list of modules which is used to load at boot time...but there is no modules list..only "fuse" and "lp" is there..can you tell me why it is like that?
Because fuse and lp are modules. That's apparently the complete list in your file. I think other modules can get loaded when the relevant hardware is detected during the boot process, but it's been awhile since I dealt with this and how it's done depends on the distro.

Anyhow, modprobe looks for modules in /lib/modules/(your kernel version) ... you can get your kernel version with the uname -r command. The module files themselves generally have a .ko extension for version 2.6 kernels.
 
Old 12-20-2008, 06:38 PM   #24
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Anyhow, modprobe looks for modules in /lib/modules/(your kernel version) ...you can get your kernel version with the uname -r command.
WOAH!

This thread is going nowhere fast.

The context: Please read shariefbe's previous post here: http://www.linuxquestions.org/questi...dprobe-690332/

shariefbe has recompiled the kernel (we haven't been told how or why)

Now things aren't working as expected (Surprise!?)

So please do not assume (s)he is running a standard kernel.

Mods, can you please merge these two threads?
 
Old 12-20-2008, 10:31 PM   #25
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
yes tredegar....please see post number 11 in this thread.....i already said the things which i done previously...so i want the solution for this thread question...
 
Old 12-20-2008, 10:43 PM   #26
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
i will tell the things...please tell me whether it is correct or not..actually the kernel looks up from "/etc/modprobe.d/aliases" for the modules...from that if that modules needs any dep module then it will search in "/lib/modules/uname -r"...This "/etc/modpobe.d/aliases" modules installed after the dep module is installed from the kernel path....

i dont know whether am i right or not...if am wrong please forgive me and correct it...Thanks
 
  


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
"Minicom -s" works, but it always show "Offline", then cannot communicate with others reflecter_chen Linux - Hardware 8 05-14-2016 03:05 PM
evdev/xorg help? USB mouse/kbd: 2.6.24="just works">2.6.25="unplug/replug to work". GrapefruiTgirl Linux - Hardware 4 12-13-2012 03:23 PM
How to correct "yum" and "modprobe" when using ndiswrapper? BootLaptop Linux - Wireless Networking 2 07-15-2007 08:14 PM
commands "init" and "modprobe" not working Diagmato Fedora 2 07-23-2005 12:44 AM
"depmod" and "modprobe" commands don't work The1PatO Fedora 7 06-10-2004 01:10 PM


All times are GMT -5. The time now is 06:19 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