Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Check and Repair a Disk with chkdsk in Windows

chkdsk scans a drive for file system errors and bad sectors, and can fix them.

Windows Hosting2 min read2 screenshots

What chkdsk does

chkdsk stands for "Check Disk". It checks the file system of a drive and can repair errors. Typical file system errors are:

  • Files that are damaged and cannot be opened.
  • Files that are lost or in the wrong place.
  • A slow system caused by file system problems.
  • Blue screen errors.

When to run it

  • After a crash or a power cut.
  • When the PC is slow or files look damaged.
  • Before a big change, such as a new OS or new hardware.
  • As part of regular upkeep.

Open Command Prompt or PowerShell as Administrator.

Basic use

chkdsk C:
Checking drive C with chkdsk

This scans drive C and prints a report. It does not change anything.

Common options

OptionWhat it does
/fFixes errors it finds
/rFinds bad sectors and recovers readable data (includes /f)
/xDismounts the volume first if it is in use
/vLists every file as it scans
/lSets the size of the log file
/bRe-checks bad clusters (NTFS only)

Examples

Check and repair drive C

chkdsk C: /f /r
Repairing drive C

If the drive is in use, Windows asks to run the check on the next restart. Type Y and restart.

Fix a removable drive

chkdsk E: /f

Dismount a drive in use and fix it

chkdsk D: /x /f

Show a detailed report

chkdsk F: /v

Tips

  • You can set Windows to run chkdsk at start-up with chkntfs /c C:.
  • A scan of a big drive can take hours. Plan for it.
  • A repair can lose data if it finds serious damage. Back up important files first.

Quick recap

  • chkdsk C: only reads. chkdsk C: /f /r repairs.
  • Run it as Administrator and back up first.