0

ddrescue will complain if the source device is the same as the destination device:

ddrescue: Infile and outfile are the same.

Even -f cannot convince ddrescue to do what I mean.

How can I trick ddrescue to write to the same device?

AdminBee
  • 22,803
Ole Tange
  • 35,514

1 Answers1

0

Use a loopback device:

sudo losetup /dev/loop3 /dev/sdf
sudo ddrescue -f /dev/sdf /dev/loop3 my.log
Ole Tange
  • 35,514