I have an external hard drive which is encrypted via LUKS. It contains an ext4 fs.I just got an error from rsync for a file which is located on this drive:rsync: readlink_stat(/home/some/dir/items.json) failed: Structure needs cleaning (117)If I try to delete the file I get the same error:rm /home/some/dir/items.jsonrm: cannot remove //home/some/dir/items.json: Structure needs cleaningDoes anyone know what I can do to remove the file and fix related issues with the drive/fs (if there are any)?
Cannot remove file: Structure needs cleaning
ubuntu;files;filesystems;rm;ext4
That is strongly indicative of file-system corruption. You should unmount, make a sector-level backup of your disk, and then run e2fsck to see what is up. If there is major corruption, you may later be happy that you did a sector-level backup before letting e2fsck tamper with the data.