MCPcopy Index your code
hub / github.com/cgsecurity/testdisk

github.com/cgsecurity/testdisk @v7.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v7.2 ↗ · + Follow
2,866 symbols 7,792 edges 703 files 963 documented · 34%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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.

It searches for:

  • Sun/NeXT audio data (.au)
  • RIFF audio/video (.avi/.wav)
  • BMP bitmap (.bmp)
  • bzip2 compressed data (.bz2)
  • Source code written in C (.c)
  • Canon Raw picture (.crw)
  • Canon catalog (.ctg)
  • FAT subdirectory
  • Microsoft Office Document (.doc)
  • Nikon dsc (.dsc)
  • HTML page (.html)
  • JPEG picture (.jpg)
  • MOV video (.mov)
  • MP3 audio (MPEG ADTS, layer III, v1) (.mp3)
  • Moving Picture Experts Group video (.mpg)
  • Minolta Raw picture (.mrw)
  • Olympus Raw Format picture (.orf)
  • Portable Document Format (.pdf)
  • Perl script (.pl)
  • Portable Network Graphics (.png)
  • Raw Fujifilm picture (.raf)
  • Contax picture (.raw)
  • Rollei picture (.rdc)
  • Rich Text Format (.rtf)
  • Shell script (.sh)
  • Tar archive (.tar)
  • Tag Image File Format (.tiff)
  • Microsoft ASF (.wma)
  • Sigma/Foveon X3 raw picture (.x3f)
  • Zip archive (.zip)

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

Core symbols most depended-on inside this repo

register_header_check
called by 555
src/filegen.c
reset_file_recovery
called by 531
src/filegen.c
MALLOC
called by 285
src/common.c
screen_buffer_add
called by 174
src/intrf.c
snprintf
called by 149
src/common.c
check_command
called by 112
src/common.c
aff_copy
called by 89
src/pbanner.c
display_message
called by 73
src/intrfn.c

Shape

Function 2,189
Class 646
Method 26
Enum 5

Languages

C91%
C++9%

Modules by API surface

src/file_txt.c67 symbols
src/file_jpg.c54 symbols
src/photorec.c44 symbols
src/parti386.c43 symbols
src/analyse.c40 symbols
src/hdaccess.c39 symbols
src/fat.c33 symbols
src/rfs_dir.c32 symbols
src/filegen.c32 symbols
src/fat_adv.c31 symbols
src/intrfn.c30 symbols
src/file_doc.c30 symbols

For agents

$ claude mcp add testdisk \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact