Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
/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 :-).
/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?
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.
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...
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.