LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2003, 11:10 AM   #1
hyperriven
Member
 
Registered: Oct 2003
Distribution: Mandrake 9.1
Posts: 61

Rep: Reputation: 15
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
 
Old 11-05-2003, 11:14 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
rmmod

man rmmod for more options/details.
 
Old 11-05-2003, 11:15 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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.

 
Old 11-05-2003, 11:24 AM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
May want to try trickykids way first. He more guru than me.

Later

 
Old 11-05-2003, 11:55 AM   #5
hyperriven
Member
 
Registered: Oct 2003
Distribution: Mandrake 9.1
Posts: 61

Original Poster
Rep: Reputation: 15
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
 
Old 11-05-2003, 11:59 AM   #6
hyperriven
Member
 
Registered: Oct 2003
Distribution: Mandrake 9.1
Posts: 61

Original Poster
Rep: Reputation: 15
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]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing agpgart module 46&2 Linux - Newbie 5 04-15-2005 07:49 PM
Removing or disabling user access to proxy setup Wholeeo Linux - Networking 0 09-28-2004 01:04 PM
Removing a module jrdioko Linux - Newbie 4 09-03-2004 02:10 AM
help removing module DWebb82 Linux - Software 5 05-24-2004 11:06 PM
Disabling Firewire Module in RH9 LoungeLizard Linux - Hardware 5 04-21-2003 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration