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
Best Answer
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 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.