I have accidentally deleted a file that I want to recover. The partition is an ext4 partition inside an LVM partition that is encrypted with dm-crypt/LUKS.
The encrypted LUKS partition is: /dev/sda2
which contains a physical volume, with a single volume group, mapped to: /dev/mapper/system
And the logical volume, the ext4 partition is mapped to: /dev/mapper/system-home
# testdisk /dev/mapper/system-home will notice it as an ext4 partition but tells me that the partition seems damaged when I try to list the files. If I
# testdisk /dev/mapper/system it will detect all the partitions, but the same happens if I try to list their files.
Am I doing something wrong or is it a known bug? I have searched but haven’t found any clue.