Are modules automatically loaded when it is needed by the system?
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.
If hotplug support is compiled into the kernel
it should (if the basic chipset-driver is actually
loaded, that is). If you want to customise some
more what happens on load (like get hte load-order
right if there is one) use murasaki (usbmgr's
younger brother).
The alternative way is to use usbmgr... it will
pre-load usbcore and other modules and then
e.g. load sg.o if you plug in a camera or stick.
Both tools should (I've never used murasaki)
allow to mount to a specific mountpoint, for
instance (for usbmgr I can confirm this :}) ...
In general, are modules loaded by the kernel automatically as and when they are needed during runtime/bootup or is it done manually?
Quote:
Originally posted by Tinkster If hotplug support is compiled into the kernel
it should (if the basic chipset-driver is actually
loaded, that is). If you want to customise some
more what happens on load (like get hte load-order
right if there is one) use murasaki (usbmgr's
younger brother).
The alternative way is to use usbmgr... it will
pre-load usbcore and other modules and then
e.g. load sg.o if you plug in a camera or stick.
Both tools should (I've never used murasaki)
allow to mount to a specific mountpoint, for
instance (for usbmgr I can confirm this :}) ...
Usually. If they don't play nice, you can force them if you need to most of the time by adding them to /etc/modules for 2.4.x kernels and /etc/modprobe.preload for 2.5.x and above. Be sure that USB hotplugging is selected and you'll have no problems with that (I don't leave my MS Sidewinder joystick plugged in, but its there when I plug it in)
During the kernel customisation (make xconfig), I have Kernel Module Loader installed, which should load modules automatically as and when they are needed. I have a NIC that requires pcnet32.o to work and this driver is compiled as a module to the kernel. However, on bootup, this required module is not automatically loaded.
Although it does work after I manually added the module to /etc/modules, I'm curious as to why it wasn't automatically loaded by the Kernel Module Loader during bootup.
The PCI hotplugging might not be picking it up. When I installed Mandrake 10beta2, I had that problem with my NIC. It loads now with CE, but I had to force it to work by puttting it in the /etc/modprobe.preload file.
Originally posted by vectordrake The PCI hotplugging might not be picking it up. When I installed Mandrake 10beta2, I had that problem with my NIC. It loads now with CE, but I had to force it to work by puttting it in the /etc/modprobe.preload file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.