Page 1 of 1

Apparent failure to actually verify copies

Posted: 06 Jul 2014 05:24
by Papoulka
.
I'm running XY Pro v14.20.0300 (ie the latest) under Windows 7 32-bit.

I was copying MP3 files to a cheap player, which plugs into a USB2 port and appears as an external drive. All very standard. I use FastCopy (terrific program) for all but the simplest jobs, with "Verify" enabled. I've been told that this is largely a waste of time, since Windows does a CRC verification anyway. But I do it, and sure enough - there never are any failures.

FastCopy copied the several hundred files, but reported verification errors on dozens of them. Surprised, I used Beyond Compare (great program) to check source and destination "by CRC" comparison. It found no errors. I became more surprised.

[Digression: I guess the CRC that Windows wrote was from the data as it was being written to the target disk; not from a read-back].

So then I had BC do a byte-by-byte comparison. It now revealed the same dozens of errors that FastCopy had reported. A manual hash check of several of these files individually confirmed that source <> target. Repeated copy attempts under BC failed, always reporting good CRC matches but bad byte-to-byte.

Now I've been vaguely considering moving to XY's Custom Copy, and it is very rare to have a test bed for "bad copies". So I tried copying the same files again using XY Custom Copy with Byte-to-byte verification. I attach a picture of the settings I used.

Unfortunately - and this was the biggest surprise - XY performed the copies without reporting any errors. And yet both Beyond Compare byte-for-byte and manual hash checks show that still, source <> target. That is, the copies made by XY had the same kind of errors as the copies made by FC and BC.

So it looks like XY is not really doing a byte-for-byte readback after writing, even when that's requested.

Re: Apparent failure to actually verify copies

Posted: 06 Jul 2014 06:01
by RalphM
Did you see the warning on your config screen?
Maybe update your XYCopy.exe to the latest version and try again.

Re: Apparent failure to actually verify copies

Posted: 06 Jul 2014 06:53
by Papoulka
I saw that but didn't think it would matter. I've updated XYCopy.exe now, and get the same results.

HOWEVER, another thing occurs to me: maybe the MP3 flash drive is internally scrambling the data AFTER it has been correctly written and byte-to-byte verified.

I think FastCopy does its verification after ALL files have been written. If XY does it after EACH file has been written, and if a few seconds after that the flash drive loses its marbles, it would explain everything I've seen.

So - there could be no problem at all with XY, only with the flash drive, and it only shows up because of a unique timing situation. I rather think that's the case, but the symptoms were confusing.

Re: Apparent failure to actually verify copies

Posted: 06 Jul 2014 07:12
by Enternal
Very very interesting. FastCopy does verification check by CRC by default but can be changed to MD5. I'm guessing that's what you're using which is why errors were picked up since it seems CRC is showing up as valid.

Anyway, have you tried copying using XYCopy using all the other available hashes to see if the other ones are doing what it's supposed to do? All we supposedly know right now is that Byte-to-Byte is possibly not working as expected. MD5 should at least show that there are errors. Same thing for SHA512 that is more complicated than MD5.

I remember reading about verification can be a pain since software using it must be careful on how they verify since they might end up only verifying the Windows cache of the file copied rather than what's actually written on the disk.
http://blogs.msdn.com/b/oldnewthing/arc ... 50645.aspx

Re: Apparent failure to actually verify copies

Posted: 06 Jul 2014 07:28
by Papoulka
.
Writing my previous post made me think more. If the flash drive was scrambling the data after a good write, maybe it would keep on doing so. That appears to be the case: the more time I let pass, the more errors I find when Beyond Compare does a byte-for-byte comparison.

So now the most likely explanation is that the data is written correctly by all the programs, but quickly starts going bad. Depending on when the byte-to-byte comparison is done, the errors may or may not be picked up.

This looks like a false alarm, I'm glad to say.

Re: Apparent failure to actually verify copies

Posted: 22 Aug 2014 05:02
by Linkeree
To OP: Have you checked if you got the same problem with the same operation with the same files to different USB flash disk or hard drive?
I used to have copying problems with cheap/fake brand USB disk.

Has this issue been solved?

Thanks

Re: Apparent failure to actually verify copies

Posted: 30 Aug 2014 05:30
by Papoulka
@Linkeree

Yes, solved. False alarm regarding XY. The solution was eventually finding out that the written data stayed good long enough to convince XY, and WIndows, and probably most other copy programs that everything was OK. Then the data would fade away. FastCopy caught it because it was still doing its read-back verification, which takes a while with 8GB over USB2.