I tried all possibilities of blocking USB storage and it also worked for pen drives, external HDD but not the storage of mobile. Can I block all of the mobile storage access?

OS is Linux mint.


At last I found the solution for it for disabling access of any MTP connection and any i phone storage access. u just need to disable the or remove the permission by root access. in a clear word u have to remove the program which helps to mounts the access of phones. you have to just do is open file system in linux mint and then open usr folder as root and then open lib folder in it and then find gvfs folder and search for and just click right click on gvfsd-mtp and select permission and remove the tick mark to allow the program to run. And then for i phone you can remove the same permission by selecting gvfsd-afc and then try connecting any android devices or iphone and you are done the phones would just charge instead of mounting the storage.

  • it surely works try it – hemanth Aug 7 '17 at 8:40

You can remove the access by using this command as superuser in terminal.

apt-get remove usbmuxd

but this should be done at your own risk because it removes other supporting files including GUI supporting files.


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