# TestDisk

### From CGSecurity

TestDisk

TestDisk is OpenSource software and is licensed under the GNU Public License (GPL).

TestDisk is a powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting your Partition Table). Partition table recovery using TestDisk is really easy.

## Operating systems

TestDisk can run under

- DOS (either real or in a Windows 9x DOS-box),
- Windows (NT4, 2000, XP, 2003),
- Linux,
- FreeBSD, NetBSD, OpenBSD,
- SunOS and
- MacOS

Source files and precompiled binary executables are available for DOS, Win32, MacOSX and Linux from the download page

## Filesystems

TestDisk can find lost partitions for all of these file systems:

- BeFS ( BeOS )
- BSD disklabel ( FreeBSD/OpenBSD/NetBSD )
- CramFS, Compressed File System
- DOS/Windows FAT12, FAT16 and FAT32
- HFS and HFS+, Hierarchical File System
- JFS, IBM's Journaled File System
- Linux Ext2 and Ext3
- Linux Raid
  - RAID 1: mirroring
  - RAID 4: striped array with parity device
  - RAID 5: striped array with distributed parity information
  - RAID 6: striped array with distributed dual redundancy information
- Linux Swap (versions 1 and 2)
- LVM and LVM2, Linux Logical Volume Manager
- Mac partition map
- Novell Storage Services NSS
- NTFS ( Windows NT/2K/XP/2003/Vista )
- ReiserFS 3.5, 3.6 and 4
- Sun Solaris i386 disklabel
- Unix File System UFS and UFS2 (Sun/BSD/...)
- XFS, SGI's Journaled File System

## Summary

TestDisk queries the BIOS or the OS in order to find the Hard Disks and their characteristics ( LBA size and CHS geometry). TestDisk does a quick check of your disk's structure and compares it with your Partition Table for entry errors. If the Partition Table has entry errors, TestDisk can repair them. If you have missing partitions or a completely empty Partition Table, TestDisk can search for partitions and create a new Table or even a new MBR if necessary.

However, it's up to the user to look over the list of possible partitions found by TestDisk and to select the one(s) which were being used just before the drive failed to boot or the partition(s) were lost. In some cases, especially after initiating a detailed search for lost partitions, TestDisk may show partition data which is simply from the remnants of a partition that had been deleted and overwritten long ago.

TestDisk has features for both novices and experts. For those who know little or nothing about data recovery techniques, TestDisk can be used to collect detailed information about a non-booting drive which can then be sent to a tech for further analysis. Those more familiar with such procedures should find TestDisk a handy tool in performing onsite recovery.

## Documentation

Documentation de TestDisk en Français.
German TestDisk documentation.
Spanish TestDisk documentation.

- How to get TestDisk
  - Download - Binary executables and source files are available for DOS, Win32, MacOSX and Linux.
  - TestDisk compilation
  - TestDisk and Live rescue cd
- Working with special media
  - Recover Damaged Hard Disks (bad sectors)
  - Disk image
  - CD-R/CR-RW/DVD...
- Using TestDisk
  - OS specific notes
  - Running the TestDisk Program
  - Recovery examples
  - Scripted run
  - Support
- After using TestDisk
- Technical Notes
  - Intel Partition Table
  - Microsoft Fdisk
  - SMART monitoring
  - Norton GoBack
  - Current Limitations
- How to help
- TestDisk & PhotoRec In The News
- TestDisk Team

To recover lost pictures or files from digital camera or harddisk, run the PhotoRec command.

TestDisk home: http://www.cgsecurity.org.
Christophe GRENIER grenier@cgsecurity.org

Category: Data Recovery

##### Data Recovery

- TestDisk
- PhotoRec
- download