Media Transfer Protocol (MTP)
smartphone mount in linux via usb
Media Transfer Protocol (MTP)
transfer files to and from devices via USB
gvfs is een pseudo file system
linux
mountpoints are in : /run/user/$USER/gvfs/ or /var/run/user/$UID/gvfs
UID = 1000 voor eerste logged on user 1001 voor de tweede etc
are also named after the protocol, connection type and address they use.
makes things difficult, because the connection address may change every time you replug the device, even if it is the same port.
If you have the same device twice it gets even worse.
an use lsusb to display all connected USB devices from terminal:
$ lsusb | grep Motorola
on LXM :
mtp://motorola_Moto_G__4__ZY223G2DS7/Internal%20shared%20storage/Music
=> /var/run/user/1000/gvfs (ouder) dan wel /run/user/1000/gvfs (nieuwer)
/var/run/user/1000/gvfs/mtp:host=motorola_Moto_G__4__ZY223G2DS7
in FreeFileSync :
paste “/var/run/user/1000/gvfs/mtp:host=motorola_Moto_G__4__ZY223G2DS7” (or whatever ID) in the path bar then browse
FreeFileSync is niet geschikt om individuele files te syncen
[UPDATE 2022]
er is in LXM geen /var/run meer
==/run/user/1000/gvfs/mtp:host=motorola_moto_g_7__plus_ZY225FG4VH/Internal shared storage/Podcasts/==