I've got an interesting problem...
A friend asked me to recover data from a failing external (usb) hard drive, which i've been doing using the ddrescue utility. However, every few hours the drive stops responding (this is why I'm recovering the data) and read speed drops to 0. At this point if i unplug it for 5 mins and plug it back in I can rerun the ddrescue and continue recovering. Im wondering if there is some way to automate this as the read speed is quite slow and there is a lot of data to recover.
I can power down the drive using:
udisks --unmount /dev/sdd1 udisks --detach /dev/sdd
But I have not found a way to spin up the drive again after its been "detached"
The other problem I havent figured out yet is some way to figure out when the read speed has dropped to 0 and its time to do this powercycle.
Anyone have any ideas?