TestDisk: Recover a Lost or Deleted Partition

by CGSecurity
Open SourceWindowsmacOSLinuxBackup & Recovery

TestDisk rebuilds partition tables and boot sectors that got deleted, corrupted, or overwritten.

If you're searching 'Download TestDisk,' there's a good chance a drive just lost a partition or won't boot, and time matters, the good news is TestDisk is completely free with no license to buy or trial to expire. One thing worth knowing before you start: it runs from a text-based menu rather than a modern graphical interface, which surprises some users expecting a typical Windows program, but the menus are well-labeled and it doesn't require command-line syntax knowledge to operate.

TestDisk download Official build, straight from the publisher — free, no account, no bundled extras.

Why It's Bundled With PhotoRec, and When You Need Which

TestDisk and PhotoRec ship together in the same download because they solve related but different problems: TestDisk repairs and rebuilds partition tables, boot sectors, and file systems so a drive becomes readable again, while PhotoRec ignores the file system entirely and scans raw disk sectors to recover individual files, photos, documents, videos, even from a drive that's been reformatted or has no recognizable partition at all.

A common recovery workflow is trying TestDisk first if a partition simply vanished or a drive won't mount, since it can often fix the structure without touching the data, and falling back to PhotoRec only when the file system itself is too damaged to repair.

Who ends up using TestDisk

TestDisk is reached for in emergencies, when a drive has lost a partition or suddenly won't boot.

  • Users recovering a partition accidentally deleted during a repartitioning mistake
  • Technicians repairing a corrupted boot sector on a drive that won't start
  • Data-recovery hobbyists pairing it with PhotoRec to pull files off a wiped drive

Before you install

A couple of things worth knowing about TestDisk before you request the link: it covers Windows, macOS and Linux, so pick the right build for the machine you're setting up. And on pricing, TestDisk is open source, so the installer is free with no trial timer, feature lock, or upsell screen to click past. It's developed and maintained by CGSecurity.

System requirements

  • WindowsWindows 10 or 11 (64-bit); older 7/8.1 builds usually still run but no longer get official support
  • macOSa recent macOS release — check the download page for the current minimum version, since Apple Silicon vs Intel builds sometimes differ
  • Linuxmost current 64-bit distributions; look for a native .deb/.rpm/AppImage or a package in your distro's own repository

Heavier workloads (large files, high-res media, big projects) will naturally want more RAM and a faster CPU/GPU than the bare minimum.

Quick steps

  1. Download the TestDisk/PhotoRec package for your OS
  2. Extract the files, no installation is required
  3. Run testdisk (or photorec) from the extracted folder to start recovery

TestDisk: the honest trade-offs

Where it's strong
  • Free and open source with no license or trial limitations at all
  • Can rebuild partition tables and boot sectors without touching existing data
  • Bundled with PhotoRec for raw file recovery when the file system is unrepairable
Where it falls short
  • Text-based menu interface has a real learning curve for new users
  • No graphical drive preview, so mistakes are easier to make than in GUI tools

This links to the official build from CGSecurity, the same package distributed at cgsecurity.org, free, open-source, and unchanged from the developer's own release.

Other Backup & Recovery downloads people search for

Browse the full Backup & Recovery category →

Keeping TestDisk up to date

Since TestDisk is open source, most Linux distributions keep it current through their own package manager. On Windows/macOS, re-running the installer from the official site (or an updater built into the app, if it has one) gets you the latest release. Sticking to the developer's own distribution channel — which is what this page links to — means you're never stuck on an old build with unpatched bugs just because a mirror site stopped updating its copy.

Want the full TestDisk guide?

Features, install steps, alternatives and more detail live on the main TestDisk page.

Open the full guide

Frequently asked questions

Do I need to know command-line commands to use TestDisk?

No, TestDisk uses a menu-driven text interface where you select options with arrow keys, not typed commands, though it does look more like a command-line tool than a typical Windows app.

What's the difference between running TestDisk and PhotoRec?

TestDisk tries to repair the partition table or boot sector so the drive works normally again; PhotoRec instead scans the raw disk to pull out individual files, which is better suited to a drive whose file system can't be repaired.