testdisk icon indicating copy to clipboard operation
testdisk copied to clipboard

Support for this filesystem wasn't enabled during compilation.

Open em2943 opened this issue 1 year ago • 8 comments

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.

em2943 avatar May 27 '24 16:05 em2943

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.

cgsecurity avatar May 28 '24 10:05 cgsecurity

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

mirh avatar May 31 '24 01:05 mirh

the fact of both of theses are odd to me

em2943 avatar May 31 '24 04:05 em2943

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.

cgsecurity avatar May 31 '24 05:05 cgsecurity

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

mirh avatar Jun 01 '24 16:06 mirh

Can testdisk detect Btrfs and LUKS partitions? It shows "Support for this filesystem hasn't been implemented."

Katkidnapped avatar Feb 02 '25 05:02 Katkidnapped

~~Supposedly yes.~~ Ok nvm I think btrfs may be supported just to recover a whole partition, and not file/folders inside?

mirh avatar Feb 02 '25 12:02 mirh

@Katkidnapped TestDisk can detect and recover btrfs and LUKS partitions. It can not list the files inside. PhotoRec can recover files from unlocked LUKS ( run photorec on the loop device) and from btfs filesystem.

cgsecurity avatar Feb 04 '25 09:02 cgsecurity

Wish I knew this before I installed testdisk that this is a bug and that I was mislead by testdisk even launching when my root is xfs

ActuallyTheOwner avatar Oct 11 '25 01:10 ActuallyTheOwner