Around a year ago, I wrote this handy-dandy article on OMG! Ubuntu!. While that method worked perfectly for the first few months, changes in libmtp, mtpfs and Ubuntu’s fuse libraries have made that method unreliable and buggy.
And very slow too, that is, if you managed to get the thing working.
So here’s another way to connect an Android device to Ubuntu, which, to much surprise, actually works (woohoo!). Instead of mtpfs, you’ll be using the amazing go-mtpfs library. Just run these commands to install go-mtpfs:
sudo apt-get install golang fuse git-core libmtp-dev libfuse-dev sudo adduser $USER fuse mkdir /tmp/go GOPATH=/tmp/go go get github.com/hanwen/go-mtpfs sudo mv /tmp/go/bin/go-mtpfs /usr/bin/ mkdir ~/MyAndroid
Now, go-mtpfs is installed. To mount your Android device, run these commands:
go-mtpfs ~/MyAndroid &
Voila! Your device’s contents can now be found at the MyAndroid folder in your home directory. If you belong to the “everything must be unmounted safely” tribe (like I do), then here’s your
birthday present unmounting command:
fusermount -u ~/MyAndroid
That’s it! Not very simple, but it’s not like you’ll be able to find a more reliable method, can you?