chkdsk

Windows CMD · System · available in the simulator

What it does

Checks a disk for errors.

Syntax

chkdsk [volumen] [/f] [/v] [/r] [/x] [/scan]

Options and parameters

  • /F

    Fixes errors on the disk.

    chkdsk C: /f
  • /R

    Locates bad sectors and recovers readable information; implies /F.

  • /X

    Dismounts the volume first if necessary; implies /F.

  • /V

    Displays the name of each file checked.

  • /I

    Performs a less rigorous check of index entries, NTFS only.

  • /C

    Skips checking of cycles within the folder structure, NTFS only.

  • /L

    Changes the log file size, NTFS only.

  • /B

    Reevaluates bad clusters on the volume, NTFS only; implies /R.

  • /scan

    Runs an online scan without dismounting the volume.

    chkdsk C: /scan
  • /spotfix

    Runs spot fixes to quickly correct detected issues.

Usage examples

  • chkdsk C:
  • chkdsk C: /F
  • chkdsk C: /R
  • chkdsk C: /scan
  • chkdsk C: /f
Practise chkdsk

Related commands