6

I have installed mtp-tools on my debian7.8.
mtp-files can list all my files on android phone.
How can I mount all my files on android phone on the directory /tmp/myphone?

root@debian:/home/debian# jmtpfs -l
Device 0 (VID=0b05 and PID=0c02) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team Available devices (busLocation, devNum, productId, vendorId, product, vendor): 1, 8, 0x0c02, 0x0b05, UNKNOWN, UNKNOWN
root@debian:/home/debian# jmtpfs /tmp/myphone
Device 0 (VID=0b05 and PID=0c02) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team ignoring usb_claim_interface = -6ignoring usb_claim_interface = -5PTP_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
fuse: bad mount point `/tmp/myphone': Input/output error

The jmptfs can't mount my phone.

chmod 777  /tmp/myphone 

After chmod.

root@debian:/home/debian# jmtpfs /tmp/myphone
Device 0 (VID=0b05 and PID=0c02) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Android device detected, assigning default bug flags
root@debian:/home/debian# jmtpfs -l
Device 0 (VID=0b05 and PID=0c02) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Available devices (busLocation, devNum, productId, vendorId, product, vendor):
1, 5, 0x0c02, 0x0b05, UNKNOWN, UNKNOWN

  • fuse: bad mount point '/tmp/myphone': Input/output error I think that's the issue here. Is the directory created and writable? Can you try mounting it as a regular user instead? – ThibautRenaux Mar 3 '15 at 11:22
9

Install jmtpfs (aptitude install jmtpfs) which allows to mount MTP devices.

Create the directory if it doesn't exist already (mkdir /tmp/myphone). Then, the following will mount your phone:

jmtpfs /tmp/myphone

jmtpfs will use the first available device. If you've got more than one connected at a time, you can do jmtpfs -l to find out which one is your phone, and use the -device flag to specify it.

As an alternative, you can try go-mtpfs instead.

  • More details on jmtpfs at github.com/JasonFerrara/jmtpfs – Brij Jul 21 '18 at 16:42
  • Note that jmtpfs . (mount into the current directory) does not work, but jmtpfs $(mktemp -dt phone.XXXXXX) (mount into a new temporary directory) does. – rubicks Sep 27 '18 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.