Testdisk won’t list files for an ext4 partition inside a LVM inside a LUKS partition

Posted by user1598585 on Server Fault See other posts from Server Fault or by user1598585
Published on 2012-09-25T01:47:50Z Indexed on 2012/09/25 3:39 UTC
Read the original article Hit count: 566

Filed under:
|
|

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

A # 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.

© Server Fault or respective owner

Related posts about lvm

Related posts about data-recovery