Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How does one connect an MTP device to Ubuntu via USB? Many popular devices, such as all Android 4.0 phone, have only MTP or PTP as a connection option, no USB mass storage anymore.

Considering the popular Samsung S3: connecting as either MTP or PTP: neither allows one to see pictures saved as default by phone camera to DCIM folder on external SD card. Similar problems with previous models (with Android 2.x) were solvable by 'usb utilities' in wireless & networking settings, but this is no longer present in Android 4.0.

share|improve this question

12 Answers 12

Try the "AirDroid" App from Play Store. It allows you to use a browser based interface (on your computer) to transfer files from a Windows/Linux pc. Since it's browser based UI, no need to install anything on the pc side.

share|improve this answer

Install gmtp, and use it to connect to the phone or tablet :

sudo apt-get install gmtp
share|improve this answer

Have a look at this:

http://forum.xda-developers.com/showthread.php?t=1643757

And this:

http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/

Changing from MTP to PTP (camera transfer mode) also works with nautilus, at least with the built-in memory.

share|improve this answer
2  
Using PTP allowed me to access internal memory with Nautilus, which waht I was looking for. Thanks. –  PowerKiKi Jul 12 '12 at 8:06

I have been able to do this using the following:

$ sudo apt-get install mtp-tools mtpfs
$ mkdir phone
...Connect phone, set usb mode to MTP...
$ sudo mtpfs -o allow_other phone
...Trying to do anything with the new filesystem right now will take a minute or so, just be patient...
...Finally, you can access your phone and do whatever, then...
$ sudo umount phone

Here is the version this worked on:

$ mtpfs --version
FUSE library version: 2.8.6
fusermount version: 2.8.6
using FUSE kernel interface version 7.12

I haven't had perfect success with it, but I was able to get some files off of the phone. I imagine this will get better as newer software is released.

share|improve this answer
    
This works fine on Quantal, but not on Precise :( I think the version of libmtp is too old –  KayEss Dec 16 '12 at 8:07
    
@KayEss I'm on 12.04 (PP) and it worked without issue, so YMMV I guess –  TankorSmash Sep 3 at 21:15

There is no GUI needed for file transfer (No One on Ubuntu is interested in making a GUI for only file transfer). And there is no need for plugins for Nautilus either. I Use Samsung Galaxy Mini (Android 2.2 ~ Froyo), and I'm doing file transfer so far by three ways, Bluetooth connection, Cable connection or using Ubuntu One app.

For cable connection you can do it easily as plug the cable, wait a while and choose mass storage mode. Access and File Transfer via Nautilus. If you want to make the phone as modem, go here: http://shiliarr95z.weebly.com/2/post/2011/07/connecting-samsung-galaxy-mini-android-phone-to-ubuntu-1104-as-modem.html.

For Bluetooth Connection, you can go here : http://shiliarr95z.weebly.com/2/post/2011/08/howto-transfer-files-via-bluetooth-laptop-to-samsung-galaxy-mini-android-phone-vice-versa.html a bit complicated but fun as well.

Using Ubuntu app is the easiest one. On the phone side,just go to Android market and install the Ubuntu one app. photo sharing runs in the background in an instant. On the Ubuntu side, just register yourself on Ubuntu One (click the envelope icon and choose Ubuntu One). And, You Have GUI on the phone side (On the Ubuntu side, you got only an OSD Message)

share|improve this answer

For the technically noob (including me) I found just copying the file(s)/Photo(s) from the SD and pasting it to the DCIM on the phone memory will allow me to copy using the USB camera mode. Then delete the phone file once you download to PC if you need want to clear the phone memory.

  1. Go to My Files.
  2. Select extSDCard
  3. In this example I will select DCIM
  4. Press the settings button on bottom left.
  5. Select Copy.
  6. Check box of files to be copied.
  7. Press copy on top right.
  8. Exit back to My Files. 9 Select sdcard0
  9. In this example I will select DCIM
  10. Press paste in top right.
  11. Exit out, select camera mode in the USB option and you should be able to transfer using simple "my computer".
share|improve this answer

You just install jmtpfs (via sudo apt-get install jmtpfs). After connecting your phone via USB, enable the MTP file transfer on your phone and it will show up as USB device on your computer. You can then access the whole file system (and not only the pictures, as with PTP) of your Android device.

share|improve this answer
    
Could you edit your answer to include what phone this worked for you with? Thanks! –  Seth 17 hours ago

Android USB

From the home screen press Menu > Settings > Connect to PC > in this menu, make sure "Ask Me" is selected, if you want it to pop-up and ask you what connection type you want when you plug into the computer.

Or you can set a default action from this menu as well. You can set it to Charge Only, HTC Sync, Disk Drive, Mobile Broadband Connect.

Then Ubuntu will simply detect it as a MTP.

share|improve this answer

If you can't transfer songs through Rhythmbox you can, like others have pointed out, transfer files using mass storage.

On my Samsung Galaxy S II you do it by going: Applications->Settings->Connection settings->USB mass storage

Then if you plug in the USB cable it should prompt you to go to USB mass storage mode. If you say yes your phone will be available through Nautilus.

share|improve this answer

The git master branch of libmtp (http://libmtp.git.sourceforge.net/git/gitweb-index.cgi) supports the S3. If you know how to install / compile from source, you can use this until a new version is released.

I'm not on an ubuntu machine right now, so I unfortunately can't give exact instructions regarding dependencies for compiling, etc. But it should be along the following lines:

git clone git://libmtp.git.sourceforge.net/gitroot/libmtp/libmtp
cd libmtp

sudo apt-get install libtool libusb-dev checkinstall

./autogen.sh  (answering yes to any questions)
./configure --prefix=/usr/
make
sudo checkinstall  (answering any questions)

Then, you should probably make it into a .deb package, so you can install it without breaking dependencies of the programs you want to use. I'm out of my knowledge, but this link seems to provide info: Compiling source into a DEB package

share|improve this answer

Transfer files between Ubuntu PC and your Android phone via wifi:

Xender application on your android phone allows you to transfer files between Android and PC.

Steps:

  • Install Xender application on your Android device from playstore.

  • Create wifi hotspot on your Ubuntu pc by following this method and turn it on.

  • Connect your phone to pc via the created hotspot.

  • Now open xender application and select "Connect PC" option on the settings menu.

  • It will generate an address, (Like an ip-address).

  • Put that address on your web-browser.Now you can transfer files between your phone and PC.

    enter image description here

share|improve this answer

I have found one more application named "Qlix". You can download it from ubuntu software center.

It is for transferring files from PC to Android mobile phone.

Thanks

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.