Frequent Question: How Do I Blacklist a Module in Ubuntu?
Contents

How to blacklist a module. To blacklist a kernel module, edit the /etc/modprobe. d/blacklist. conf file and add a line that says “blacklist “.

What is blacklist conf?

[step2 above] 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. d/local-blacklist. conf . This alone will not prevent a module being loaded if it is a required or optional dependency of another module.

How do I blacklist a driver?

To blacklist the driver when the root device is mounted, add a blacklist entry in a file under /etc/modprobe. d/ . Boot the system into rescue mode with the command linux rescue rdblacklist=name_of_driver , where name_of_driver is the driver that you need to blacklist. Follow the instructions in Section 36.1.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest