Ubuntu: How to get a working mtp connection for Galaxy S2 in 12.04? [duplicate]



Question:

This question already has an answer here:

Any one able to get proper MTP connection setup for Galaxy S2?

Ubuntu 12.04 detects my device and automatically mounts it but it's only partial.

The problems are:

  1. When I connect my device it immediately shows the above shown error:

    Unable to mount Android: Error initialising camera: -60: Could not lock the device

  2. In nautilus, if I select the device, It takes a very long time (At least a minute ) before it shows any device content. nautilus loading

  3. Support is only partial. I can copy and delete but cannot read them. Photos can be read but if I try to play mp3 it fails. Try opening apk file it fails with following dialog: error message

So my question is what settings are to enables to set it up so that that I have 100% MTP connection. I don't think I need to setup a new MTP connection as has been described on various blogs to get MTP. Because I think Ubuntu already detecting it and just needs to tweak a setting or two to give Ubuntu full control of my device.

If there is no other way other than following those blogs then how do I tell Ubuntu to stop automatically mounting my device so that I can setup manually a MTP connection.


Solution:1

Android 2.x

  1. On phone, go to: Settings âž" Wireless and network âž" USB utilities.
  2. Connect your phone to your PC using a USB cable.
  3. Tap Connect storage to PC.
  4. Scroll down from the phone notification bar. Click USB Mass Storage and tap "Connect storage from PC". The android robot will turn from green to orange. (Important step!)
  5. From your PC, open the folder to view your files.
  6. Copy files between your PC and the memory card.


Solution:2

To mount your device and access its storage:

  1. apt-get install mtpfs mtp-tools
  2. mtp-detect
  3. Run your desired command from the man here.

Make sure MTP is enabled, for Android 3+:

  1. Go into the device's Settings
  2. Select the Storage category
  3. Press â‹® at the top-right then USB Computer Connection
  4. Select Media device (MTP) or Camera (PTP)


Solution:3

I found a working solution and packed a script that installs also a unity launcher to mount and unmount correctly any Android 4.0+ MTP device .

it's working on 12.04 and 12.10 32 and 64 bit (tested)

http://penzoditutto.blogspot.it/2012/12/android-mtp-devices-40-mount-scripts.html

hope it helps


Solution:4

I read a blogpost (german) about a new alternative named go-mtpfs a few weeks ago that is supposed to be more reliable. You might want to try that if you haven't already. But sadly MTP (mtpfs or mtp-tools) support in Linux is rather unstable.

I use dropbear (SSH server) and the sftp-server binary compiled from Cyanogen Mod on my Galaxy Nexus. Still not a good solution, but works better for me. droidsshd might be for you if you just want to try it as an app, but it was unstable on my device.


Solution:5

I had the same trouble when I conected the galaxy s2 to my computer. Now I've found an solution. Just you have to give special permissions.

In the phone go to Settings > Applications > Development > USB Debugging

and finaly check "USB debug mode" then plug in the phone and have fun!


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »