How Do I Disable a Linux Module?
Contents You Can Remove a Module from the Running Kernel with the Sudo Modprobe -R Command. You Will Get a Warning If It’s Being Used and the Module Will Not...
You can remove a module from the running kernel with the sudo modprobe -r
How do you stop a module from loading?
[ step1 ] First we unload the module from the running system if it is loaded. [ step2 ] To prevent a module from being loaded directly you add the blacklist line to a configuration file specific to the system configuration — for example /etc/modprobe.
How do I block a kernel module?
To blacklist a kernel module permanently via GRUB, open the /etc/default/grub file for editing, and add the modprobe. blacklist=MODULE_NAME option to the GRUB_CMD_LINUX command. Then run the sudo grub2-mkconfig -o /boot/grub2/grub. cfg command to enable the changes.