testdisk(8)

testdisk8

Scan and repair disk partitions

Usage

testdisk [/log] [/debug] [/dump] [{device | image.dd | image.e01}]

testdisk /version

testdisk /list [/log]

Overview

TestDisk checks and recovers lost partitions
It works with :
- 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/ext3/ext4
- 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

It can undelete files from
- DOS/Windows FAT12, FAT16 and FAT32
- Linux ext2
- NTFS (Windows NT/2K/XP/2003/Vista/...)

For more information on how to use, please visit the wiki pages on www.cgsecurity.org

Options

/log

create a testdisk.log file

/debug

add debug information

/dump

dump raw sectors

/list

display current partitions

Releases

8 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9–10
  4. 11–12
  5. 13–Arch

Author

TestDisk 7.2, Data Recovery Utility, February 2024
Christophe GRENIER <[email protected]>
https://www.cgsecurity.org

From testdisk 7.2-5 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.