find /sys/devices -name timeout /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/timeout /sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/timeout /sys/devices/pci0000:00/0000:00:1f.2/host3/target3:0:0/3:0:0:0/timeout As I remember, some time ago somewhere in the sources was hardcoded 3 retries. 24.11.2010 20:04, Atila ÐÐÑÐÑ:
HI, I'm trying to recover data from a damaged hard disk, which has plenty of bad sectors, but also has many good ones. The problem is that when a bad sector is found, the drive keeps trying to read it, instead of giving up and just move on, so the average data read rate is around 5Kb/s. With such rates, it will take more than an year to finish. Since I'm using gnu ddrescue (which logs bad sectors, so one can try then again later), my goal is not waste time with errors, leaving the retries to a second round. So, my first attempt was to drastically lower the timeouts in libata-eh.c. It seems to have improved a little, but I'm not having more than 12Kb/s. Is there any way to minimize retries and make errors finish faster? Atila Romero -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
-- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html