In some situation you may want to avoid loading a Linux driver module automatically . For example:

- In some cases buggy driver causes kernel BUG or system fault on load so you just want to avoid the problem.

- If your system connected without a diskette / floppy drive; kernel will try to load floppy driver – disable floppy driver or module.

The Linux kernel get module information on boot from /etc/modprobe.conf file and /etc/modprobe.d/* file(s).

If you are using RHEL or CentOS do the following :

open your /etc/modprobe.conf file and turn of auto loading using following syntax:

alias driver-name off

If you are using Debian or Ubuntu do the following :

open /etc/modprobe.d/blacklist file and add driver name using following syntax:

blacklist driver-name

Reboot your system and use lsmod command to show the status of modules in the Linux Kernel.

Hope this help

Bye
Riccardo

Print This Post Print This Post

One Response to “How-To prevent a Linux kernel module from load at startup”

Leave a Reply

Spam Protection by WP-SpamFree

Contacts
Look at me at Linkedin Follow me on Twitter
My Flickr Albums My Facebook profile My YouTube Videos
SkypeMe My Linux Counter GMail me
Search
Google Search
Categories
Tag Cloud 3D
FeedBurner RSS

Visitors
Locations of visitors to this page
VMware related Blogs
The following are Blog sites with feeds I personally follow. When I'll have some spare time I will complete all Feed and Twitter links.