Windows 8.1 CRC error reading volume.

Discussion in 'Programming and Scripting' started by Gregg H, May 3, 2017.

  1. Gregg H

    Gregg H New Member

    Joined:
    May 3, 2017
    Messages:
    1
    Likes Received:
    0
    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?
     
  2. Neemobeer

    Neemobeer Windows Forum Team
    Staff Member

    Joined:
    Jul 4, 2015
    Messages:
    3,158
    Likes Received:
    491
    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.
     
  3. Neemobeer

    Neemobeer Windows Forum Team
    Staff Member

    Joined:
    Jul 4, 2015
    Messages:
    3,158
    Likes Received:
    491
    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.
     
    Gregg H likes this.

Share This Page

Loading...