HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

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

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandreadsclirecoverytoolddrescuedatathat
linux

Problem

How to use the ddrescue command: Data recovery tool that reads data from damaged block devices. More information: <https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html#Invoking-ddrescue>.

Solution

ddrescue — Data recovery tool that reads data from damaged block devices. More information: <https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html#Invoking-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 {{[-f|--force]}} {{[-n|--no-scrape]}} {{/dev/sdX}} {{/dev/sdY}} {{path/to/log.txt}}

Code Snippets

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 {{[-f|--force]}} {{[-n|--no-scrape]}} {{/dev/sdX}} {{/dev/sdY}} {{path/to/log.txt}}

Context

tldr-pages: linux/ddrescue

Revisions (0)

No revisions yet.