Page 1 of 1

File can be listed by testdisk but photorec does not recover the file (LUKS-encrypted ext4)

Posted: 14 May 2020, 22:18
by Eelee2qui8
Hi,

I have a partition encrypted by LUKS, and it's in ext4 format.

When I use testdisk to list the files, I can still see the deleted file that I would like to recover, but when I copy the file to a destination. The copied file seems to be not interpretable.

I've also tried photorec. However, the recovered files do not seem to include the desired file even though I was able to recover a lot of other files.

Are there other things I could try or maybe there is no hope to recover the file at this stage?

Re: File can be listed by testdisk but photorec does not recover the file (LUKS-encrypted ext)

Posted: 15 May 2020, 09:08
by cgrenier
What is the size of the file copied using TestDisk ? If it's 0, it explained why there is no content (file not "interpretable").
What is the file format of the file PhotoRec failed to recover ? Did you check the file hasn't been moved to the "Thrash" folder or equivalent ?

Re: File can be listed by testdisk but photorec does not recover the file (LUKS-encrypted ext)

Posted: 18 May 2020, 16:57
by Eelee2qui8
cgrenier wrote: 15 May 2020, 09:08 What is the size of the file copied using TestDisk ? If it's 0, it explained why there is no content (file not "interpretable").
What is the file format of the file PhotoRec failed to recover ? Did you check the file hasn't been moved to the "Thrash" folder or equivalent ?
Thanks for the reply! The size of the file copied using TestDisk is about 167kB. The file format is jpg. I just check ".local/share/Trash/files" and TestDisk can also find the same deleted file there, but the copied file generated by TestDisk from this location is also corrupted. Actually, it is identical to the copied file from the original directory I tried (Downloads).