Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 10-24-2007, 05:26 AM   #1
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 to find that?.

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

Rep: Reputation: Disabled
To see what modules are loaded:
Then you can (try to) remove one of those modules from the kernel with
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, 11:55 AM   #3
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.

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

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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 02:11 PM.


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 06:18 AM
Why driver needs to be compiled against the running kernel? make Linux - General 2 04-13-2005 05:59 PM
compiling sata driver for new non-running kernel krazyjase Linux - General 0 01-19-2005 07:19 PM
Removing Unwanted Sound Driver toadatrix SUSE / openSUSE 0 10-15-2004 08:51 AM
rmoving GRUB and/or MBR krome Linux - Software 6 11-03-2003 02:34 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:07 PM.

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