• GNOME, MTP and Nexus 6p - Unable to Mount


    • Nexus 6P is running Android 7.1.2
    • Nexus 6P Device is unlocked before attaching USB-C cable.
    • On Nexus 6P device, I enabled developer tools, confirmed “Select USB Configuration” is set to “MTP (Media Transfer Protocol)”.
    • Tried USB3 and USB2 ports, same messages, just device numbers change. Below was tested on USB2.

    The Nexus device is detected:

    $ lsusb
    
    Bus 002 Device 003: ID 18d1:4ee1 Google Inc. Nexus Device (MTP)
    

    Seems to have a problem with device 0:

    $ mtp-detect
    libmtp version: 1.1.13
    
    Listing raw device(s)
    Device 0 (VID=18d1 and PID=4ee1) is a Google Inc Nexus/Pixel (MTP).
       Found 1 device(s):
       Google Inc: Nexus/Pixel (MTP) (18d1:4ee1) @ bus 2, dev 3
    Attempting to connect device(s)
    ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
    LIBMTP libusb: Attempt to reset device
    ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
    Unable to open raw device 0
    OK.
    

    File “/lib/udev/rules.d/69-libmtp.rules” contains:

    ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
    

    Based on above, the device seems to exist:

    ls -l /dev/libmtp-2-1.6 
    lrwxrwxrwx 1 root root 15 Jul 30 23:37 /dev/libmtp-2-1.6 -> bus/usb/002/003
    
    $ dmesg
    [ 3409.838307] usb 2-1.6: usbfs: process 6521 (mtp-detect) did not claim interface 0 before use
    [ 3409.838415] usb 2-1.6: usbfs: process 6290 (events) did not claim interface 0 before use
    [ 3409.838423] usb 2-1.6: usbfs: process 6290 (events) did not claim interface 0 before use
    [ 3409.838428] usb 2-1.6: usbfs: process 6290 (events) did not claim interface 0 before use
    [ 3409.838432] usb 2-1.6: usbfs: process 6290 (events) did not claim interface 0 before use
    

    Browsing in Nemo, no error message, just nothing listed - no files / no directory
    mtp://[usb:002,003]/

    $ jmtpfs
    Device 0 (VID=18d1 and PID=4ee1) is a Google Inc Nexus/Pixel (MTP).
    ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
    LIBMTP libusb: Attempt to reset device
    ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
    terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
      what():  Can't open device
    Aborted (core dumped)
    

    I’ve read the Arch Wiki on MTP, that is where I got the commands above to troubleshoot with.

    Any suggestions?

  • https://forum.xda-developers.com/google-nexus-5/general/how-to-mount-nexus-5-arch-linux-t2613297
    looks similar and may helping?

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    how to add system logs

  • @joekamprad - Thanks for the reply.

    The only thing that thread offered which I had not tried yet was related to creating a new UDEV rule file, which I tried:

    $ cat /etc/udev/rules.d/51-android.rules
    SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", MODE="0666", GROUP="plugdev"
    
    $ sudo chmod a+r /etc/udev/rules.d/51-android.rules
    $ sudo groupadd plugdev
    $ sudo gpasswd -a $USER plugdev
    $ sudo udevadm control --reload
    

    Rebooted

    $ mtp-detect
    libmtp version: 1.1.13
    
    Listing raw device(s)
    Device 0 (VID=18d1 and PID=4ee1) is a Google Inc Nexus/Pixel (MTP).
       Found 1 device(s):
       Google Inc: Nexus/Pixel (MTP) (18d1:4ee1) @ bus 3, dev 3
    Attempting to connect device(s)
    ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
    LIBMTP libusb: Attempt to reset device
    ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
    Unable to open raw device 0
    OK.
    
    $ groups
    lp wheel uucp network video audio storage scanner users vboxusers jukebox plugdev
    

    No improvement. Same message about device 0.

    I’m not sure what these command do, but looks good:

    $ gvfs-mount -li | grep -e ^Volume -e activation_root
    
    Volume(0): Nexus 6P
      activation_root=mtp://%5Busb%3A003,003%5D/
    
    $ lsusb -v 2> /dev/null | grep -e Bus -e iInterface -e bInterfaceProtocol
    
    Bus 003 Device 003: ID 18d1:4ee1 Google Inc. Nexus Device (MTP)
          (Bus Powered)
          bInterfaceProtocol      0 
          iInterface              4 MTP
    
    

    But I’m unable to view any files / browse.

  • Got it working… didn’t do anything new. Still have the same error messages as above.

    Despite having the phone Settings > Developer Options > Select USB Configuration set to "MTP (Media Transfer Protocol)… I noticed that when the USB cable was attached to phone there was an “Android System” box with a “N” logo I could tap for options. It still defaulted to “Charge this device”. Simply selected “Transfer files” and waited about 5 seconds.

    The phone was then browseable by GNOME NEMO. A folder “Internal shared storage” appeared.

unable35 mtp2 nexus1 gnome215 Posts 4Views 147
Log in to reply