← Back to CGSecurity

TestDisk

Maker: CGSecurity (Christophe Grenier) Platforms: Windows, macOS, Linux, BSD, Solaris, DOS

TestDisk isn't a general competitor to R-Studio, UFS Explorer or Disk Drill. Its real strength is narrower and more specific — partition discovery, selected filesystem and boot-sector repair, and undelete on the file systems where enough metadata survives — all in one free, text-mode tool with no tiers, no upsell, and no separate "Pro" edition.

What TestDisk actually does

Per CGSecurity's own documentation, TestDisk can analyze a disk's partition structure and search for partitions that have gone missing, then rewrite partition-table information once it has found the correct geometry. It can repair or rebuild certain damaged boot sectors, list and copy files from supported file systems, and run scripted, non-interactive operations for repeatable batch use. None of this is gated behind a paid tier — every build gets the same feature set.

Undelete: what it recovers, and what it doesn't

TestDisk can undelete files on FAT12, FAT16, FAT32, exFAT, NTFS and ext2, and it can search ext2/ext3 superblocks directly when the primary one is damaged. On ext3 and ext4, though, it cannot reconstruct deleted file data the way it does on ext2 — those file systems don't retain the block-location information TestDisk's undelete method relies on. PhotoRec, the file-carving tool CGSecurity distributes alongside TestDisk, is the fallback for that case, and for any situation where the file-system metadata itself is too damaged to trust.

Read-only discovery and write-capable repair are different phases

Some of TestDisk's most useful functions — rewriting a partition table, rebuilding a boot sector — intentionally write to the source. Finding the correct partition geometry and writing that geometry back to the disk are two different decisions, and they shouldn't be made in the same breath: if the data on the drive matters, recover or copy it first, or work from a disk image, before using TestDisk's repair functions on the original source. See Recovery Copies for the imaging step and Partition Table & Filesystem Discovery for how the read-only discovery phase works.

TestDisk

Free

Analyzes partition structures, can locate lost partitions, copy files from some supported file systems, and offers partition-table or boot-sector repair functions. Those write-capable repair functions should be treated separately from data recovery on a source that matters.

  • LicenseGNU GPL v2+ — free, open-source
  • InterfaceText-mode / terminal interface, no GUI
  • Current version7.2 (February 2024)
$0Free and open-source, always
View on cgsecurity.org →
The real cost isn't money

TestDisk being free doesn't mean it's the easiest option — the text-mode interface has a real learning curve compared to the wizard-driven consumer tools elsewhere in this directory. It rewards reading the documentation before running it on a drive that matters.

When to use something else

TestDisk is not a full NTFS, ext4 or APFS reconstruction engine, it doesn't repair every filesystem it can recognize, and writing a found partition back is not automatically the right next step — nor is TestDisk interchangeable with PhotoRec; each answers a different question. For plain accidental deletion on a healthy drive, or for cases needing broader filesystem reconstruction, RAID support, or a guided interface, the consumer and technician tools elsewhere in this directory are a better starting point. See Partition Loss, Drive Asks to Be Initialized, RAW Drive and Computer Won't Boot for the specific cases TestDisk is actually built for.