Gregg H

New Member
Joined
May 3, 2017
Messages
1
I am using CreateFile to open a snapshot volume, and ReadFile to read from it. On one system I had an attempt to read 1 mb fail with a CRC error. As I understand it, the drive should be doing its own bad sector mapping, but apparently it's not. I know that NTFS has bad sector handling, does that apply only to reading/writing at the file level? In other words, by reading at the volume level am I bypassing anything the OS might do to "hide" bad sectors?
 


Solution
Windows maintains bad sector information in the MFT so if you're bypassing the file system, then you'd need to do your own bad sector checking.
Windows maintains bad sector information in the MFT so if you're bypassing the file system, then you'd need to do your own bad sector checking.
 


Solution
The 9th entry in the MFT so index 8 points to a file called $BadClus this file contains a list of all bad sectors. You would need SYSTEM access in order to read the MFT though.
 


Back
Top