cgsecurity/testdisk

TestDisk & PhotoRec

C

2,635

3,418 commits

updated Oct 4, 2026

See the code

README

TestDisk checks the partition and boot sectors of your disks. It is very useful in recovering lost partitions.

It works with:

  • DOS/Windows FAT12, FAT16 and FAT32
  • NTFS (Windows NT/2K/XP)
  • Linux Ext2 and Ext3
  • BeFS (BeOS)
  • BSD disklabel (FreeBSD/OpenBSD/NetBSD)
  • CramFS (Compressed File System)
  • HFS and HFS+, Hierarchical File System
  • JFS, IBM's Journaled File System
  • Linux Raid
  • Linux Swap (versions 1 and 2)
  • LVM and LVM2, Linux Logical Volume Manager
  • Netware NSS
  • ReiserFS 3.5, 3.6 and 4
  • Sun Solaris i386 disklabel
  • UFS and UFS2 (Sun/BSD/...)
  • XFS, SGI's Journaled File System

PhotoRec is file data recovery software designed to recover lost pictures from digital camera memory or even hard disks. It has been extended to search also for non audio/video headers.

The whole list of file formats recovered by PhotoRec contains more than 480 file extensions (about 300 file families).

TestDisk and PhotoRec run on:

  • DOS, Win 9x
  • Windows
  • Linux
  • FreeBSD, NetBSD, OpenBSD
  • SunOS

Both are licensed under the GNU General Public License.

See the latest documentation To build from source, read INSTALL.

Christophe GRENIER grenier@cgsecurity.org https://www.cgsecurity.org/

Build Status

datacarving
datarecovery
disk
filesystem
photorec
testdisk

cgsecurity/testdisk

TestDisk & PhotoRec

C

2,635

3,418 commits

updated Oct 4, 2026

See the code

README

TestDisk checks the partition and boot sectors of your disks. It is very useful in recovering lost partitions.

It works with:

  • DOS/Windows FAT12, FAT16 and FAT32
  • NTFS (Windows NT/2K/XP)
  • Linux Ext2 and Ext3
  • BeFS (BeOS)
  • BSD disklabel (FreeBSD/OpenBSD/NetBSD)
  • CramFS (Compressed File System)
  • HFS and HFS+, Hierarchical File System
  • JFS, IBM's Journaled File System
  • Linux Raid
  • Linux Swap (versions 1 and 2)
  • LVM and LVM2, Linux Logical Volume Manager
  • Netware NSS
  • ReiserFS 3.5, 3.6 and 4
  • Sun Solaris i386 disklabel
  • UFS and UFS2 (Sun/BSD/...)
  • XFS, SGI's Journaled File System

PhotoRec is file data recovery software designed to recover lost pictures from digital camera memory or even hard disks. It has been extended to search also for non audio/video headers.

The whole list of file formats recovered by PhotoRec contains more than 480 file extensions (about 300 file families).

TestDisk and PhotoRec run on:

  • DOS, Win 9x
  • Windows
  • Linux
  • FreeBSD, NetBSD, OpenBSD
  • SunOS

Both are licensed under the GNU General Public License.

See the latest documentation To build from source, read INSTALL.

Christophe GRENIER grenier@cgsecurity.org https://www.cgsecurity.org/

Build Status

datacarving
datarecovery
disk
filesystem
photorec
testdisk

Project health

Overall

4.0/10

Maintained

9/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 28)

Léo Colombaro

282 followers · starred Dec 2019

Jared Burrows

507 followers · starred Oct 2024

Valdnet

22 followers · starred Nov 2021

Alex Petrov

446 followers · starred Jun 2017