PhotoRec
PhotoRec ships alongside TestDisk from the same download, but it's a file carver, not a filesystem-recovery tool: it reconstructs files from content patterns when filesystem metadata is absent, damaged, or deliberately set aside.
Compare PhotoRec with Recuva →
Compare PhotoRec with Disk Drill →
What PhotoRec actually does
PhotoRec does not depend on filesystem namespace metadata to reconstruct files. Its core recovery method is signature and content-based carving — scanning raw data for the internal patterns that identify a file type — although it can still use limited filesystem information, such as block size and offset, to constrain where it searches and to work only within unallocated space on filesystems it supports. That's a narrower claim than "it ignores the file system entirely," and it's the more accurate one — see File-System Recovery vs. File Carving for the full distinction and why it matters for which cases PhotoRec actually solves.
Per CGSecurity's own documentation, PhotoRec recognizes more than 300 file families and roughly 480 file extensions, and it can carve a whole partition or restrict itself to unallocated space only where the underlying filesystem is supported. For some formats it validates the file header or internal structure before accepting a match, and it includes extra logic to reassemble some fragmented JPEGs that a simple carver would miss. A "Keep corrupted files" option preserves partial or failed matches for later, format-aware salvage instead of discarding them outright.
What carving costs you
Because PhotoRec works from content rather than the filesystem's own directory structure, recovered files normally lose their original names and folder paths — they come back as generic, numbered filenames grouped by recovery run. Fragmentation is carving's other major limitation: a file whose data isn't stored in one contiguous run can defeat signature-based reassembly even when every byte of it is technically still on the disk. See Fragmented & Memory-Card Recovery for how that plays out on flash media — also covered from the case side in Video & Memory Card Recovery — and Recovered Files Won't Open if carving has already produced files that look present but won't open cleanly.
One rule applies regardless of what PhotoRec finds: never write its recovered output back to the source you're scanning. Recover to a different physical drive, and treat the original as read-only until the job is done.
PhotoRec
FreeFile carving: scans underlying data for recognizable file structures rather than depending on file-system metadata. That lets it work on damaged or reformatted file systems, but original paths and filenames are generally not reconstructed.
- LicenseGNU GPL v2+ — free, open-source
- InterfacePhotoRec text interface; QPhotoRec graphical front end is included in supported builds
- Current version7.2 (February 2024), distributed together with TestDisk
PhotoRec is especially useful when file-system metadata is unavailable or unreliable, or when a signature-based search is deliberately preferred — the ext3/ext4 undelete gap on TestDisk is a good example. It can also complement file-system-aware recovery rather than serving only as a last resort, but the loss of original names and directory structure is a real tradeoff. Once files are back, Validating Recovered Data covers how to confirm a carved file is actually intact before you rely on it.