photorec

Deleted file recovery tool. It is recommended to write recovered files to a disk separate to the one being recovered from. More information: <https://www.cgsecurity.org/wiki/PhotoRec>.

Install

All systems
curl cmd.cat/photorec.sh
Debian Debian
apt-get install testdisk
Ubuntu
apt-get install testdisk
Alpine
apk add testdisk
Arch Arch Linux
pacman -S testdisk
image/svg+xml Kali Linux
apt-get install testdisk
Fedora
dnf install testdisk
Windows (WSL2)
sudo apt-get update sudo apt-get install testdisk
OS X
brew install testdisk
Raspbian
apt-get install testdisk
Docker
docker run cmd.cat/photorec photorec powered by Commando

Deleted file recovery tool. It is recommended to write recovered files to a disk separate to the one being recovered from. More information: <https://www.cgsecurity.org/wiki/PhotoRec>.

  • Run PhotoRec on a specific device:
    sudo photorec /dev/sdb
  • Run PhotoRec on a disk image (`image.dd`):
    sudo photorec path/to/image.dd

© tl;dr; authors and contributors