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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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.