LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 10-24-2007, 04:26 AM   #1
mathimca05
Member
 
Registered: Oct 2007
Posts: 66

Rep: Reputation: 15
rmoving unwanted driver running in linux kernel


hai all
i want to know whether some unwanted proess/drivers running in linux kernel.how to find that?.

thanks in advance.
 
Old 10-24-2007, 05:26 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
To see what modules are loaded:
Code:
lsmod
Then you can (try to) remove one of those modules from the kernel with
Code:
rmmod modulename
where modulename is the name of the module you want to remove, that you saw in the 'lsmod' list. The 'lsmod' list does not, of course, include those 'drivers' that are built into the kernel (those that are not built as separate modules). If you want to remove a 'driver' that is built right into the kernel, you will need to recompile the whole kernel, leaving those things off that you don't like to have there.

To prevent a module from being loaded during boot process you can use, for example, module blacklisting; this means adding a line like "blacklist modulename" (where 'modulename' is the module you want to blacklist) into your module loading configuration file.
 
Old 07-21-2010, 10:55 AM   #3
tboland
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
rmmod will remove the reference to the module, as stated, but it will only do so temporarily.

You can add the module back in through

modprobe -a {modulename}

This is a double-edged sword. It lets you back in, but it does not permamently solve the problem.

To truly stop a module from ever darkening your door ever again, you need to recompile the kernel or delete the module file itself (usually a .ko file) from the system by hand.

Tom
 
Old 07-21-2010, 01:10 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Note that the command modprobe -r <module_name> can be a more effective "module removal" tool. See man rmmod and man modprobe for details.

Last edited by PTrenholme; 07-21-2010 at 01:11 PM.
 
  


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
to remove unwanted things from linux kernel mathimca05 Linux - Newbie 1 10-15-2007 05:18 AM
Why driver needs to be compiled against the running kernel? make Linux - General 2 04-13-2005 04:59 PM
compiling sata driver for new non-running kernel krazyjase Linux - General 0 01-19-2005 06:19 PM
Removing Unwanted Sound Driver toadatrix Suse/Novell 0 10-15-2004 07:51 AM
rmoving GRUB and/or MBR krome Linux - Software 6 11-03-2003 01:34 PM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration