How to blacklist a Kernel Module in CentOS

Source: Internet
Author: User

How to blacklist a Kernel Module in CentOS

How to blacklist a Kernel Module in CentOS are an important piece of knowledge for the sysadmin. In Centos Linux, the preventing a kernel module from loading during boot is also called blacklisting. We Add the module name into the blacklist file. We must remove the module from THE/ETC/MODPROBE.D,/etc/modprobe.conf,/etc/rc.modules and the/etc/sysconfig/modules/* F older. For each respective Red Hat versions, you must execute the following commands:

Blacklisting Centos 5 and 6 kernel module

ADD the kernel module to is blacklisted into the blacklist.conf file. DO:

echo "blacklist the_module name" >>/etc/modprobe.d/blacklist.conf

As an example:

echo "Blacklist qlgc-5.8 >>/etc/modprobe.d/blacklist.conf

If The module is blacklisting is a dependency of another module, the blacklsting would fail. It'll be loaded.

Blacklisting a Centos 4 kernel module

# echo "Alias <module-name> off" >>/etc/modprobe.conf

If you want to remove the module for testing purposes or temporarily, you can remove the already loaded module by

Running

# modprobe-r Module_name_goes_here


Ie.

# modprobe-r QLGC


This article from "Vincent" blog, declined reprint!

How to blacklist a Kernel Module in CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.