Debian Kernel Modules – Excluding Kernel Modules Through /etc/modprobe.d/blacklist.conf

bootdebianinitramfskernelkernel-modules

I don't want to load the kernel module nouveau on my debian box at startup, so I put the following in /etc/modprobe.d/blacklist.conf:

blacklist ttm
blacklist drm
blacklist nouveau

I even did a update-initramfs -u but nonetheless those three modules get loaded each time I boot.

Does anyone know why and how to fix this.

Best Answer

You can find the answer in the wiki: the idea is that one does not use /etc/modprobe.d/blacklist.conf. Instead, say you want to blacklist pcspkr. You create a pcspkr.conf file in /etc/modprobe.d and put blacklist pcspkr inside. Then run

depmod -ae && update-initramfs -u
Related Question