2 examples for ddrescue

{{ score }}
  # Basic copy from partition sdb2 to img file with 2 retries max, no split of blocks, and verbose
ddrescue -v -r2 -n /dev/sdb2 filename.img logfile.log
        
{{ score }}
  # First, copy as much as possible from sdb to sdc in one pass without retries.
ddrescue -f --no-split /dev/sdb /dev/sdc mapfile.log

# Second, try 3 times to recover data not already recovered in previous step.
ddrescue -f -r3 /dev/sdb /dev/sdc mapfile.log