Manually Reset or Clear Dirty Bit in Windows without using CHKDSK

One mystery that has gone unsolved for the longest time now is the dirty bit on hard drive volumes. Basically a dirty bit is just a 1 hex value located somewhere hidden on the hard drive that Microsoft has never reveal until recently. Windows will check the dirty bit to determine if a volume can contain corrupted files due to hard resetting your Windows computer with files that are still opened or when you unplug a USB flash drive that is in the midst of copying a file. When the computer boots up with the dirty bit enabled on a hard drive, you will be asked to check the disk for consistency before Windows is loaded. You can skip the disk checking by pressing any key but it will come back again the next time you start up your computer. This will usually keep happening until you let the drive be scanned or alternatively you can tell Windows to stop checking the specific drive. This method doesn’t clear the dirty bit on the drive though and simply forces Windows not to scan a drive on boot.

Checking file system on C: The type of the file system is NTFS

As for a USB flash drive or portable hard drive with the dirty bit enabled, plugging the drive into a Windows 7 computer will prompt a window that asks:

Do you want to scan and fix Removable Disk (G:)?

There might be a problem with some files on this device or disc. This can happen if you remove the device or disc before all files have been written to it.

If you close the popup or select “Continue without scanning”, then this popup will continue to haunt you until you decided to click the recommended Scan and Fix option. There are guides on how to disable the scan and fix window by disabling the Shell Hardware Detection service but that really isn’t a viable solution since you’re telling Windows to ignore the problem rather than fixing the problem itself.

Do you want to scan and fix Removable Disk

There is a tool called fsutil.exe in Windows which can be used to check if a volume is dirty and can even be used to manually set a drive as dirty which will force the requests to scan it, but weirdly it cannot be used to clear the dirty bit. Someone has already reverse engineered the fsutil.exe to confirm it.

fsutil.exe dirty

So there seems to be 2 solutions to clear the dirty bit which is to trust the Microsoft disk checking utility by completing a check disk OR you can move the data away from the volume, format the drive and then move it back. Going with the first option would risk losing some of your files when the scan disk decides to turn them into CHK files. The second option is safer but takes a lot of time if you have a lot of files to move.

Here is a third method, and we’ve spent several hours locating the dirty bit on NTFS and FAT16/32 file systems so that we can manually reset or clear the dirty bit with a hex editor that supports disk editing. As we said earlier, the dirty bit is simply 1 hex value on the disc volume that needs to be reset and is easy to change again in future once you know how.

We’ve tried a total of 13 different hex editors which are wxHexEditor, HxD, 010 Editor, CI Hex Viewer, iBored, HexEdit Pro, Hackman Suite, DMDE, Hexprobe, FlexHEX, ADRC Hard Disk Hex Editor, WinHex and Hex Workshop. Only DMDE, WinHex and Hex Workshop were the editors able to write the data back to the disc but the last two are shareware tools. HxD is certainly one of the easiest tools to use and can make the needed changes but is a bit slower because it needs to manually search the drive for some values.

On Page 2 we’ll show how to clear the dirty bit for NTFS, FAT32, FAT16 and locked volumes.

You might also like:

42 Comments - Write a Comment

  1. mindz 21 hours ago
  2. Arslan 2 weeks ago
  3. Alexa J 1 month ago
  4. Georg 3 months ago
    • HAL9000 3 months ago
  5. Nani 3 months ago
  6. Paul Thomsen 1 year ago
  7. Clément 1 year ago
  8. ykc 1 year ago
  9. Phil 1 year ago
  10. Peter 1 year ago
  11. Cecilia Bartoli 2 years ago
  12. akj 2 years ago
  13. Darlene 2 years ago
  14. joe 2 years ago
    • HAL9000 2 years ago
  15. Dvorak 2 years ago
  16. Sport 2 years ago
  17. Swiftkidd 3 years ago
    • HAL9000 3 years ago
  18. Tony Sinclair 3 years ago
  19. Eric 3 years ago
  20. HRK 3 years ago
    • HAL9000 3 years ago
  21. Robert 3 years ago
  22. akaNeo 3 years ago
    • Laban 1 year ago
      • akaNeo 1 year ago
  23. plow_dog 3 years ago
  24. Nathan 3 years ago
  25. Untitled 3 years ago
    • HAL9000 3 years ago
  26. SuperMax11 3 years ago
    • HAL9000 3 years ago
  27. Don Cross 3 years ago
  28. Frank 3 years ago
    • MOSES 3 years ago
  29. Happy_Jack 4 years ago
  30. fabian 4 years ago
  31. Josey Mathew 4 years ago
  32. ahmadmaher 4 years ago
  33. no name 4 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please ask in our forum or contact us directly.