I try to delete a file that is left in a directory, but even an ls -i will not give me an inode to remove it. Deleting/removing the directory won't work even with the inode.
$ ls -ila
ls: cannot access 'Mieterh'$'\3.webarchive': No such file or directory
total 0
1477265 drwxr-xr-x 1 99 99 3 Feb 18 08:49 .
1477260 drwxr-xr-x 1 99 99 3 Feb 2 2023 ..
? -????????? ? ? ? ? ? 'Mieterh
This is an external drive mounted using a USB connection.
filesystem: HFS+
OpSys: Ubuntu 22.04.03
Size: 5TB
Space left: about 1 TB
Vendor: Toshiba
thanks in advance for any help/advice.
Probably it's the easiest to delete the directory with the including "garbage"... but how?
fsck_hfsis probably worth a try, but this directory entry may be of a type not understood by Ubuntu.lscannot access it (it has an invalid name), thus it cannot read the inode number. To me the filesystem just looks corrupted. Please run fsck.