how to add new loadable module to kernel?
I want to add nvidia module to load at startup. I've loaded it with modprobe command and it worked, but after rebooting it wasn't there, so i have to do it again and again after each startup. I wander where Linux stores all the information about modules to load. I've checked /etc/modprobe.conf, but there was only sound modules.. :(
Red Hat have nice utility called ntsysv, but my current distro is Mandrake 10.1 (official). Can anyone help me? Thanks. |
you just need to add an entry to modules.conf, try "alias char-major-195 nvidia"
|
It doesn't work. :( Maybe you know in which file Linux stores all the information about loaded modules.
|
we are currently in a situation where different distros are dealing with this issue in different ways
i think in mandrake 10.1 Edit the file /etc/modprobe.preload and add the word nvidia to it. |
I had this problem back in 9.0. Since that time I have done an upgrade to 9.2 and later an upgrade to 10.0 Community. I have not subsequently done a clean install.
So, I don't know if 10.1 handles things the way 9.0 did. To solve my problem in 9.0, I added the line "video_adapter" (without the quotes) to the file /etc/modules, and I added the line "probeall video_adapter nvidia" to the /etc/modules.conf file. That fixed it, for me, back then. As I look now on my 10.0 system, my /etc/modules file still has the video_adapter line and my /etc/modules.conf still has the probeall video_adapter nvidia line. So give it a try. |
it worked!
Finally it worked, ndidia module is loaded at the startup. And according to the comment in /etc/modprobe.preload: "this file is for module-init-tools (kernel 2.5 and above) ONLY for old kernel use /etc/modules". Next time i'll study all comments in configuration files more carefully. :) But i'm still curious where the other modules are stored, cause my etc/modprobe.preload have got only 2 modules (including nvidia).
Thanks for help guys! |
Interesting.
My modprobe.preload file does not contain the nvidia information, but my modprobe.conf file does. |
I think if you rewrite the nvidia information from /etc/modprobe.conf to /etc/modprobe.preload nothing will change.
|
All times are GMT -5. The time now is 11:39 AM. |