In some situation you may want to avoid loading a Linux driver module automatically . For example:
[a] You would like to use proprietary device driver (I'm against any sort of proprietary drivers) and not inbuilt (reverse engineer) kernel driver.
[b] If your server system connected without a diskette / floppy drive; kernel will try to load floppy driver - disable floppy driver or module.
[c] In some cases buggy driver causes kernel BUG on load so you just want to avoid the problem.
The Linux kernel get module information from /etc/modprobe.conf file and /etc/modprobe.d/* file(s).
If you are using CentOS/Redhat/RHEL/Fedora Linux...
Just open your /etc/modprobe.conf file and turn of auto loading using following syntax:
alias driver-name off
If you are using Debian / Ubuntu Linux...
open /etc/modprobe.d/blacklist file and add drivername using following syntax:
blacklist driver-name
Reboot your box and use lsmod command to show the status of modules in the Linux Kernel.
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 12 comments… read them below or add one }
Blacklisting in /etc/modprobe.d/blacklist works in F7 too, not only in Debian!
On a similar path, how would you go about disabling USB without having to add nousb on the kernel settings line in GRUB ?
You need to add following drivers
usbcore
ehci_hcd
uhci_hcd
lsmod and modinfo command always gives information about loaded drivers.
the method is if nothing works in debian based distros to blacklist a certain module,try making a file /etc/modprobe.d/00local with content as
install modulename /bin/true
The debian way? An update has been written and is available here : http://wiki.debian.org/KernelModuleBlacklisting
I am unable to stop kvm, kvm_intel from getting loaded even after adding those to blacklist (Ubuntu 9.10).
Thanks a lot.
on fedora 15 you do:
sudo gedit /etc/modprobe.d/blacklist.conf
blacklist driver-name
On Suse is like fedora 15:
sudo gedit /etc/modprobe.d/blacklist.conf
blacklist driver-name
alias driver-name off does nto work on CentOS 5.5
OpenSuse 11.4 can only mount one type of filesystem ‘ISO9660′ . What is my problem?
Thank you
Nathan
How I can do to join the blacklist all except driver being used. thanks. cristian