LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 12: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, 04: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, 07:19 AM   #18
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
I believe you need more than usbcode to make your usb device work. What you need depends on then device...
 
Old 12-19-2008, 10: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, 01: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, 09: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 09:25 PM.
 
Old 12-20-2008, 10: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, 03:32 PM   #23
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 05:38 PM   #24
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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, 09: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, 09: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



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 02: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 02:23 PM
How to correct "yum" and "modprobe" when using ndiswrapper? BootLaptop Linux - Wireless Networking 2 07-15-2007 07:14 PM
commands "init" and "modprobe" not working Diagmato Fedora 2 07-22-2005 11:44 PM
"depmod" and "modprobe" commands don't work The1PatO Fedora 7 06-10-2004 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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