How to mount USB device using jmtpfs on Linux (Debian 9)?
PERFORM EVERY STEP IN THE SPECIFIED ORDER
SAMSUNG-SM-G900R4
- 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
Computer
- Mount device:
jmtpfs /media/SAMSUNG-SM-G900R4
SAMSUNG-SM-G900R4
- If message
Allow access to device data
appears, then TapALLOW
.
Computer
- Unmount device:
umount /media/SAMSUNG-SM-G900R4
- Mount device:
jmtpfs /media/SAMSUNG-SM-G900R4
- Check if you can access device directory:
cd /media/SAMSUNG-SM-G900R4; ls
Vassil
Updated on September 18, 2022Comments
-
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 cableComputer
Restart Computer
Mount device:jmtpfs /media/SAMSUNG-SM-G900R4
SAMSUNG-SM-G900R4
If messageAllow access to device data appears
, then TapALLOW
.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 over 5 yearsThat suggested duplicate was self-answered, and no points made.
-
Jeff Schaller over 5 yearsIt 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 over 5 years@JeffSchaller - definitely not a variation, it's the same (identical) self-answered question, by the same person.
-
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 over 2 yearsHow do steps 1 and 2 help?