Recovery
Tools to copy data off failing disks, find lost partitions and files, and back up or restore file systems.
On a failing disk, copy first, repair later: every read of a dying disk may be one of the last. Image it with ddrescue onto a healthy disk, then run the other tools on the image (see losetup).
| Tool | For |
|---|---|
| ddrescue | copying a failing disk, skipping and retrying bad areas |
| testdisk | finding lost partitions, repairing boot sectors, undeleting |
| photorec | recovering files by their content, whatever the file system |
| extundelete | undeleting files on ext3/ext4 |
| partclone | imaging only the used blocks of a file system |
| fsarchiver | backing up and restoring file systems as archives |
| gpart | guessing a lost MBR partition table |
| restic, borg | getting files back from backups |