Sample Header Ad - 728x90

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

1 vote
2 answers
13796 views
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.
Asked by Vassil (61 rep)
Sep 4, 2018, 06:16 PM
Last activity: Nov 30, 2022, 12:33 AM