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

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)