Module loaded even though it's blacklisted

Posted by isakkarlsson on Ask Ubuntu See other posts from Ask Ubuntu or by isakkarlsson
Published on 2012-01-04T19:51:43Z Indexed on 2012/04/05 17:46 UTC
Read the original article Hit count: 312

Filed under:
|

System: Ubuntu 11.10

Linux gray 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux

I'm trying to blacklist a module (rt2800usb among other) like;

$ lsmod | grep rt
rt2800usb              22300  0 
rt2800lib              48717  1 rt2800usb
crc_ccitt              12595  1 rt2800lib
rt2x00usb              20092  1 rt2800usb
rt2x00lib              48114  3 rt2800usb,rt2800lib,rt2x00usb
mac80211              272785  3 rt2800lib,rt2x00usb,rt2x00lib
cfg80211              172392  2 rt2x00lib,mac80211
$ emacs /etc/modprobe.d/blacklist.conf

and add:

blacklist rt2800usb
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00lib

and then:

$ sudo update-initramfs -u
$ sudo reboot

But the module are loaded after reboot:

$ lsmod | grep rt
rt2800usb              22300  0 
rt2800lib              48717  1 rt2800usb
crc_ccitt              12595  1 rt2800lib
rt2x00usb              20092  1 rt2800usb
rt2x00lib              48114  3 rt2800usb,rt2800lib,rt2x00usb
mac80211              272785  3 rt2800lib,rt2x00usb,rt2x00lib
cfg80211              172392  2 rt2x00lib,mac80211

How do I make the changes persist (i.e. have the modules blacklisted) after reboot?

© Ask Ubuntu or respective owner

Related posts about blacklist

Related posts about modprobe