7

I'm trying to figure out how to blacklist modules, and I'm trying it on the USB storage. Unfortunately it seems to have no effect, and I get the module in even if it's not used (apparently).

My experiment is taking place on an Ubuntu 12.04.3 LTS.

raptor@raptor-VirtualBox:/etc/modprobe.d$ lsmod | grep usb
usb_storage            39720  0 
usbhid                 46054  0 
hid                    82511  2 hid_generic,usbhid
raptor@raptor-VirtualBox:/etc/modprobe.d$ cat blacklist.conf | grep usb
blacklist usb_storage
blacklist usbmouse
blacklist usbkbd

migrated from serverfault.com Aug 26 '13 at 23:48

This question came from our site for system and network administrators.

9

Your problem probably results from the fact that a copy of /etc/modprobe.d/blacklist.conf is located in the initramfs. When you reboot your computer, it is still using the old copy that doesn't contain your change. Try to rebuild the initramfs with the following command and then reboot:

sudo update-initramfs -u

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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