Package testdisk

Tool to check and undelete partition, PhotoRec recovers lost files

http://www.cgsecurity.org/wiki/TestDisk

Tool to check and undelete partition. Works with FAT12, FAT16, FAT32,
NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS, Linux Raid, Linux
Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
PhotoRec is a signature based file recovery utility. It handles more than
440 file formats including JPG, MSOffice, OpenOffice documents.

System Administration
Command Description
fidentify Determine file type using PhotoRec database
photorec Recover lost files from harddisk, digital camera and cdrom
testdisk Scan and repair disk partitions