Disable USB Storage (Pen Drive) permanently in Ubuntu previous versions by editing blacklist.conf and adding blacklist usb_storage. But in the case of New Version Ubuntu 12.X and Mint 13.X only editing blacklist.con not preventing USB Storage. If you need to block USB Storage permanently follow these steps.
In terminal:
1) sudo mv /lib/modules/3.2.0-29-generic/kernel/drivers/usb/storage/usb-storage.ko /root
This will move usb-storage.ko to root folder
2) sudo gedit /etc/modeprobe.d/blacklist.conf
add balcklist usb_storage at bottom of the page, save and exit
3) sudo gedit /etc/rc.local
add modprobe -r usb_storage before exit0, save and exit
reboot your computer and check usb storage is mounting or not
In terminal:
1) sudo mv /lib/modules/3.2.0-29-generic/kernel/drivers/usb/storage/usb-storage.ko /root
This will move usb-storage.ko to root folder
2) sudo gedit /etc/modeprobe.d/blacklist.conf
add balcklist usb_storage at bottom of the page, save and exit
3) sudo gedit /etc/rc.local
add modprobe -r usb_storage before exit0, save and exit
reboot your computer and check usb storage is mounting or not
No comments:
Post a Comment