Windows Server 2003 in a Nutshell

chkntfs

Displays or specifies whether to schedule automatic filesystem checking (using chkdsk ) to be run at startup.

Syntax

chkntfs volume [...] chkntfs /d chkntfs /t[: time ] chkntfs /x volume [...] chkntfs /c volume [...]

Options

volume [...]

Displays the filesystem of the volume(s) and, if automatic file checking is scheduled, whether the volume has been corrupted. (If so, then run chkdsk /f .) The volume may be identified by a drive letter with colon , a volume mount point, or a volume name .

/d

Restores default behaviorexcept countdown timefor automatic file checking (use this switch alone). In other words, all drives are checked at startup, and those found to be dirty have chkdsk run against them.

/t[:time]

Displays or specifies countdown time for automatic filesystem checking.

/x

Excludes specified volume from being checked (even if volume is marked for running chkdsk ). To exclude multiple volumes , list them in one command. (This option isn't accumulative.)

/c

Checks the specified volume at startup. (This option is accumulative.)

Examples

Display the filesystem on drive C: and its current state:

chkntfs c: The type of the file system is NTFS. C: is not dirty.

Show the countdown time for automatic filesystem checking:

chkntfs /t The AUTOCHK initiation count down time is set to 10 seconds.

Change the countdown time to 60 seconds:

chkntfs /t:60

Specify that only C: be checked at startup on a system that also has D: and E: as fixed drives:

chkntfs /d chkntfs /x C: D: E: chkntfs /c C:

In this example:

Notes

See Also

chkdsk , convert , defrag , diskpart , Disks , format , label , mountvol

Категории