How to Run CHKDSK to Fix Disk Errors on Windows 11 and 10

Desktop computer monitor displaying the Windows 11 logo and the message Scanning and repairing drive (C:)

If your Windows PC displays a “Scan and repair drive” message, reports disk errors, or files suddenly become corrupted, running CHKDSK (Check Disk) can often fix the problem. CHKDSK is a built-in Windows utility that scans your hard drive or SSD for file system errors and repairs many common disk issues without requiring third-party software.

In this guide, you’ll learn what CHKDSK is, when you should use it, and how to run the most useful CHKDSK commands to scan and repair disk errors on Windows 11 and Windows 10. You’ll also learn what the scan results mean and how to troubleshoot common CHKDSK problems.

What Is CHKDSK?

CHKDSK (Check Disk) is a built-in Windows utility that scans your hard drive or SSD for file system errors and, in some cases, bad sectors. Every hard drive (HDD) and solid-state drive (SSD) uses a file system to organize and store data. If this file system becomes corrupted due to an unexpected shutdown, power outage, software crash, or hardware problem, Windows may struggle to read or write data correctly. CHKDSK helps detect and repair problems that can prevent Windows from working properly or cause files to become corrupted.

Depending on the command you run, CHKDSK can:

  • Scan a drive for file system errors.
  • Repair logical file system corruption.
  • Find bad sectors on a hard drive (using the /r option).
  • Recover readable data from damaged sectors when possible.
scanning and repairing disk drive errors

Unlike the System File Checker (SFC) tool, which repairs corrupted Windows system files, CHKDSK focuses on the health of your storage drive. If Windows reports disk errors or asks you to scan and repair a drive, CHKDSK is usually the first tool you should run.

Note: While CHKDSK works on both traditional hard drives (HDDs) and modern solid-state drives (SSDs), the /r option performs a surface scan for bad sectors, which is generally more useful for HDDs. On SSDs, file system errors are more common than physical bad sectors, so chkdsk /f is usually sufficient unless you’re specifically troubleshooting storage issues.

When Should You Run CHKDSK?

You don’t need to run CHKDSK as part of regular PC maintenance. Instead, use it when you suspect your hard drive or SSD has developed file system errors or other disk-related problems.

Running CHKDSK is recommended if you notice any of these signs:

  • Windows displays a “Scan and repair drive” or “There’s a problem with this drive” message.
  • Your computer freezes, crashes, or shows disk-related errors.
  • Files become corrupted, disappear, or won’t open.
  • Your PC shuts down unexpectedly because of a power outage or system crash.
  • File Explorer is slow to respond or Windows takes longer than usual to access files.
  • You suspect your hard drive has bad sectors or other storage problems.

Tip: CHKDSK repairs disk and file system errors. If Windows continues to crash after the scan completes, run System File Checker (SFC) to check for corrupted Windows system files.

How to Run CHKDSK on Windows 11 and 10

Running CHKDSK is simple, but the exact process depends on whether you’re scanning your Windows system drive or another storage drive. If you’re scanning the Windows system drive (usually C:), Windows may ask you to schedule the scan for the next restart because the drive is currently in use.

Step 1: Open Command Prompt as Administrator

  1. Press the Windows key and type Command Prompt.
  2. Right-click Command Prompt and select Run as administrator.
  3. Click Yes if prompted by User Account Control (UAC).

Alternatively, Windows 11 users can press Windows + X and select Windows Terminal (Admin).

Step 2: Run the CHKDSK Command

To scan your Windows drive and automatically fix file system errors, type the following command and press Enter:

chkdsk C: /f

  • C: specifies the drive you want to scan.
  • /f tells CHKDSK to fix any file system errors it finds.

If you want to scan a different drive, replace C: with its drive letter. For example:

chkdsk D: /f

Step 3: Schedule the Scan (If Prompted)

If you’re checking the Windows system drive, you’ll likely see a message similar to this:

Chkdsk cannot run because the volume is in use by another process.
Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)

Type Y, then press Enter to schedule the scan for the next time your computer restarts.

Run chkdsk command

Step 4: Restart Your Computer

Restart your PC. Before Windows loads, CHKDSK will automatically start scanning and repairing the drive.

The scan may take anywhere from a few minutes to over an hour, depending on:

  • The size of your drive.
  • The number of files stored on it.
  • Whether errors are found.
  • Whether you’re using /f or the more thorough /r option.

Important: Don’t turn off your PC while CHKDSK is running. Interrupting the repair process may leave the file system in an inconsistent state.

CHKDSK repairing disk errors

Tip: If you only want to check a secondary drive (such as D: or an external drive) that’s not currently in use, CHKDSK usually runs immediately without requiring a restart.

What happens after CHKDSK finishes?

Windows will start normally after the scan is complete. If CHKDSK repaired file system errors, check whether the original problem, such as disk errors, crashes, or file corruption, has been resolved. If the same errors return, your storage drive may be developing a hardware problem.

Useful CHKDSK Commands Explained

The CHKDSK utility supports several command options, each designed for a different troubleshooting scenario. While chkdsk C: /f is the command most users need, understanding the other switches can help you choose the right scan for your situation.

CommandWhat It DoesWhen to Use It
chkdskScans the drive and reports errors without repairing them.When you only want to check the drive’s status.
chkdsk C: /fScans the drive and fixes logical file system errors.Recommended for most disk-related problems.
chkdsk C: /rLocates bad sectors, attempts to recover readable data, and includes the /f repair function.When you suspect physical disk problems or bad sectors.
chkdsk C: /xForces the drive to dismount before scanning. It also includes the /f option.Useful when the drive is in use and can’t be scanned normally.
chkdsk C: /scanPerforms an online scan of an NTFS drive without requiring a restart in many cases.For quickly checking the drive while Windows is running.

