Table 4: Chkntfs Examples
Command
|
Description
|
chkntfs /x c:
|
Disables Chkdsk from running on drive C.
|
chkntfs /x d: e:
|
Disables Chkdsk from running on drives D and E.
|
The chkntfs /x commands are not cumulative. The command overwrites any previous drive exclusions that have been established. In the example chkntfs /x d: e:, Chkntfs disables Chkdsk from running only on drives D and E; drive C is still checked for the dirty bit.
The Chkntfs utility also modifies the BootExecute value in the system registry. The BootExecute entry is located in the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL
\Session Manager
The default value is:
BootExecute:REG_MULTI_SZ:autocheck autochk *
The chkntfs /x command also adds a /k command-line switch before the asterisk. The /k option excludes volumes from being checked for the dirty bit.
For example, the command chkntfs /x d: modifies the default registry entry value to autocheck autochk /k:d *.
The chkdsk /f schedules Autochk to run during the next start-up process by setting a key in the registry. The chkntfs /x command disables the checking for this registry key. Autochk does not run during the start-up process on volumes that are excluded from dirty-bit checking by Chkntfs.
To run chkdsk /f on a drive that has been excluded by the Chkntfs utility, run chkntfs /d to return the system to its normal state, or edit the BootExecute value in the registry and remove the applicable drive letter from the /k command-line switch.
Chkntfs treats all drives as local to the node. This includes server clusters that use a shared drive array.
Additional values that can be found in the BootExecute entry are shown in Table 5.
Table 5: BootExecute Entries
Registry value
|
Function
|
/p \??\Volume:
|
Schedules an unconditional Chkdsk against the volume.
|
/p \??\Volume{GUID}
|
Schedules an unconditional Chkdsk against a volume mount point.
|
/k:Volume *
|
Excludes Chkdsk from running against the volume.
|
/m \??\Volume:
|
Tells Autochk to look only at the dirty bit on the volume, and if it is set, to run Chkdsk.
|
Table 6: Command Examples
Sample command
|
Resulting registry entry
|
chkdsk c: /f
|
Autocheck AUTOCHK /p \??\C:
|
chkdsk c:\mountpoint /f
|
Autocheck AUTOCHK /p \??\C{GUID}
|
chkntfs d: e: /x
|
Autocheck AUTOCHK /k:D /k:E *
|
chkntfs g: /c
|
Autocheck AUTOCHK /m \??\G:
|
Note For more information about Chkntfs, see the following Microsoft Knowledge Base article:
160963 “CHKNTFS.EXE: What You Can Use It For”
|