Error with mtp connection between linux ubuntu and android

Get help for specific problems
Posts: 2
Joined: 20 Apr 2022

fredo.faure

Hello, i try a "Mirror" synchronization
from linux directory to a android directory,
and get the error:
---------------------
16:27:59 Info Comparison finished: 2 items found | Time elapsed: 00:00:00
16:28:03 Info Creating file "/run/user/1001/gvfs/mtp:host=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace de stockage interne partagé/BOOX_pdf/essai/t1.pdf"
16:28:07 Error Cannot move file
"/run/user/1001/gvfs/mtp:host=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace de stockage interne partagé/BOOX_pdf/essai/t1~a53d.ffs_tmp" to
"/run/user/1001/gvfs/mtp:host=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace de stockage interne partagé/BOOX_pdf/essai/t1.pdf".
EIO: Erreur d'entrée/sortie [rename]
16:28:07 Info Creating file "/run/user/1001/gvfs/mtp:host=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace de stockage interne partagé/BOOX_pdf/essai/t2.pdf"
16:28:11 Error Cannot move file
"/run/user/1001/gvfs/mtp:host=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace de stockage interne partagé/BOOX_pdf/essai/t2~fca6.ffs_tmp" to
"/run/user/1001/gvfs/mtp:host=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace de stockage interne partagé/BOOX_pdf/essai/t2.pdf".
EIO: Erreur d'entrée/sortie [rename]

--------------------------------
However the following command works well in a linux terminal:
cp /run/user/1001/gvfs/mtp\:host\=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace\ de\ stockage\ interne\ partagé/BOOX_pdf/essai/t1.pdf /run/user/1001/gvfs/mtp\:host\=QUALCOMM_BENGAL-IDP__SN%3A5B883CD4_254253BA/Espace\ de\ stockage\ interne\ partagé/BOOX_pdf/essai/t2.pdf

-----
The difference in syntaxt is that i wrote mtp\:host instead of mtp:host
Can it explain the error, how to correct this please?
Thanks in advance,
Frédéric.
User avatar
Site Admin
Posts: 7052
Joined: 9 Dec 2007

Zenju

The MTP device seems to have trouble with renaming. If you turn off menu->tools: "fail-safe file copy", the error probably won't occur. Ideally this setting should be moved to the folder pair level.
Posts: 2
Joined: 20 Apr 2022

fredo.faure

I did this, and now it works fine. Thank you. It is a big risk to remove this temporary copy option?
User avatar
Posts: 3611
Joined: 11 Jun 2019

xCSxXenon

Without that protection, FFS will delete the target file before writing the new file. if interrupted, you now have no copy on the target. You still have the copy on the source though.