I'm trying to connect my Galaxy Nexus to an Ubuntu 11.04 PC by following the instructions in this other post (Getting MTP enabled devices to work with Ubuntu?).
I've read it and redone each step about 10 times, but the best I can get from it when trying to access (on terminal) the directory /media/myGalaxyNexus
is the following error:
ls: cannot access /media/myGalaxyNexus: Transport endpoint is not connected
total 0
d????????? ? ? ? ? ? myGalaxyNexus
This is the result of the command cat ~/.bashrc
(only the part related to this post…):
alias android-connect="mtpfs -o allow_other /media/myGalaxyNexus"
alias android-disconnect="fusermount -u /media/myGalaxyNexus"
This is the result of the command cat /etc/udev/rules.d/51-android.rules
:
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685c", MODE="0666"
This is the result of the command mtp-detect
:
libmtp version: 1.1.1
Listing raw device(s)
Device 0 (VID=04e8 and PID=685c) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Found 1 device(s):
04e8:685c @ bus 2, dev 3
I've also found this useful link but neither that helped me. The best I was able to get by following it was to show a directory named Playlist
that was empty.
Best Answer
There is a better solution than the mtpfs solution available for 12.04 and later releases. I'm reposting the solution here on request so that this question can be marked as solved. The original can be found here: Getting MTP enabled devices to work with Ubuntu?
Connecting Android devices via MTP with GVFS
(Out of the box as of 13.04)
Since 13.04 storage access to Android devices via MTP works out of the box. This was possible due to updates for GVFS by Philip Langdale. For 12.04 and 12.10 there exists a PPA with backported versions of the necessary packages.
Note that your device must be unlocked to access the storage of the device with Ubuntu via MTP.
If you get an error message, try to replug the device once.
Citation from Jorge Castro's on adding the PPA for Are there any plans to improve mtp support on future Ubuntu releases?:
To clear things up:
fastboot oem unlock
) or root your phone. Unlocking just refers to the Android lockscreen in this answer.