Hot answers tagged

59

Asker's edit: This seems to require a newer version of libmtp and/or gvfs than is available per default in 13.04. Run sudo add-apt-repository ppa:langdalepl/gvfs-mtp and update before doing anything else. Edit: PPA not needed anymore in saucy/13.10 and newer, filenames are listed in terminal as they are in Nautilus. Edit 2016-01-11: I removed the script ...


40

I had the same problem this fixed it: sudo apt-get install mtpfs Once that's installed, plug in the phone to your computer. If nothing happens, on the phone go to Settings > Storage > Upper Right Corner (⋮) > USB Computer Connection > Media Device. edit: Settings > Search (type in "usb") > USB configuration ... If non existent make sure developer ...


38

You have to follow a below procedure to share contents between Ubuntu to Nexus 7. Install the necessary tools using terminal. sudo apt-get install mtp-tools mtpfs Connect your Galaxy Nexus to your computer. On your phone, open up the notification drawer, and click on “USB Connection type”. Make sure that MTP is selected. Type these commands in terminal:...


37

Since Ubuntu 13.04, storage access to external devices via MTP works out of the box via a GVFS-MTP module. Related question: Are there any plans to improve mtp support on future Ubuntu releases? For troubleshooting, see this answer. For me, it was a problem of not having the latest libmtp files on my system. So I fixed the problem and made this write-up ...


27

The MTP specification doesn't support the basic open/read/write/close operations that are required to implement normal file access on Linux - it only provides upload/download for files, and that's what the MTP backend implements. Nautilus will copy files just fine, but as soon as you try to use an application that doesn't explicitly account for the ...


27

My Nexus device's memory can be accessed at: /run/user/$UID/gvfs/mtp* So if your $UID is 1000, you may find it by either doing $ cd /run/user/$UID/gvfs/mtp* or (for the exact location in an example assuming your UID is 1000), $ cd /run/user/1000/gvfs/mtp\:host=%5Busb%3A001%2C006%5D/


24

I had the same issue, and the following worked sudo apt-get install mtp-tools mtpfs


22

