I connected an external USB drive to my computer. According to dmesg it is:

scsi 4:0:0:0: Direct-Access     DMI      WD10EARS-00Y5B1  1.00 PQ: 0 ANSI: 4

The case says its a Sharkoon Rapid Case eSATA, but the drive itself seems to be a Western Digital 1TB. I want to copy some files to it and used Windows XP as well as a GNU/Linux live CD. Within Windows I used the explorer to copy the files and with Linux I used Nautilus or cp -r .... When I checked the copy I realised that some images look strange. I dug a bit further and used md5sum to compare original and copy. According to that some files on the USB drive had different hashes. When I tried copying again some files were different again, but some, which were different before, had the same content (and md5sum) as the original file. I have no idea, where to look for a solution. Have you encountered such problems? What can I do to circumvent it?

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

As this happens on both Windows & linux, I suspect there is a hardware issue, either with the USB-to-SATA controler in the case, or with the HDD itself.

link|improve this answer
Sure, there is no reason to have a copy different from the original unless maybe if your disk is encrypted or protected as I saw a problem like that some 15 years ago or more (windows 3.1) due to a bad (or badly configured) protection/encryption software. (but in this case the files were not only different... they were totally unreadable, even when supplying the good password to decrypt) – laurent Aug 25 '10 at 21:20
feedback

Instead of the cp command you could use the rsync command. I'm not really sure what the issue, but from rsync's man file:

rsync always verifies that each transferred file was correctly reconstructed on the receiving side by checking a whole-file checksum that is generated as the file is transferred

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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