Menu

1.1.8-1: jmtpfs fails with -6PTP_ERROR_IO

Help
Tom Roche
2015-04-06
2015-04-07
  • Tom Roche

    Tom Roche - 2015-04-06

    [Apologies in advance if this is the wrong place to ask for jmtpfs support--if there is a more appropriate venue, please let me know.]

    summary: When I connect my MotoG to my Debian laptop, the laptop detects the MotoG via both nautilus and jmtpfs -l. However my attempt to mount the MotoG with jmtpfs fails with -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface

    details:

    Per http://sourceforge.net/p/libmtp/feature-requests/126 I recently installed libmtp packages with version=1.1.8-1 on a Debian box, which now has

    $ cat /etc/debian_version
    jessie/sid
    $ uname -rv
    3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13)
    $ gcc --version | head -n 1
    gcc (Debian 4.8.2-1) 4.8.2
    $ aptitude versions --disable-columns mtp | grep -e '^Package\|^i' | grep -vie 'dovecot\|mtpaint\|smtp'
    Package gmtp:
    Package gmtp:i386:
    Package jmtpfs:
    i  0.5-2  100
    Package kio-mtp:
    Package kio-mtp-dbg:
    Package kio-mtp-dbg:i386:
    Package kio-mtp:i386:
    Package libmtp-common:
    i  1.1.8-1  100
    Package libmtp-dbg:
    Package libmtp-dbg:i386:
    Package libmtp-dev:
    Package libmtp-dev:i386:
    Package libmtp-doc:
    i  1.1.8-1  100
    Package libmtp-runtime:
    i  1.1.8-1+b1  100
    Package libmtp-runtime:i386:
    Package libmtp9:
    i  1.1.8-1+b1  100
    Package libmtp9:i386:
    i  1.01-3 testing 500
    Package mtp-tools:
    i  1.1.6-20-g1b9f164-1 testing 500
    Package mtp-tools:i386:
    Package python-pymtp:
    Package uucp-lmtp:
    

    Before connecting any MTP devices to the Debian box, I see

    $ date ; jmtpfs -l
    Sun Apr  5 20:08:46 EDT 2015
    Unable to open ~/.mtpz-data for reading, MTPZ disabled.
    Available devices (busLocation, devNum, productId, vendorId, product, vendor):
    

    I then connected a (working) Moto G phone to the Debian box with a USB cable. A nautilus window opens showing the (browsable) contents of location='mtp://[usb:001,040]/' with device name='XT1028'. I can also see

    $ date ; jmtpfs -l
    Sun Apr  5 20:09:06 EDT 2015
    Unable to open ~/.mtpz-data for reading, MTPZ disabled.
    Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
    Available devices (busLocation, devNum, productId, vendorId, product, vendor):
    1, 41, 0x2e82, 0x22b8, Moto G (ID2), Motorola
    

    However, I am unable to mount the device with

    $ mkdir -p ~/Android_transfer/
    $ sudo jmtpfs ~/Android_transfer/
    Unable to open ~/.mtpz-data for reading, MTPZ disabled.
    Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
    ignoring libusb_claim_interface() = -6PTP_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
    $ ls -al ~/Android_transfer/
    ls: cannot access /home/me/Android_transfer/: Permission denied
    $ sudo fusermount -u /home/me/Android_transfer
    

    Should I use something other than jmtpfs to mount the device? If so, what do you advise?

    If not, how to fix or further debug?

     
  • Marcus Meissner

    Marcus Meissner - 2015-04-07

    is there another program acessing it, like gvfs? ps auxw|grep gvfs.*mtp

    if yes, kill that other program

     

Log in to post a comment.

MongoDB Logo MongoDB