You can disable the automount of MTP devices. I guess you're using a Gnome/gtk DE. These normally use gvfs as a backend to talk to libmtp. Edit /usr/share/gvfs/mounts/mtp.mount and set AutoMount=false.
If automount is already false on your distro then you need to look up for options inside your filemanager.
|