An eight bit character has been inserted into the file name indicated by ?,
you should be able to see it with 'ls -b'.  You can remove the file with a
wildcard such as *.  Or as Reid suggested, remove the whole directory with
'rm -rf'.

On Sun, Oct 29, 2023 at 2:32 PM Reid <[email protected]> wrote:

>
>
>
>
>
> Sent with Proton Mail secure email.
>
> ------- Original Message -------
> On Sunday, October 29th, 2023 at 2:19 PM, Rich Shepard <
> [email protected]> wrote:
>
>
> > After 6 hours 40 minutes I stopped the transfer from /media/bkup1 to
> /mnt/hd
> > and deleted /mnt/hd/salmo-root/.
> >
> > Every file was removed but one. The source is
> >
> /media/bkup1/salmo-root/20230520-0030/tree/.ccache/3/d/8a203b79706a7fd3dcbeb5c173e4e8-1341648.o.
> > In the target the file is:
> >
> /mnt/hd/bkup1/salmo-root/20230520-0030/tree/.ccache/3/d/8a203b79706a7fd3dcbeb5c173e4e8-134?648.o
> >
> > How the name was changed by inserting a '?' I've no idea. Root cannot
> delete
> > this file, even if bracketed with "...".
> >
> > When root tries to mv the file to the source name the effort fails:
> > # mv 8a203b79706a7fd3dcbeb5c173e4e8-134?648.o
> 8a203b79706a7fd3dcbeb5c173e4e8-1341648.o
> > # mv: cannot move '8a203b79706a7fd3dcbeb5c173e4e8-134'$'\021''648.o' to
> > '8a203b79706a7fd3dcbeb5c173e4e8-1341648.o': No such file or directory
> >
> > Why might this be happening? What can I do to remove the
> /mnt/hd/salmo-root/
> > directory with this one oddball file?
>
> Any luck with this?
> https://askubuntu.com/questions/746048/cant-delete-a-file-with-a-in-the-file-name
>
> Also if it's the only file in the directory (maybe I misunderstood), what
> happens when you try to remove the whole directory (`rm -rf
> <directory_path>`)?
>
> >
> > TIA,
> >
> > Rich
>

Reply via email to