Blocking Mass Storage in Linux

To Disable MASS Storage in Linux based distro's

1. Unmount the USB device if it is already plugged in

[root@centos ~]#umount /dev/sdb

#Device name may differ in your case

2. Remove the module
[root@centos ~]#modprobe -r usb_storage

3. Edit /etc/modprobe.d/blacklist.conf and append
blacklist usb_storage
Save the file.
Now when USB PIN Drive is plugged in, the hotplug scripts will no load it automatically.

Comments

Popular posts from this blog

Using a Self signed Certificate to Run Apache2 under SSL

IPS (Image Packaging system) in Solaris 10