cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.69k stars 205 forks source link

Support for this filesystem wasn't enabled during compilation. #156

Open em2943 opened 6 months ago

em2943 commented 6 months ago

I was trying to recover files from an xfs partition & testdisk says "Support for this filesystem wasn't enabled during compilation." I was just asking why is xfs file recovery not compiled by default.

cgsecurity commented 6 months ago

The message is misleading... I will have to fix it

Currently testdisk can detect XFS partitions but TestDisk can not list the files from XFS filesystems. PhotoRec can recover files from XFS but it can not distinguish between XFS allocated and non-allocated blocks, so it recovers both deleted and non-deleted files.

mirh commented 6 months ago

Wait a minute.. Does this mean that photorec normally drops for good files that it thinks weren't deleted?

em2943 commented 6 months ago

the fact of both of theses are odd to me

cgsecurity commented 6 months ago

Wait a minute.. Does this mean that photorec normally drops for good files that it thinks weren't deleted?

For FAT12/FAT16/FAT32/exFAT/ext2/3/4/NTFS, PhotoRec lets you choose what you want to recover

[ Free ] Scan for files from unallocated space only [ Whole ] Extract files from whole partition

For other filesystems, PhotoRec always recovers files from whole partition, it scans all (allocated and unallocated) blocks.

mirh commented 6 months ago

Oh, ok, you meant "filesystem allocated" (like, within the boundaries of partition). Not "file allocation table" allocated.