Removing/Disabling a module
Is there anyway to remove or disable a module while linux is running? If you type lsmod it lists the modules linux is using, is there any command to disable one of those modules?
Thanks, Tom |
rmmod
man rmmod for more options/details. |
Look in the file /etc/modules.conf. Just put a # in front and the system will ignore that line.
Hope that helps. If not maybe some other guru will come along. :D :D :D |
May want to try trickykids way first. He more guru than me. ;)
Later :D :D :D :D |
Thanks for the ideas, something like rmmod was really what I was looking for, unfortunatly if won't let me remove the module I want to because it is in use. I looked in modules.conf, but I didn't see anything that looked useful. My problem is that my tv tuner and my sound card don't want to get along, in other words I can only run one at a time. And I wouldn't mind too much except for the fact that you can't hear the tv if the soundcard module isn't running! For some reason some tv tuner module is being placed where the soundcard module is supposed to go, so I can't load the soundcard module after the tv tuner module is loaded. I was hoping I could rmmod the tv tuner modules that were in the wrong place and get the soundcard modules to load. Does anybody have any ideas of what to do?
Thanks, Tom |
Here is the output of lsmod when the tv tuner modules are loaded:
Module Size Used by Not tainted lp 8096 0 parport_pc 25096 1 parport 34176 1 [lp parport_pc] nfsd 74256 0 (autoclean) af_packet 14952 1 (autoclean) sr_mod 16920 0 (autoclean) floppy 55132 0 e100 56964 1 (autoclean) nls_iso8859-1 3516 2 (autoclean) ntfs 76812 2 (autoclean) supermount 15296 3 (autoclean) ide-cd 33856 0 cdrom 31648 0 [sr_mod ide-cd] tuner 11744 1 (autoclean) tvaudio 15068 0 (autoclean) (unused) bttv 78496 0 (unused) videodev 7872 2 [bttv] i2c-algo-bit 9064 1 [bttv] i2c-core 21192 0 [tuner tvaudio bttv i2c-algo-bit] soundcore 6276 0 [bttv] ide-scsi 11280 0 scsi_mod 103284 2 [sr_mod ide-scsi] usbmouse 2936 0 (unused) keybdev 2720 0 (unused) mousedev 5268 1 hid 20900 0 (unused) joydev 7040 0 (unused) input 5664 0 [usbmouse keybdev mousedev hid joydev] ehci-hcd 18568 0 (unused) usb-uhci 24652 0 (unused) usbcore 72992 1 [usbmouse hid ehci-hcd usb-uhci] rtc 8060 0 (autoclean) ext3 59916 1 jbd 38972 1 [ext3] |
All times are GMT -5. The time now is 08:40 AM. |