I am trying to copy files from an old drive to a new drive. The problem is that on the old disk there are (I can only guess) some damaged disk spaces, and any attempt to read from some of these files leads to what seems like some kind of endless loop. There are a lot of problematic files in the files I want to copy, and when it gets to the first one, my application just sits there, doing nothing until I stop it. I was hoping that I could get around this by writing a special program for recursing through directories, copy the files one by one and catch any errors that occur in separate copy operations, but never get to that — it just sits there and sits there and sits there. The only way to stop this is to physically disconnect the problematic hard drive - do not stop the program,trying to finish a process or something like that.
I am somewhat puzzled by how to proceed. Given that such an error occurs, is there a way to automate this process? Does anyone have experience with this?
source
share