0

[I know similar questions exist but answers didn't work for me]
I got an error message when trying to copy files from SD Card from an android smartphone. From the internal memory works fine. I can see the files using the "transfer files" option in Huawei, that appears after connecting by usb, but when I try to copy them to ubuntu, it seems the system unmounts the folder.
As an alternative, if I use the "transfer photos" option, instead of "transfer files", only internal memory content is shown. Any help is appreciated

Error example:

USER@COMP:/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C023%5D/SD card$ ls
4SHARED.COM               didi                hawaii       Pictures
Android                   Download            Huawei       storage
DCIM, etc ...

rsync -r -n -t -v --progress -c -s "/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C023%5D/SD card/DCIM/Camera" /home/USER/Pictures/2019
sending incremental file list
rsync: readlink_stat("/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C023%5D/SD card/DCIM/Camera/IMG_20190511_194918.jpg") failed: Input/output error (5)
rsync: readlink_stat("/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C023%5D/SD card/DCIM/Camera/IMG_20190511_194950.jpg") failed: Input/output error (5)
file has vanished: "/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C023%5D/SD card/DCIM/Camera/IMG_20190511_194957.jpg"

USER@COMP:/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C023%5D/SD card$ ls
ls: cannot open directory '.': No such file or directory

See, after trying to copy or rsync folder is unmounted.

  • Are you having the same problem in your GUI file manager? What if you run cp -R /path/to/from/ /path/to/destination/? – Nmath May 26 at 0:49
  • similar errors. – Ferroao May 26 at 0:50
  • 1
    if you are only having problems with these specific image files, it could be that the files are corrupted or possibly damage or corruption on the SD card itself. Since you aren't having problems copying from internal memory-> can you move the files to the internal memory of the phone using the phone? Another option for troubleshooting would be to try to use the SD card in a card reader. – Nmath May 26 at 1:39
  • If you plug the phone into a non-Ubuntu computer, can you access the SD card? Since Ubuntu can successfully connect to the internal memory, you seem to have conclusively demonstrated that it's not an Ubuntu issue...but one more test cannot hurt! – user535733 May 26 at 3:00
  • hi @user535733 , as you saw in the first line, i have access in ubuntu, before trying to copy, very weird don't you think? – Ferroao May 27 at 22:11

Your Answer

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

Browse other questions tagged or ask your own question.