android mount mtp: read error at byte 0, input/output error

Asked by SoloTurn

how can i copy files from an android phone with keeping the timestamps?

mc@mc:/run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C004%5D/Internal storage/DCIM/100ANDRO$ cp -p DSC_0294.JPG ~
cp: error reading ‘DSC_0294.JPG’: Input/output error

when using tar it does:
tar: DSC_0294.JPG: Read error at byte 0, while reading 9216 bytes: Input/output error

when copying with the file browser it copies fine, but does not keep the timestamps.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
SoloTurn
Solved:
Last query:
Last reply:
Revision history for this message
SoloTurn (soloturn) said :
#1

i installed jmtpfs and got:

$ jmtpfs
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Device 0 (VID=0fce and PID=01a7) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
ignoring libusb_claim_interface() = -6PTP_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: missing mountpoint parameter

i found:
* https://wiki.archlinux.org/index.php/MTP
* http://www.mysolutions.it/mounting-your-mtp-androids-sd-card-on-ubuntu/

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

When you unplug the phone from systems, do you use the safe removal feature in your OS?

Revision history for this message
SoloTurn (soloturn) said :
#4

but ... despite the error message it works !!

$ mkdir myphone
$ jmtpfs myphone
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Device 0 (VID=0fce and PID=01a7) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Android device detected, assigning default bug flags
$ cp -p myphone/Internal\ storage/DCIM/100ANDRO/* tmp/

Revision history for this message
SoloTurn (soloturn) said :
#5

what would be interesting if one could add a "-p" flag to the file browser as well ...