View Single Post
  #4  
Old January 4th 15, 09:43 PM posted to alt.comp.periphs.hdd,comp.sys.ibm.pc.hardware.storage
Rod Speed
external usenet poster
 
Posts: 8,559
Default How to force copy retries until finally copied all due to a dying old HDD in Linux?



"Ant" wrote in message
...
Hi!

I have a very old PATA HDD that is dying due to SMART errors and I am
trying to copy my data to another working drive, but it has problems
reading some data. Here is an example:

$ cp -R * ~/DebianPATAhddBackups/
cp: cannot stat `Files/AntsImages': Input/output error
cp: reading `Mac OS X.dmg': Input/output error
cp: failed to extend `Mac OS X.dmg': Input/output error


I assume my Debian stable was unable to copy those files. IIRC, there was
a way to retry over and over until copied fully. How do I do that?


With that many reallocated and pending sectors, it aint gunna happen.

It has been so many years I did this.