I'm not allowed to comment, so I can't ask why my MotoG phone won't connect with my Ubuntu 12.04 64bit desktop. I've installed Phillip Langdale's ppa & packages for gvfs MTP backend. It didn't pickup my phone when connected by USB. So I followed the advice (given by @Glutanimate) in: Getting MTP enabled devices to work with Ubuntu? i.e. I downloaded & installed the referred-to mtp packages. Still no success. Ideas please.
The way you can automount your gadget is installing
gvfs
, using Synaptic package manager, or any other. Most of the made-in-china stuff use the MTP protocol, so you can mount it by installing the add-in supporting that. Try this:A few days ago I've got a similar situation in Elive Linux and a Garmin Vivoactive 3. This is my solution (not working for newer Sony Xperia phones so far, but I think you could get lucky with a MotoG):
Android moved from USB Mass storage to MTP (Media Transfer Protocol). MTP is a successor of PTP, what is used mostly for picture transfer from digital cameras to pc/laptop. With USB Mass Storage you’ll need to mount the filesystem in your operating system. Since the most filesystems are not very great at concurrent read/write operations, you’d need to umount the filesystem from your digicam, mobile phone or other embedded device. With MTP as protocol (interface) you can access files on the device without the umount/mount orgies.
To use MTP on elive, I’ll suggest to install the packages jmtpfs and mtp-tools.
Connect your mobile phone via USB and run mtp-detect. In case of a Sony Xperia X, the phone needs to be unlocked (home screen). Else the output is something like:
If the screen got locked after one connect, it’s no problem. The unlocked screen shows something like:
Now you’ll need a writable directory. /mnt/tmp doesn’t work, so I’m using a directory in home.
[.. now do what you want, using a shell or a filemanager ..]
(alternative 'sudo umount /home/[user]/android', see 'mount')
It is also helpful to use the ‘Garmin Vivoactive 3 Music’, that is using MTP to transfer Music via MTP