Which CHKDSK Command Should You Use?

For most users, this is the best place to start: chkdsk C: /f

It repairs common file system errors and is sufficient for problems caused by improper shutdowns, Windows crashes, or file system corruption.

If you believe your hard drive has developed bad sectors or is showing signs of hardware issues, use: chkdsk C: /r

Keep in mind that the /r scan is much more thorough and can take significantly longer to complete, especially on large hard drives.

Tip: Avoid running chkdsk /r unless you have a reason to suspect bad sectors or physical disk issues. For routine file system repairs, chkdsk /f is usually faster and sufficient.

Understanding CHKDSK Results

After CHKDSK finishes scanning your drive, it displays a summary of what it found. Here’s what the most common results mean.

No Errors Were Found

Your drive’s file system is healthy, and no repairs were necessary. If Windows problems continue, the issue may be related to corrupted system files, drivers, or hardware rather than the storage drive..

Windows Made Corrections to the File System

CHKDSK detected and repaired file system errors successfully. Restart your computer if prompted and check whether the issue has been resolved.

Bad Sectors Were Found

The scan found damaged areas on the drive and attempted to recover readable data. Back up your important files as soon as possible. If bad sectors continue to appear, the drive may be failing and should be replaced.

Note: A few bad sectors don’t always mean a drive has failed, but an increasing number of bad sectors is often a sign that the drive is wearing out.

CHKDSK Could Not Lock the Current Drive

This usually means the drive is currently in use by Windows. Type Y when prompted to schedule the scan for the next restart, then reboot your PC.

Tip: If CHKDSK repeatedly reports new errors after multiple scans, back up your data immediately and check the health of your storage drive, as recurring errors often indicate a hardware problem.

If CHKDSK doesn’t complete successfully or reports an error instead of repairing your drive, try the troubleshooting steps below.

CHKDSK Not Working? Try These Fixes

If CHKDSK doesn’t start or fails to complete, don’t worry. Here are the most common problems and how to fix them.

Error: “Cannot lock current drive”

Cause: The drive is currently being used by Windows or another application.

Fix: If you’re scanning the system drive, type Y when prompted to schedule the scan for the next restart, then reboot your computer.

Error: “Access Denied as you do not have sufficient privileges”

Cause: Command Prompt or Windows Terminal wasn’t opened with administrator privileges.

Fix: Close the current window, reopen Command Prompt or Windows Terminal as Administrator, and run the CHKDSK command again.

CHKDSK Gets Stuck or Takes a Long Time

Cause: Large drives, file system errors, or using the /r option can significantly increase scan time.

Fix:

  • Wait for the scan to complete, especially if you’re using /r.
  • If the progress doesn’t change for several hours, restart your PC and run the scan again.
  • Back up your data if the problem persists, as it may indicate a failing drive.

CHKDSK keeps finding bad sectors

Cause: The storage drive may be developing physical damage.

Fix: Back up your important files immediately and check the drive’s health using your SSD or hard drive manufacturer’s diagnostic tool. If bad sectors continue to increase, replace the drive to prevent data loss.

Tip: CHKDSK can repair many file system errors, but it cannot repair a physically failing hard drive or SSD. If disk errors keep returning after multiple scans, it’s usually a sign that the storage device should be replaced.

What If CHKDSK Doesn’t Fix the Problem?

If CHKDSK completes successfully but your PC still crashes, freezes, or displays Windows errors, the issue may not be related to your storage drive.

In that case, try these built-in Windows repair tools:

  • System File Checker (SFC): Repairs corrupted or missing Windows system files.
  • DISM: Repairs the Windows component store that SFC relies on.

Tip: Run CHKDSK first if Windows reports disk errors. If no disk problems are found but Windows issues continue, run SFC and then DISM if needed.

Frequently Asked Questions (FAQ)

Is CHKDSK safe to run?

Yes. CHKDSK is a built-in Windows utility developed by Microsoft and is safe to use on both Windows 11 and Windows 10. It scans your drive for file system errors and repairs logical issues without deleting your personal files.

What’s the difference between chkdsk /f and chkdsk /r?

The /f option repairs file system errors, while /r does everything /f does and also scans for bad sectors, attempting to recover readable data. Because it performs a deeper scan, /r takes significantly longer to complete.

How long does CHKDSK take to complete?

It depends on the size and condition of your drive. A standard scan with chkdsk /f may finish in a few minutes, while a full scan with chkdsk /r can take an hour or more on large or damaged drives.

Can I stop a CHKDSK scan once it starts?

It’s best not to interrupt CHKDSK while it’s repairing a drive. Stopping the scan before it finishes may leave the file system in an inconsistent state. Allow the process to complete before restarting or shutting down your PC.

What should I do if CHKDSK finds bad sectors?

Back up your important files as soon as possible. While CHKDSK can recover readable data and mark bad sectors so they aren’t used again, repeatedly finding new bad sectors usually indicates that the drive is failing and should be replaced.

Amiush Palk

I am Amiush founder of this blog. My qualification. completed Bachelor of Arts (BA) and Microsoft Certified Professional (MCP). With a strong background in computer applications love write articles on Microsoft Windows (11, 10, etc.) Cybersecurity, WordPress and more.