Question: I’m recovering data from an hdd using ddrescue. With “retry” disabled, it takes roughly 30 seconds for every unreadable sector. The hdd has tens of thousands of bad sectors and the process is taking forever.
Can I shorten the read error timeout to, say, 3 seconds? Perhaps with ATA commands? Kernel options? Firmware hacks?
smartctl info:
Device Model: ?Hitachi HTS542525K9A300Firmware Version: BBFOC3EPUser Capacity: ?250,059,350,016 bytesATA Version is: ?8ATA Standard is: ?ATA-8-ACS revision 3f
Answer: On linux, /sys/block/
In the same directory, there is a eh_timeout value which is used for the SCSI commands TEST UNIT READY and REQUEST SENSE, so isn’t what you’re looking for.
As root, echo 1 > /sys/block/
As a non-root user, with sudo privileges, sudo bash -c “echo 1 > /sys/block/