LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   how do I disable kernel modules from being loaded (http://www.linuxquestions.org/questions/linux-general-1/how-do-i-disable-kernel-modules-from-being-loaded-157200/)

hdagelic 03-13-2004 02:31 PM

how do I disable kernel modules from being loaded
 
Hello !

I was having problems setting up ati radeon drivers on by linux box because i couldn't get fglrx kernel module loaded. Insmod kept saying "operation not permitted". I checked boot messages and found a line that said :

*ERROR* Fire GL kernel module has to be loaded prior to any other DRM kernel module

Did a cat /proc/modules, saw that there is an "radeon" module and then I removed it with rmmod and I was then able to load fglrx.

I would like ko know is there a way to disable that module from being loaded at boot time without recompiling the kernel or deleting th .ko file in /lib/modules/2.6.3..../..... Which script(s) are used to load kernel modules ?

Thank you.

theabyyss 04-09-2004 03:53 AM

look around in /etc, for a file like /etc/modules.conf. i'm not sure what distro you're using, but you probably have a modules.conf file somewhere that lists the modules to be loaded at startup. or there might be something in /etc/rc.d/, i'm too lazy to check (i'm not right near a linux box at the moment).

if playing with that doesn't work, or if you can't find it, you can always move the .ko file, and put it back when you need it.


All times are GMT -5. The time now is 11:52 PM.