NT Syntax


Check the NTFS file system with CHKDSK

      CHKNTFS drive: [...]
      CHKNTFS /C drive: [...]
      CHKNTFS /X drive: [...]
      CHKNTFS /D

   drive : Specifies a drive letter.
/C : Check - schedules chkdsk to be run at the next reboot.
/X : Exclude a drive from the default boot-time check. Excluded drives are not accumulated between command invocations.
/D : Restore the machine to the default behavior; all drives are
checked at boot time and chkdsk is run on those that are dirty. This undoes the effect of the /X option.

If no switches are specified, CHKNTFS will display the status of the
dirty bit for each drive.

Also see Q160963

Related commands:

CHKDSK - Check Disk - check and repair disk problems

Equivalent Linux BASH commands:


Simon Sheppard