Overview and purpose

TestDisk is a free, open-source utility from CGSecurity designed to restore access to damaged or missing drive partitions. Its primary aim is to help users retrieve partitions and repair drives so previously inaccessible data can be reached again. It’s especially useful when partitions have been removed accidentally or corrupted by malware or disk errors.

Supported hardware and formats

  • NTFS (Windows)
  • FAT family (FAT12/FAT16/FAT32)
  • ext (Linux filesystems)
  • APFS (macOS)

The tool works with both internal and external drives, SSDs and HDDs, USB flash drives, and many other storage devices.

When this tool is useful

TestDisk is a good option if you encounter any of the following:

  • A partition table has been damaged and the OS can’t mount the partition
  • A partition was erased by mistake and needs recovery
  • A virus or other corruption prevents access to stored files
  • A boot drive won’t start and needs repair to become bootable again

Using the program (command-line workflow)

Note: TestDisk runs entirely in a text-based terminal — there’s no graphical interface.

  1. Start TestDisk and choose the Create entry to generate a new recovery session.
  2. Select the physical disk you want inspected from the list of detected devices.
  3. Pick the partition table type appropriate for the system (Windows, macOS, or Linux).
  4. Launch a scan and wait for it to complete; scanning may take time depending on drive size.
  5. Examine the scan results for lost or corrupt partitions and mark the one you want to recover.

The navigation is menu-driven inside the terminal, so basic keyboard navigation and reading prompts are usually sufficient to proceed.

Retrieving individual files

  • From the main menus, open the Advanced options for the target drive.
  • Choose the Undelete (or equivalent) command to display recoverable files.
  • Browse the listed files, mark the items you need, and copy them to another safe location.

This mode is useful when you only need specific files rather than full partition recovery.

Final notes and recommendations

If you’re comfortable using a terminal, TestDisk is a powerful and reliable option to restore partitions or repair boot sectors. Always copy recovered data to a different drive to avoid overwriting remaining recoverable information, and consider creating a full disk image before attempting repairs on a failing device.

Technical

Title
TestDisk
Requirements
  • Windows
  • Mac
Language
No language has been specified.
Available languages
License
  • Free
Latest update
2026-01-12
Author
CGSecurity

TestDisk for other platforms

Other Useful Business Software
Stop Storing Third-Party Tokens in Your Database Icon
Stop Storing Third-Party Tokens in Your Database

Auth0 Token Vault handles secure token storage, exchange, and refresh for external providers so you don't have to build it yourself.

Rolling your own OAuth token storage can be a security liability. Token Vault securely stores access and refresh tokens from federated providers and handles exchange and renewal automatically. Connected accounts, refresh exchange, and privileged worker flows included.
Try Auth0 for Free
Rate This App
Login To Rate This App

User Reviews

Be the first to post a review of TestDisk!