How to prevent all usb mass storages from mounting?
I want to prevent every kind of usb mass storage from mounting using udev rules. Already i can detect all of usb mass storages connected to my system using following rule:
SUBSYSTEMS=="scsi", SUBSYSTEM=="block" KERNEL=="sd[b-h]1"
But i don't know how can i prevent them from mounting!
I know i have to set the authorized file of its relevant usb device to zero! but how can i find the usb device path? the $DEVPATH gives me the path of storage device block for example sdb1!
thanks in advance.
|