nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux disable kernel module / driver

This is a discussion on Linux disable kernel module / driver within the Linux hardware forums, part of the Linux Getting Started category; How do I disable a Linux kernel module? How do I remove device driver permanently or temporarily from command prompt?...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux hardware

Linux answers from nixCraft.


Linux hardware Discussion about Linux hardware related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-21-2007, 12:27 AM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
Angry Linux disable kernel module / driver

How do I disable a Linux kernel module? How do I remove device driver permanently or temporarily from command prompt?
__________________
Reply With Quote
  #2 (permalink)  
Old 08-21-2007, 12:34 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,697
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You can use rmmod command to remove module or device driver
Code:
lsmod
rmmod {module-name}
More about lsmod command -> How to display or show information about a Linux Kernel module or drivers

More about rmmod command -> Howto: Linux add remove a Linux kernel modules / drivers

Another option is to modify / edit file called /etc/modprobe.conf or /etc/modprobe.d/blacklist (Debian/Ubuntu) and append module name. This will avoid loading a Linux driver module automatically, see my tutorial -> Howto: Prevent a Linux kernel module from auto loading for more info.

HTH
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 08-21-2007, 12:38 AM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
Default

Hey vivek, thanks for a quick reply.

fanx
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Is Linux kernel is monolithic or modular kernel? chiku Linux software 3 08-27-2009 02:56 AM
Linux disable network interface jerry Linux software 3 01-31-2009 09:25 PM
Linux kernel deleted from /boot - how do I resinstall the kernel vaibhav.kanchan Getting started tutorials 2 03-25-2008 12:31 AM
Redhat linux 4 / 5 disable iptables firewall chiku Networking, Firewalls and Security 0 04-27-2007 05:19 PM
freebsd kernel module unload HellBoy All about FreeBSD/OpenBSD/NetBSD 2 01-05-2006 06:51 PM


All times are GMT +5.5. The time now is 02:03 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38