Name

chkntfs

Synopsis

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 behavior—except countdown time—for automatic file checking (use this switch alone). In other words, all drives will be checked at startup, and those found to be dirty will have chkdsk run against them.

/t[: time ]

Displays or specifies countdown time for automatic filesystem checking (new to Windows 2000).

/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 is not accumulative.)

/c

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

Examples

To display the filesystem on drive C: and its current state:

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

To show the countdown time for automatic filesystem checking:

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

To change the countdown time to 60 seconds:

                     chkntfs /t:60

To specify that only C: will be checked at startup on a system that also has D: and

Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.