How to mount USB device using jmtpfs on Linux (Debian 9)?

10,156

PERFORM EVERY STEP IN THE SPECIFIED ORDER

SAMSUNG-SM-G900R4

  1. Turn on Developer options: Settings -> System -> About device -> tap "Build number" at least 7 times
  2. Set USB options: Settings -> System -> Developer options -> USB debugging: ON, USB configuration: MTP (Media Transfer Protocol)
  3. Restart device

Computer

  1. Mount device: jmtpfs /media/SAMSUNG-SM-G900R4

SAMSUNG-SM-G900R4

  1. If message Allow access to device data appears, then Tap ALLOW.

Computer

  1. Unmount device: umount /media/SAMSUNG-SM-G900R4
  2. Mount device: jmtpfs /media/SAMSUNG-SM-G900R4
  3. Check if you can access device directory: cd /media/SAMSUNG-SM-G900R4; ls
Share:
10,156
Vassil
Author by

Vassil

Updated on September 18, 2022

Comments

  • Vassil
    Vassil over 1 year

    Device Information Settings -> System -> About device

    SAMSUNG-SM-G900R4, Android version 6.0.1
    

    Computer System Information (Terminal command: uname -a)

    Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
    

    Mount USB device using jmtpfs

    jmtpfs /media/SAMSUNG-SM-G900R4
    

    ERROR-0

    Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
    fuse: bad mount point `/media/vassil/SAMSUNG-SM-G900R4': Input/output error
    

    ERROR-1

    Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
    LIBMTP PANIC: Could not open session! (Return code 8195)
      Try to reset the device.
    terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
      what():  Can't open device
    Aborted
    

    TESTS
    Used different USB cables and tried various combinations of the following:

    SAMSUNG-SM-G900R4
    Unplug USB cable
    Turn on Developer options: Settings -> System -> About device -> tap "Build number" at least 7 times
    Set USB options: Settings -> System -> Developer options -> USB debugging: ON, USB configuration: MTP (Media Transfer Protocol)
    Restart device
    Plug USB cable

    Computer
    Restart Computer
    Mount device: jmtpfs /media/SAMSUNG-SM-G900R4

    SAMSUNG-SM-G900R4
    If message Allow access to device data appears, then Tap ALLOW.

    Computer
    Check if you can access device directory: cd /media/SAMSUNG-SM-G900R4; ls

    RESULTS
    ERROR-0 is displayed, ERROR-1 is displayed, device directory is accessible with some frequencies.

    • Marius
      Marius over 5 years
      That suggested duplicate was self-answered, and no points made.
    • Jeff Schaller
      Jeff Schaller over 5 years
      It appears to be the same person asking both questions. Vassil, are you attempting to reopen your previous version of this question, or is this supposed to be a new variation that's distinct from the previous one?
    • don_crissti
      don_crissti over 5 years
      @JeffSchaller - definitely not a variation, it's the same (identical) self-answered question, by the same person.
    • Vassil
      Vassil over 5 years
      @JeffSchaller Yes, I'm trying to reopen previous version of question. Suggested edits were made and it was still closed.
  • reinierpost
    reinierpost over 2 years
    How do steps 1 and 2 help?