Workaround: ddrescue & "input file disappeared"

Step-by-Step descriptions of how to do things.

Workaround: ddrescue & "input file disappeared"

Postby peter_b » Mon Nov 19, 2018 12:24 am

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
  • 0

User avatar
peter_b
Chatterbox
 
Posts: 302
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3

Return to HowTo's

Who is online

Users browsing this forum: No registered users and 2 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: No registered users and 5 guests

Reputation System ©'