View Single Post
19 Jan 2010  
PooMan UK

Windows 7 Ultimate 64bit
 
 

This used to work in XP and Vista ... haven't come across it in win7 but you could try it .. dunno if it will work

The operating system would run ScanDisk on F: drive, stating that the computer did not shut down properly, and needs to be checked for consistency .... which is not true. The system then runs a full ScanDisk on drive F: and gives an error-free report. Then after that, each time it boots, it runs ScanDisk on F: drive all over again and finds no errors.

Well this is what Windows refers to as "setting the dirty bit" and what you have to do is unset that bit. Every time Windows starts, autochk.exe is called by the kernel to scan all volumes to check if the volume dirty bit is set. If the dirty bit is set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f verifies file system integrity and attempts to fix any problems with the volume. It is usually caused by a hard shut down or a power loss during a read-right operation on that particular drive.

You will need to open a command prompt in administrator mode by right-clicking and choosing “Run as administrator” (or use the Ctrl+Shift+Enter shortcut from the search box)



and then type

fsutil dirty query f: (substitute the letter "f" with the drive that is giving you problems)

To see the other commands for fsutil type fsutil plus /? or just type fsutil alone. Here is what you will see:

fsutil
---- Commands Supported ----

behavior Control file system behavior
dirty Manage volume dirty bit
file File specific commands
fsinfo File system information
hardlink Hardlink management
objectid Object ID management
quota Quota management
reparsepoint Reparse point management
sparse Sparse file control
usn USN management
volume Volume management

This queries the drive, and more than likely it will tell you that it is dirty. Next, type

CHKNTFS /X f:

The X tells Windows to NOT check that particular drive on the next reboot. At this time, manually reboot your computer, it should not do a Chkdsk and take you directly to Windows.

Once Windows has fully loaded, bring up another CMD prompt and type and now you want to do a Chkdsk manually by typing

Chkdsk /f /r f:

This should take you through 5 stages of the scan and will unset that dirty bit. this takes a while so be patient. Finally, type

fsutil dirty query f:

and Windows will confirm that the dirty bit is not set on that drive. It will give you this message:

Volume - f: is NOT Dirty

From here we are back to some sense of normality ....
My System SpecsSystem Spec