Você pode usar cp
como sugerido ou rsync
, mas, no caso de erro de E / S, às vezes, não funciona.
Portanto, neste caso, você pode usar a ferramenta dd
para arquivos específicos que foram corrompidos.
dd
stands for “disk duplication”. This is a command-line utility
bundled with Mac OS X. A free version for Windows is also available.
Be extremely careful, even if you are familiar with command line,
because dd can cause unrecoverable damage to your data if you don’t
specify correctly input and output. You have been warned.
The arguments of dd are straight-forward:
- if=path_of_file_with_IO_errors specifies input path
- of=path_of_clean_copy_to_create specifies output path
- conv=noerror,sync tells dd to be fault-tolerant
Your output path should not be on the same disk as the damaged file.
Actually, you shouldn’t continue using the card or disk with I/O
errors, because it’s likely to cause more problems in the future.
After recovery the data, you should scrap it or at most use it to
store unimportant stuff.
Due to I/O errors, dd can take more time to create the clean copy than
a normal copy would take.
But it’s really worth the wait, because now we have a clean file on
which we can use our arsenal of diagnostics, preview and video
recovery tools.
I/O errors are a serious business, and scrapping the card after
recovering the videos is probably the RIGHT THING TO DO. You should
also consider that some amount of footage won’t be recovered, or with
a less-than-stellar quality.
Fonte: link
Exemplo:
dd if=/Volumes/CD/broken_movie.avi of=~/Movies/broken_movie.avi conv=noerror,sync
Veja também: