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?
Use a loopback device:
sudo losetup /dev/loop3 /dev/sdf
sudo ddrescue -f /dev/sdf /dev/loop3 my.log
--same-file. ā Mingye Wang May 27 '23 at 17:00