ddrescue

Data recovery tool that reads data from damaged block devices. More information: <https://www.gnu.org/software/ddrescue/>.

Install

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

Data recovery tool that reads data from damaged block devices. More information: <https://www.gnu.org/software/ddrescue/>.

  • Take an image of a device, creating a log file:
    sudo ddrescue /dev/sdb path/to/image.dd path/to/log.txt
  • Clone Disk A to Disk B, creating a log file:
    sudo ddrescue --force --no-scrape /dev/sdX /dev/sdY path/to/log.txt

© tl;dr; authors and contributors