Download TestDisk
Free partition recovery and disk repair

TestDisk

Free partition recovery and disk repair — recover lost partitions, fix boot sectors

TestDisk partition recovery and disk repair

Download

Latest Version

Free download · Portable · Windows, Mac, Linux

TestDisk is a free, open-source data recovery tool designed to recover lost partitions and make non-booting disks bootable again. It repairs partition tables, rebuilds FAT and NTFS boot sectors, and can undelete files on supported file systems. Use it when faulty software, viruses, or human error have damaged or deleted your partition table.

Features

Explore the capabilities that make TestDisk the trusted choice for partition recovery and disk repair.

Partition Table Repair:

  • Fix corrupted partition tables and recover deleted partitions so your data becomes accessible again.
  • Analyze disk layout, detect partition table type, and search for lost or damaged structures.
  • Restore access to drives where mistaken repartitioning or table damage has hidden your data.

Boot Sector Recovery:

  • Rebuild NTFS boot sector and recover FAT12/FAT16/FAT32 boot sector from backup when available.
  • Fix FAT tables and repair boot structures to make non-booting disks bootable again.
  • Address damage caused by faulty software, certain viruses, or accidental overwrites.

File Undelete & Copy:

  • Undelete files from FAT, exFAT, NTFS, and ext2 file systems.
  • Copy files from deleted or damaged partitions when the file system is still largely intact.
  • Use the Advanced menu to recover files before attempting deeper repairs that might overwrite data.

Open-Source & Portable:

  • Licensed under GNU GPL; source code is available for review and audit.
  • No installation required — run from a folder or USB drive for safe recovery workflows.
  • Multi-platform: Windows, macOS, and Linux builds available for technicians and advanced users.

Safe recovery practices

Before running TestDisk, stop writing to the affected disk to avoid overwriting lost data. Run from a different drive or boot from removable media when recovering the system disk.

Partition table types supported by TestDisk

Intel (MBR)
GPT
Mac partition map
BSD disklabel
Sun Solaris

Typical TestDisk workflow

Create log → Select disk → Choose partition table type
→ Analyze → Quick Search / Deeper Search
→ Write partition table (when correct structure found)
→ Reboot or mount to verify

Download TestDisk only from the official CGSecurity project or trusted repositories. Verify package integrity when possible and follow the documentation for your partition table type and file system.

TestDisk screenshots

Click a thumbnail to enlarge, then use arrows to scroll left or right: