Workaround: ddrescue & "input file disappeared"

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 338
Joined: Tue Nov 12, 2013 2:05 am

Workaround: ddrescue & "input file disappeared"

Post by peter_b »

Thanks to Ketil Froyn's feature suggestion for ddrescue, here's a workaround for ddrescue exiting when problematic source device "disappears" :(

If ddrescue exits with the following error message, although the input device can be read again a few seconds later...
ddrescue: input file disappeared: No such file or directory
...use this command to "rudely" restart ddrescue forever, when it exits:

Code: Select all

$ while true; do ddrescue /dev/sdb sdb.dd sdb.log; sleep 10; done
You have to kill the loop manually, once ddrescue has finished:

Code: Select all

Ctrl + C
Post Reply