When I plug in a USB-flash-stick, lsmod shows as extra modules:
> nls_iso8859_1 12713 1
> usb_storage 57199 1
So, how about disabling (the loading of) usb_storage? Maybe block it in /etc/modprobe.d/blacklist, or just remove usb-storage.ko from your system,
/lib/modules/3.8.0-13-generic/kernel/drivers/usb/storage/usb-storage.ko
Or compile a kernel without usb_storage?
EDIT: tested it:
Unplug usb storage sticks.
Then
Code:
sudo rmmod usb_storage
sudo nano /etc/modprobe.d/blacklist.conf
at the end, add:
Code:
blacklist usb_storage
Save and exit.
Now plug in a usb stick ... and see that it does NOT work ...
Bookmarks