1

When I am connecting my external HDD to my Ubuntu box, it mounts several partitions under

/media/<username>/<uuid>

When I am connecting my mobile phone, it mounts under

/var/run/user/<userid>/<unknowncode>

Can we have any systematic behavior here? Can we program, where to mount some specific media or devices?

  • It depends on which software does the automounts for you. – Ipor Sircer Aug 18 '18 at 11:41
  • 1
    So, this is obviously, the question. – Dims Aug 18 '18 at 12:31
  • 2
    /media/<username>/<uuid> is probably handled by udisks, which allows non-root users to handle removable media. In GNOME desktop environment, gnome-disks is probably the primary configuration tool for udisks. If that's not enough, read man udisks for more pointers. On the other hand, your mobile phone connection is probably handled by MTP, which is not an actual filesystem. The problem is, there are multiple tools for handling MTP and I don't know which of them you're using. jmtpfs? gvfs-mtp? Something else? – telcoM Aug 18 '18 at 18:15
  • Related - possible dup - unix.stackexchange.com/questions/169571/… – slm Aug 19 '18 at 3:41
  • Related - unix.stackexchange.com/questions/64152/… – slm Aug 19 '18 at 3:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.