I have an encrypted, external hard drive that I use for backups. The backups are hardlinks to simulate incremental backups (using rsync). I am using Debian stable.
Apparently some of the files are damaged, and I am unable to delete them as root.
I've run fsck to fix the disk, but I am still unable to delete the files.
Apparently, the ownership of the files is garbled. They have permissions ---x-w--wx and owned by non-existent userids.
chown/chgrp, chattr and even lsattr give permission denied errors and say the operation is not permitted.
How can I take ownership of these files and delete them?