Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to copy files from a corrupted hard drive. Not all of them will copy - some have CRC errors and will stall. I would like to skip those files and continue with the rest of the copy - but the copy process stops until I click one of the options in the error window. Is there a way for me to copy everything, tell the OS to suppress that prompt and just not copy the corrupted files?

This is on Windows 7.

share|improve this question

4 Answers 4

up vote 6 down vote accepted

The fastest way would likely to be to use xcopy through a Command Prompt instance, in a context similar to:

xcopy $SOURCE $DESTINATION /C /E /Q 

The /C flag forces xcopy to ignore any issues with copying; the /E flag orders xcopy to copy folders (even empty ones), and the /Q flag makes it a quiet operation (otherwise, you'll get an entry for each thing copied).

An example would be:

xcopy d:\*.* c:\recovery /C /E /Q
share|improve this answer
    
why not cp ?? –  Vineet Menon Apr 25 '12 at 7:37
    
@VineetMenon Assuming that you mean the copy command, that's because it doesn't have the "continue in spite of errors" nature that the questioner is asking for. If you mean the Linux command cp, that's because the question is related to Windows 7. –  Rilgon Arcsinh Apr 25 '12 at 7:39
    
ooh...I meant cp as in Windows, didn't knew about non-error ignoring capabilities!! :( thx –  Vineet Menon Apr 25 '12 at 8:43
 robocopy.exe with /r:0 /w:0 

for a first pass, then increase to /r:1

share|improve this answer
    
Robocopy is part of the "Windows Server 2003 Resource Kit Tools" which you can download here: microsoft.com/download/en/details.aspx?id=17657 –  ultrasawblade Apr 25 '12 at 13:40
1  
Yes, but it's also part of Windows 7 –  fstx Apr 27 '12 at 7:48

In the past, I've used TeraCopy. Another option would be a block-level copy--for example, using dd or a disk cloning utility. Personally, I would boot from a live Linux CD and use dd_rescue/ddrescue if the data is important.

share|improve this answer

The xcopy option will fail with an "Insufficient space" error. See this link for example:

http://en.wikipedia.org/wiki/XCOPY#Limitation

I tried xcopy first as the user suggested but then I used robocopy which is included in Windows 7 and this one succeeded:

robocopy source destination /E

The /E is to recursively with empty directories.

http://en.wikipedia.org/wiki/Robocopy#Common_usage_scenarios

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.