Posts

Showing posts with the label Blacklist module

Blacklisting modules in RHEL or CentOS 7

Blacklisting modules in RHEL or CentOS 7 You may come to a requirement where you want to "blacklist" a module. Why would you need this feature? Because sometimes a module may cause conflict with another modules, or is superseded by another module, or is otherwise undesirable. To blacklist a module, the easiest way is to add an module entry to /etc/modprobe.d/blacklist.conf Let's see how it can be done ! We can take "vfat" module for example, check if it is loaded: [root@localhost ~]# lsmod | grep -i vfat [root@localhost ~]# If you see in below command it's allowed to load, not blacklisted: [root@localhost ~]# modprobe --showconfig | grep vfat alias fs_vfat vfat [root@localhost ~]# Now we will try to load it: [root@localhost ~]# modprobe vfat [root@localhost ~]# lsmod | grep -i vfat vfat                   17461  0 fat                    65950  1 vfat As you can see we can load this module, i will now go a