Re: copying files with bad CRCs



Previously yawnmoth <terra1024@xxxxxxxxx> wrote:

Rod Speed wrote:
yawnmoth <terra1024@xxxxxxxxx> wrote:
Say I wanted to copy a *.avi video file (xvid encoded; it's currently
on a hard drive)) but was told (by Windows XP) I couldn't because it
had a bad CRC. Is there a way I could sorta just copy it in spite of
the bad CRC?

The reason I ask is because xvid (and MPEG1/2/4, in general) is a
rather resiliant format. A single corrupt byte may just mean that one
frame is bad. If every 20th frame is a keyframes (ie. i-frames, or
whatever), this means that only 20 - (frame position) % 20 frames are
bad. If there are 100,000+ frames, having less then 20 bad frames is
fairly insignificant.

Trouble is that Win is saying you have a bad
sector in that file. Thats quite a few bytes, 512
The fact that a sectors CRC isn't what it should be doesn't necessarily
mean that all the bytes are corrupted, does it? I mean, wouldn't just
one of those bytes being corrupted result in a CRC mismatch?

A single bit would be enough. However since HDDs do not really use
CRC but a more elaboraate ECC, you will likely get some real
corruption. If you can get the disk to give the raw data to you.

In SCSI there is a command to read the raw data. There might be one
in ATA too. Might mean that you have to do some programming
yourself. But the easiest approach is to try to do without the
defective sector.

Arno
.



Relevant Pages

  • Re: copying files with bad CRCs
    ... had a bad CRC. ... frame is bad. ... CRC errors are not sector errors. ... Depends on what IDE command is issued to the drive. ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: copying files with bad CRCs
    ... had a bad CRC. ... frame is bad. ... For the defective sector itself, ... approach should work with Windows also. ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: crc on only data or including the address
    ... >For that i am implementing ethernet packet generator in the fpga. ... >am sending 64 bytes of frame from the fpga with the most significand ... Actually, what is sent is the FCS, which is bit reversed ... >2) Is CRC implemented on only data or on whole frame? ...
    (comp.arch.fpga)
  • Re: Suggestions for custom application-layer protocol?
    ... CRC is detected, the end of the first frame is known and it can now be ... The slave only needs to be able to ... updated CRC accumulator must be compared with the two most recently ...
    (comp.os.linux.embedded)
  • Re: Suggestions for custom application-layer protocol?
    ... CRC is detected, the end of the first frame is known and it can now be ... The slave only needs to be able to ... updated CRC accumulator must be compared with the two most recently ...
    (comp.unix.programmer)