Long Live Open Source Software !!

Actually, it’s simple thing to do. But i’ve mistaken the way to do it. I think that if i want to disable a kernel module, i just have to write ‘blacklist <module_name>’ in /etc/modprobe.d/blacklist.conf. But there is another step that have to be done to disable a modules from autoloading at boot time.

First thing to do is create a new file named <module_name>.conf in /etc/modprobe.d/ directory. There is no /etc/modprobe.conf file in Linux Mint (i use Katya), so you don’t need to remove it. If it’s exist, you must remove it. After that, write this line without colon:

blacklist <module_name>

For example :

blacklist r8169

If the module is used by another modules, you must disable that other modules first. You can check modules dependencies from lsmod command. After that, run this command as root to make sure all modules dependencies is met:

depmod -ae

And last thing to do is update your initramfs file with this command (don’t forget to run it as root) :

update-initramfs -u

Be Sociable, Share!

Maybe you like this post too :