TestDisk
Open sourceActive
TestDisk is a free, open-source data recovery tool from CGSecurity, distributed together with PhotoRec. It recovers lost partitions, repairs partition tables and boot sectors, and undeletes files from several file systems. Its documentation notes that FAT file systems are commonly found on flash memory cards, digital cameras and other portable devices, which is where it is relevant to mobile examinations; it does not describe phone-specific features.
Facts
| Website | cgsecurity.org |
|---|---|
| Vendor | CGSecurity (Christophe Grenier) |
| Licence | Open source (GPL-2.0-or-later (per the CGSecurity wiki, 'GNU General Public License (GPL v2+)'; source file headers such as src/testdisk.c state 'either version 2 of the License, or (at your option) any later version')) |
| Category | Recovery and carving |
| Functions | Recovery |
| Targets | Memory cards, Android |
| Runs on | Windows, Linux, macOS |
| Pricing | Free [cgsecurity.org] |
| Users | Private recovery, Open-source DFIR community |
| Last activity | 2026-10 · Repository commit 2026-10-25; latest stable release 7.2 (2024-02-22), 7.3-WIP beta listed [github.com] |
| GitHub activity | cgsecurity/testdisk · 2,675 stars · last push 2026-11-08 · checked 2026-11-10 |
Capabilities
- Fixes partition tables and recovers deleted partitions; rebuilds or recovers FAT and NTFS boot sectors; fixes the NTFS MFT using the MFT mirror; and locates ext2/ext3/ext4 backup superblocks. [cgsecurity.org]
- Undeletes files from FAT, exFAT, NTFS and ext2 file systems and copies files from deleted FAT, exFAT, NTFS and ext2/ext3/ext4 partitions. [cgsecurity.org]
- The wiki notes that FAT file systems are commonly found on flash memory cards, digital cameras and many other portable devices. [cgsecurity.org]
- Runs under DOS, Windows, Linux, FreeBSD/NetBSD/OpenBSD, SunOS and macOS. [cgsecurity.org]
Limitations
- The TestDisk wiki lists the file systems in which it can find lost partitions (including FAT12/16/32, exFAT, NTFS, ext2/3/4, btrfs, HFS/HFS+/HFSX, APFS, XFS and ZFS); neither that list nor the repository README names F2FS. [cgsecurity.org]
- Its FAQ states TestDisk and PhotoRec can recover data from direct-attached and SAN storage, and lists a phone in MTP mode under network-attached storage, which needs the tools to run on the server itself. [cgsecurity.org]
Links
Related tools
- PhotoRec · Recovery and carving
- The Sleuth Kit · Analysis
Sources
- TestDisk - CGSecurity wiki (cgsecurity.org)
- PhotoRec FAQ - CGSecurity wiki (cgsecurity.org)
- TestDisk and PhotoRec downloads (cgsecurity.org)
- cgsecurity/testdisk repository and README (github.com)
- GitHub: cgsecurity/testdisk commits (github.com)
- testdisk.c source file header (licence notice) (github.com)
Reviewed . Spotted an error? See the corrections policy.