Short for “check disk,” the chkdsk command is a Command Prompt command used to check a specified disk and repair or recover data on the drive if necessary.

Chkdsk also marks any damaged or malfunctioning sectors on the hard drive or disk as “bad” and recovers any information still intact.

Chkdsk Command Availability

The chkdsk command is available from the Command Prompt in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP operating systems.

The chkdsk command is also available via Command Prompt in Advanced Startup Options and System Recovery Options. It also works from within the Recovery Console in Windows 2000 and Windows XP. Chkdsk is a DOS Command too, available in most versions of MS-DOS.

Chkdsk Command Syntax

chkdsk [volume:] [/F] [/V] [/R] [/X] [/I] [/C] [/L:size] [/perf] [/scan] [/?]

The availability of certain chkdsk command switches and other chkdsk command syntax might differ from operating system to operating system.

If you’re using the chkdsk command from the Recovery Console in older versions of Windows, use /p in place of /F above to instruct chkdsk to perform an extensive check and repair errors on the hard drive.

Other less commonly used chkdsk command switches exist too, like /B to re-evaluate bad clusters on the volume, /forceofflinefix which runs an online scan (a scan while the volume is active) but then forces the repair to run offline (once the volume has been dismounted), /offlinescanandfix which runs an offline chkdsk scan and then fixes any problems that were found, and others that you can read more about through the /? switch.

The /offlinescanandfix option is the same as /F except that it’s only allowed on NTFS volumes.

Chkdsk Command Examples

chkdsk

In the above example, since no drive or additional options were entered, chkdsk simply runs in read-only mode.

chkdsk c: /r

In this example, the chkdsk command is used to perform an extensive check of the C: drive to correct any errors and to locate any recovery information from bad sectors. This is best used when you’re running chkdsk from outside of Windows, like from a recovery disc where you need to specify which drive to scan.

If problems were found when running this simple chkdsk command, you’ll want to make sure to use the example from below to correct any issues.

chkdsk c: /scan /forceofflinefix

This chkdsk command runs an online scan on the C: volume so that you don’t have to dismount the volume to run the test, but instead of fixing any issues while the volume is active, the problems are sent to a queue that will be resolved in an offline repair.

chkdsk c: /r /scan /perf

In this example, chkdsk will fix problems on the C: drive while you’re using it, and will use as much system resources as allowed so that it will run as quickly as possible.

Chkdsk is often used with many other Command Prompt commands and Recovery Console commands.

The chkdsk command is similar to the scandisk command used to check a hard drive or floppy disk for errors in Windows 98 and MS-DOS.

Get the Latest Tech News Delivered Every Day

  • How to Scan a Hard Drive Using ‘Error Checking’

  • What Is a Sector?

  • Vol Command Examples and Options

  • Net Send Command

  • How to Locate and Recover Data From Bad Sectors

  • How to use a System Repair Disc to Format the C Drive

  • Fixboot Command (Recovery Console)

  • Windows 8 Command Prompt Commands

  • How to Use the Netstat Command

  • Copy Command

  • 14 Best Free Hard Drive Testing Programs

  • How to Restore Hal.dll From the Windows XP CD

  • What Is a Command for Computers?

  • What Is a Disk Signature and Why Is It Necessary?

  • What Is a Boot Sector?

  • How to Fix Corrupted Files in Windows 11

  • Facebook

  • Twitter

Hit Refresh on Your Tech News

  • About Us

  • Privacy Policy

  • Editorial Guidelines

  • Terms of Use

  • Careers

  • Advertise

  • Contact

  • EU Privacy

  • NEWS

  • HOW TO

  • FEATURES

  • ABOUT US