Unable to delete files on USB hard disk
by andrewf8 from LinuxQuestions.org on (#5EEYT)
I use FreeFileSync in one direction to backup my data files from my Fedora 33 computer onto a USB hard disk.
It has worked well on thousands on files for years. However, a bit ago, FreeFileSync could not update five files on the USB hard disk. They do NOT have unusual characters in their filenames.
When FreeFileSync updates a file, it appars to delete the previous version at the target location, then copies the new version across. It could not do that. I get this message:
Unable to move "/run/media/u/My Passport/FedoraBoxMirror/Documents/quotes.odt" to the recycle bin.
G_IO_ERROR_NOT_FOUND: Unable to trash file /run/media/u/My Passport/FedoraBoxMirror/Documents/quotes.odt: No such file or directory [g_file_trash]
The five target files can be seen on the Fedora 33 Files Manager, they open in LibreOffice, but can not be deleted because supposedly I do not have permission. But, looking at permissions for the files, I do.
So, I tried to use terminal. I changed to root user. I CD'ed to the directory on the USB hard disk, the files come up on "ls", but when I try "rm", the system says there is "No such file or directory".
Does anyone have any ideas how to resolve this?
Attached Thumbnails


It has worked well on thousands on files for years. However, a bit ago, FreeFileSync could not update five files on the USB hard disk. They do NOT have unusual characters in their filenames.
When FreeFileSync updates a file, it appars to delete the previous version at the target location, then copies the new version across. It could not do that. I get this message:
Unable to move "/run/media/u/My Passport/FedoraBoxMirror/Documents/quotes.odt" to the recycle bin.
G_IO_ERROR_NOT_FOUND: Unable to trash file /run/media/u/My Passport/FedoraBoxMirror/Documents/quotes.odt: No such file or directory [g_file_trash]
The five target files can be seen on the Fedora 33 Files Manager, they open in LibreOffice, but can not be deleted because supposedly I do not have permission. But, looking at permissions for the files, I do.
So, I tried to use terminal. I changed to root user. I CD'ed to the directory on the USB hard disk, the files come up on "ls", but when I try "rm", the system says there is "No such file or directory".
Does anyone have any ideas how to resolve this?
Attached Thumbnails