I gave up trying to get MTP support on Linux for the moment. Here is the solution I use now: On your Android device, install FTP Server (it's free and open source) On your Ubuntu computer, install Filezilla Make sure both your computer and your Android device are connected to the same WiFi network On Android, launch FTP Server, and check "Running". It ...


19

This android version uses MTP (Multimedia Transfer Protocol) and PTP (Picture Transfer Protocol). Ubuntu doesn't come with MTP support installed. Install gMTP and you can transfer the files.


18

Have you tried Bilal Akhtar's suggestion at omgubuntu? Connecting your Android phone or tablet to Ubuntu with MTPFS Setup First up, install the necessary tools with sudo apt-get install mtp-tools mtpfs Connect your Galaxy Nexus to your computer. On your phone, open up the notification drawer, and click on "USB Connection type". Make sure that MTP is ...


18

Actually, it's working! When you connect the N5X (screen unlocked) to your Linux box the N5X will default to USB charging (a security feature I think). The N5X will appear in your Linux file manager but won't show internal storage. If you pull down the notification shade on the N5X you should see it showing USB charging. If you select that you should be ...


17

Connecting devices via MTP with GVFS Since Ubuntu 13.04 storage access to MTP capable devices works out of the box through a GVFS backend. Please have a look at Are there any plans to improve mtp support on future Ubuntu releases? for installation instructions prior to 13.04. This solution should work for all Android devices providing MTP functionality and ...


16

Yep, here's the fix you're looking for: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/903422 This is fixed in 13.04. As of Jan 28th Upgrade Gvfs in Ubuntu 12.10 and 12.04 to get Android 4.0 support for devices which don't support USB Mass Storage interface Add the PPA to your system sudo ppa-purge ppa:webupd8team/gvfs-libmtp sudo add-...


13

Adding the following entries to /lib/udev/rules.d/69-libmtp.rules did the trick ATTR{idVendor}=="05c6", ATTR{idProduct}=="6764", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1", TAG+="uaccess" ATTR{idVendor}=="05c6", ATTR{idProduct}=="6765", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}=...


12

I have found that the easiest way to transfer files is using the app called AirDroid. You'll need your laptop & the android device to be connected to the same network though. Steps Install airdroid on Android device launch the app , if the Android device and laptop on same network it will automatiocally detect the computer IP and ask to Enter the ...


12

I too had the problem that my "asus padfone infinity" was not mounted through mtp. (adb worked though). Solution was to connect it through one of the USB3 Ports of my thinkpad instead of a usb2 port. Looks like the USB2 port is not recognized as usb2, or are devicenames for usb2 "usb1"? syslog when connecting to USB2 Port: Feb 21 13:59:55 t530 kernel: [...


12

I found this surprisingly tough. I have a Nexus 5 and KDE (using libmtp, I think) displays it as a Nexus 5. My first instinct was that KDE was simply looking at the hardware database. This maps vendor and product strings from USB devices to known names. Here's the problem: $ lsusb Bus 002 Device 011: ID 18d1:4ee1 Google Inc. Nexus 4 My Nexus 5 just got a ...


11

You can get file access to your phone's internal storage (/mnt/sdcard) or your external SD card (/mnt/extSdCard/) using gMTP as another replier @Easty noted (http://www.humans-enabled.com/2011/12/how-to-fix-samsung-galaxy-nexus-mtp.html). You'll need to install libmtp (instruction are on that page and easily found elsewhere) and gMTP. Once everything's ...


11

You can simply switch the Nexus 7 into Camera (PTP) mode under Storage / USB Connection.


10

MTP mounted device usually can be found in : /run/user/1000/gvfs/ for eg if your Nautilus address bar shows mtp://[usb:001,006]/, then you can access by: /run/user/1000/gvfs/mtp\:host=%5Busb%3A001%2C006%5D/ now on terminal you can copy files or folders: cd into folder -> cd /run/user/1000/gvfs/mtp\:host=%5Busb%3A001%2C006%5D/ then copy required ...


9

For my personal use, I've used instructions similar to those that @K.K Patel provided in their answer. However, some users either do not want to, or are uncomfortable with using the command line. For them, I recommend using AirDroid. This solution does not require any configuration on the Ubuntu systems. All that is needed is an application installed on ...


9

Type mount. That will list every active filesystem.


8

First you need to get the file, extract the tarball and change to the folder. You can do this from a terminal: wget http://downloads.sourceforge.net/project/libmtp/libmtp/1.1.3/libmtp-1.1.3.tar.gz tar zxf libmtp-1.1.3.tar.gz cd libmtp-1.1.3 Second, build the source and install the binaries: ./configure make sudo make install I'd be more inclined to use ...


8

Pre-requisites First, install the necessary packages: sudo apt-get install mtp-tools mtpfs A bit of elbow grease Connect your Android phone to your computer. On your phone, open up the notification drawer, and click on USB Connection type. Make sure that MTP is selected. Now, run these commands on Ubuntu: mtp-detect | grep idVendor mtp-detect | grep ...


8

Install go-mtpfs from WebUpd8 repository following this guide: http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html Then add go-mtpfs-unity.desktop the dash, connect your phone via usb and you have a quicklist to mount and dismount your android device. Sorry for my bad English, I speak Spanish.


7

I had the same problem but I solved it a few seconds ago after reading a post on another forum. It seems like the MTP option somehow got unchecked (not by me!), maybe when installing the latest Android update… Settings → Storage → ⋮ → USB-connection to computer → MTP media device ☑ Note that I run Android in Swedish, so the line above is only a ...


7

You can parse the output of mtp-detect. First install mtp-tools: sudo apt-get install mtp-tools And run: $ mtp-detect 2>/dev/null | grep Model: Model: Nexus 7 (2013) Wi-Fi


5

All programs based on libmtp still seem to have issues with the Galaxy Nexus (as of libmtp 1.1.3). Programs based on gphoto2 work for me. Personally I'm using gphotofs, available in a package of the same name. Use gphotofs ~/mymountpoint to mount, then fusermount -u ~/mymountpoint to unmount when you're done.


5

You want to install gvfs-mtp because this is the absolute easiest and most comfortable way. sudo add-apt-repository ppa:langdalepl/gvfs-mtp sudo apt-get update && sudo apt-get dist-upgrade sudo reboot Have fun.


5

MTP mode wont work. It's an abstracted filesystem meaning Photorec (et al) don't have direct access. According to the Photorec website, you'll need to throw the phone into Mass Storage mode. Once you've done that, it should see the drive correctly. I'm not sure what sort of recovery you're doing here. If the screen is broken and you're stuck in MTP mode, ...



Only top voted, non community-wiki answers of a minimum length are eligible