Urgent: How to read CRC of the single hdd sector?
Hi all,
I need to read the CRC value of the desired sector on hard disk. I DON'T need just to detect was there any mistake reading that sector, I just need to read the CRC value of the selected sector without reading the entire sector and calculating the CRC value by myself, ok?
Thank you all who help me with this, a lot!
burek.
Sometimes being old is good...
In the very old days, sectors/clusters/tracks were physically written as SDLC "frames", ie, <StartOfData>data<CRC><EndOfData>. The SDLC chips had a
hardware accumulator such that the entire frame's CRC should add up to some
constant value (I think - this is from the '70s!). When clustering came along the cluster became the smallest physical unit of data that could be read, and I think CRC's became a CRC on the cluster, with no CRC on the sector. Now-adays
I suspect there's only one long CRC on the track. Either way, if the CRC is
still present at the sector level, you have to physically read the sector to get the CRC from the end of it... :)