Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
What hardware are you trying to get working ? I suspect your modules are getting loaded as they are used by other modules (cfg80211) , so you will need to specify the proper, alternate modules to use. –  bodhi.zazen Jan 4 '12 at 20:43
    
I figured it might be another module that force the loading. I'm trying to maximize my usb-network device, I get low ping (200ms on local network) and slow speed (200kb/s on local network). To lower the ping I have figured that iwconfig wlan0 power off works well, I still have slow speed though. –  isakkarlsson Jan 4 '12 at 21:20
add comment

1 Answer

As you can see from lsmod output:

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

rt2800usb and rt2800lib are used by module rt2x00lib which itself is used by cfg80211

Thus these two modules you blacklisted are neccaissary to load module cfg80211 which is NOT blacklisted. That is why they are loaded despite are blacklisted.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.