0

Also is it any different than ubuntu?

UPDATE:

Using gmtp, I still get the error from the terminal and gmtp crashes when i click on "connect".

The gmtp says the following in the shell:

Device 0 (VID=18d1 and PID=4ee1) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: Error 02fe: PTP: Protocol error, data expected

I'm sure that libtmp teams added nexus4 to their libraries because my nexus4 was being seen by ubuntu-11.04 easily. But my problem is still alive in linuxmint

Logos
  • 3,871
  • 1
  • 17
  • 24

1 Answers1

2

This question gets asked a lot about Linux in general. MTP from the default repos will work in Mint, no problem. I've written a tutorial on how to get MTP devices recognized under Ubuntu, but it's the same for Mint:

Install MTP:

  1. sudo apt-get install mtpfs

Create a directory to mount your device:

  1. sudo mkdir /media/MTPdevice (call the directory whatever you like)
  2. sudo chmod 775 /media/MTPdevice
  3. sudo mtpfs -o allow_other /media/MTPdevice

Plug in you phone and use MTP tools to determine the VID and PID (or, if those don't appear in the output, idVendor and idProduct):

  1. mtp-detect

Add a rule to udev to handle your phone:

  1. gksu gedit /etc/udev/rules.d/51-android.rules

Text to add: (substitue VID and PID for "" and "")

SUBSYSTEM=="usb", ATTR{idVendor}=="<vendorId>", ATTR{idProduct}=="<productId>", MODE="0666"

Restart udev:

  1. sudo service udev restart

You may also need to reboot, depending.

This works on my Linux Mint 15 + MATE box.

NOTE: If you have your device locked (eg, which a swipe code or PIN), you’ll need to unlock it before your SD card(s) can be recognized by MTP and have it mount them for you to access locally.

Logos
  • 3,871
  • 1
  • 17
  • 24