Skip to content
WindowsAdvanced

CHKDSK Explained: How Windows Check Disk Works, Commands, Benefits, Risks, and Troubleshooting

QUICK ANSWER CHKDSK—short for Check Disk—is a built-in Windows command that examines a local volume’s file system and metadata for logical errors. It can rep...

BI
Bison Technical Team Enterprise IT specialists
Updated 18 Sep 2026 14 min read 2 total views

QUICK ANSWER

CHKDSK—short for Check Disk—is a built-in Windows command that examines a local volume’s file system and metadata for logical errors. It can report problems, repair file-system corruption, locate unreadable sectors, and attempt to recover readable information.

Advertisement

Start with chkdsk C: for a read-only check or chkdsk C: /scan for an online NTFS scan. Use /f only when repairs are required and /r when unreadable sectors are suspected. Back up important data first, run the terminal as an administrator, and remember that CHKDSK is not a complete hardware-health or data-recovery tool.

 

What Is CHKDSK?

CHKDSK is a Windows command-line utility for checking the logical structure of a disk volume. Depending on the selected options, it can:

  • Examine file-system structures and metadata.
  • Detect inconsistencies caused by crashes, interrupted writes, or unsafe removal.
  • Repair logical file-system errors.
  • Locate unreadable sectors and attempt to recover readable information.
  • Mark unusable clusters so the file system avoids them.
  • Display information about disk space and file-system usage.

CHKDSK operates on a volume, such as C: or D:, rather than diagnosing every component of the physical storage device.

It is supported on current Windows client and server releases, including Windows 10, Windows 11, and supported Windows Server versions.

What Problems Can CHKDSK Address?

CHKDSK can help when Windows reports file-system corruption or when a volume behaves unexpectedly. Relevant symptoms include:

  • Windows says a drive must be scanned or repaired.
  • Files or folders cannot be opened because of file-system errors.
  • A volume is marked “dirty.”
  • Windows schedules an automatic disk check during startup.
  • A computer lost power or crashed while data was being written.
  • An external drive was disconnected without being safely removed.
  • Event Viewer reports NTFS or disk-related file-system errors.
  • Directory entries, security descriptors, allocation records, or free-space information are inconsistent.

CHKDSK may also be appropriate after storage has been restored or migrated, provided a verified backup exists.

What CHKDSK Cannot Fix

CHKDSK cannot:

  • Repair physically damaged hardware.
  • Restore every damaged or deleted file.
  • Replace a proper backup.
  • Reliably determine the overall health or remaining life of an HDD or SSD.
  • Repair Windows system files such as damaged DLLs; use System File Checker or DISM for those problems.
  • Scan a network-mapped drive as though it were a local disk.
  • Correct controller, cable, firmware, RAID, or storage-network failures.
  • Guarantee recovery from an unreadable sector.

If a drive is clicking, repeatedly disconnecting, disappearing from firmware, reporting hardware-health warnings, or becoming increasingly unreadable, prioritize backup or professional data recovery. A full /r scan places sustained read activity on the device and may be inappropriate for a severely failing drive.

Why File-System Errors Occur

Common causes include:

  • Sudden power loss.
  • Forced shutdowns or system crashes.
  • Removing external storage during a write.
  • Defective sectors or failing storage hardware.
  • Faulty cables, controllers, memory, or firmware.
  • Driver and storage-stack problems.
  • Interrupted partitioning, imaging, encryption, or disk-management operations.
  • Software defects that leave metadata inconsistent.

A repaired file system does not prove that the underlying device is healthy. Repeated corruption should be investigated as a possible hardware or infrastructure problem.

How CHKDSK Works

Without a repair option, CHKDSK checks the volume and reports its condition. With repair options, it modifies file-system metadata to restore consistency.

On NTFS volumes, a full check can validate areas such as:

  1. File records in the Master File Table.
  2. Directory indexes.
  3. Security descriptors.
  4. File data when a sector scan is requested.
  5. Free space when a sector scan is requested.

The exact output and number of stages depend on the file system, command options, Windows version, and condition of the volume.

Logical Errors Versus Unreadable Sectors

A logical error is an inconsistency in file-system data, such as a damaged directory index or incorrect allocation information. The /f option is designed to repair these errors.

An unreadable sector is a storage area from which data cannot be read successfully. The /r option searches for affected sectors, attempts to recover readable information, and includes the repairs performed by /f.

CHKDSK records bad clusters at the file-system level. It does not physically repair magnetic media or NAND flash.

Requirements and Safety Precautions

Before running a repair:

  1. Back up important files if the volume is still accessible.
  2. Confirm the correct drive letter.
  3. Close applications using the volume.
  4. Connect laptops to reliable power.
  5. Allow enough maintenance time for large or busy volumes.
  6. Use an account with local administrator rights.
  7. For servers, clusters, databases, virtual machines, RAID, SAN, or other business-critical storage, follow the platform vendor’s maintenance procedure.

Open Windows Terminal, Command Prompt, or PowerShell using Run as administrator.

Warning: Repair operations change file-system metadata. If corruption is extensive, damaged references may be removed or recovered fragments may be separated from their original filenames and locations. A current backup is strongly recommended.

CHKDSK Command Syntax

The basic syntax is:

 
chkdsk <volume> [options]
 

For example:

 
chkdsk C:
 

Replace C: with the volume you actually want to check.

Important CHKDSK Options

Option Purpose Important notes
No option Reports the volume’s status Does not repair errors; results on an active volume may be unreliable because the volume cannot be locked
/f Repairs logical file-system errors Requires the volume to be locked; the system volume normally requires a restart
/r Finds unreadable sectors and attempts to recover readable information Includes /f; reads the volume extensively and can take a long time
/x Forces the volume to dismount before checking Includes /f; invalidates open file handles and can disrupt applications
/scan Performs an online NTFS scan Useful as a low-disruption first check
/spotfix Performs targeted NTFS repairs May require the volume to go offline or the computer to restart
/offlinescanandfix Runs an offline scan and repair Requires exclusive access to the volume
/forceofflinefix Queues defects found by /scan for offline repair NTFS only; must be used with /scan
/perf Gives an NTFS online scan more system resources Must be used with /scan; may reduce performance for other workloads
/b Clears the NTFS bad-cluster list and rescans allocated and free clusters Includes /r; mainly useful after imaging a volume onto different storage
/i Performs a less thorough NTFS index check Faster, but skips some checking
/c Skips cycle checking in the NTFS folder structure Faster, but less thorough
/v Displays additional file or cleanup information Exact behavior varies by file system
/sdcleanup Removes unneeded NTFS security-descriptor data Implies /f

Run the following to see the options supported by the installed Windows version:

 
chkdsk /?
 

Some options apply only to NTFS, while others are specific to FAT, FAT32, or exFAT.

Recommended CHKDSK Workflow

Step 1: Confirm the Volume

Use File Explorer or Disk Management to verify the drive letter. Do not assume an external or recovery volume always uses the same letter.

Step 2: Start with a Non-Repairing Check

For a basic report:

 
chkdsk D:
 

For an NTFS volume that must remain online:

 
chkdsk D: /scan
 

An online scan is generally the better first step for an active NTFS volume.

Step 3: Repair Confirmed Logical Errors

To repair file-system errors:

 
chkdsk D: /f
 

If the volume is being used, Windows may report that it cannot lock the drive. For the Windows system volume, it normally offers to schedule the repair for the next restart:

 
Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)
 

Enter Y, save your work, and restart the computer.

Step 4: Use /r Only When Needed

If unreadable sectors, read errors, or media damage are suspected:

 
chkdsk D: /r
 

Because /r includes /f, this is normally unnecessary:

 
chkdsk D: /f /r
 

It is valid, but /f is redundant when /r is already specified.

A sector scan may take hours on a large HDD because it must read extensive areas of the volume. SSDs are generally faster, but repeated full-surface scans are unnecessary and may add avoidable device activity.

Step 5: Review the Result

Do not rely only on whether the computer restarted successfully. Review the final report or the saved event log to determine whether:

  • No errors were found.
  • Errors were found and repaired.
  • Repairs were deferred.
  • The volume could not be checked.
  • Unreadable sectors or bad clusters were reported.

Checking Whether a Volume Is Dirty

The dirty bit indicates that the file system may be inconsistent or has pending changes.

Run this from an elevated terminal:

 
fsutil dirty query C:
 

Possible results include:

 
Volume C: is dirty
 

or:

 
Volume C: is not dirty
 

A dirty volume is normally checked automatically during startup. Do not manually set the dirty bit unless you understand the operational consequences.

You can also check startup disk-check status with:

 
chkntfs C:
 

Viewing CHKDSK Results

Event Viewer

  1. Press Windows + R.
  2. Enter:
 
eventvwr.msc
 
  1. Open Windows Logs > Application.
  2. Select Filter Current Log.
  3. Filter by the event sources Chkdsk and Wininit.

Wininit commonly records checks performed during startup. Chkdsk commonly records checks initiated while Windows is running.

PowerShell

To display recent CHKDSK-related Application log entries:

 
Get-WinEvent -FilterHashtable @{LogName='Application'} |
    Where-Object ProviderName -Match 'Chkdsk|Wininit' |
    Select-Object TimeCreated, ProviderName, Message
 

To save the results:

 
Get-WinEvent -FilterHashtable @{LogName='Application'} |
    Where-Object ProviderName -Match 'Chkdsk|Wininit' |
    Select-Object TimeCreated, ProviderName, Message |
    Out-File "$env:USERPROFILE\Desktop\CHKDSK-Log.txt"
 

CHKDSK Exit Codes

CHKDSK can return these documented exit codes:

Exit code Meaning
0 No errors were found
1 Errors were found and repaired
2 Disk cleanup was performed, or cleanup was not performed because /f was not specified
3 The disk could not be checked, or errors were not repaired

In a batch file, the exit code can be read using %ERRORLEVEL%. In PowerShell, use $LASTEXITCODE immediately after running CHKDSK.

How Long Does CHKDSK Take?

Runtime depends on:

  • Volume capacity.
  • HDD, SATA SSD, or NVMe storage.
  • Number of files and directories.
  • Amount and type of corruption.
  • Whether /r or /b is used.
  • Storage and system workload.
  • Connection speed for external storage.
  • Controller, RAID, or virtualization overhead.

A metadata scan may finish quickly. A full /r or /b operation can take many hours on a large HDD, including when the volume is mostly empty.

Do not force a shutdown merely because the percentage appears unchanged. Some stages process objects at very different speeds.

Should CHKDSK Be Interrupted?

Microsoft does not recommend interrupting CHKDSK. If interruption is unavoidable, run it again afterward so any remaining corruption can be detected and repaired.

Avoid turning off the computer during an offline repair unless the system is clearly unresponsive and there is no safer recovery option.

CHKDSK on HDDs and SSDs

Hard Disk Drives

On an HDD, /r can be slow because the drive’s mechanical heads must read locations across the disk. Repeated bad-sector reports can indicate deteriorating media and should trigger backup and hardware diagnostics.

Solid-State Drives

CHKDSK is safe for occasional troubleshooting on an SSD. However, routine /r scans are usually unnecessary. CHKDSK checks file-system addressable storage; the SSD controller manages physical NAND blocks, wear leveling, and internal remapping.

Use the manufacturer’s diagnostic utility or enterprise storage-management system when device health, firmware, or wear information is required.

Benefits of CHKDSK

Used appropriately, CHKDSK can:

  • Restore consistency to a damaged file system.
  • Resolve some errors preventing access to files or directories.
  • Detect unreadable areas exposed through the storage stack.
  • Prevent Windows from allocating clusters already marked unusable.
  • Provide a documented report for troubleshooting and support.
  • Perform online NTFS scans with limited disruption.
  • Schedule repairs that require exclusive access.
  • Help validate a file system after crashes or interrupted writes.

Its main benefit is file-system verification and repair, not preventive hardware maintenance.

Risks and Limitations

Data May Already Be Damaged

CHKDSK can repair file-system structures, but it cannot recreate unreadable content. Repairing references may expose or remove files that were already damaged.

/r Is Not a Universal Repair Option

Using /r for every problem wastes time and adds heavy read activity. Use /f for confirmed logical errors and reserve /r for suspected unreadable sectors or explicit support guidance.

Active Volumes Can Produce Misleading Results

A read-only check of a busy volume may report apparent errors because files and metadata are changing during the scan. Use /scan for NTFS or arrange an offline check when definitive results are required.

CHKDSK Is Not a Hardware Diagnostic

A clean CHKDSK result does not prove that the storage device, cable, controller, RAM, firmware, or power supply is healthy.

RAW Volumes Require Different Handling

If Windows identifies a volume as RAW, its recognized file-system structures are missing or unreadable. CHKDSK may report that it is unavailable for RAW drives. Do not immediately format the volume if data is needed; investigate the partition and file system or use a qualified recovery process.

Encrypted and Managed Storage Needs Extra Care

Make sure recovery keys are available before servicing BitLocker-protected systems. For RAID, Storage Spaces, SAN, clustered storage, databases, and virtualized workloads, check the relevant platform and application procedures before forcing a dismount or offline repair.

Common CHKDSK Problems

“Access Denied” or “You Do Not Have Sufficient Privileges”

Open Windows Terminal, Command Prompt, or PowerShell using Run as administrator. Confirm that the account has local administrator privileges.

“The Volume Is in Use by Another Process”

Close applications and try again. For a non-system data volume, a dismount may be possible:

 
chkdsk D: /x
 

This forcibly invalidates open handles and can interrupt applications. Use it only during an approved maintenance window.

For the system volume, allow Windows to schedule the check for the next restart.

CHKDSK Runs at Every Startup

Check the dirty bit and startup-check configuration:

 
fsutil dirty query C:
chkntfs C:
 

Repeated checks can indicate unresolved corruption, storage failures, an interrupted scan, or startup-check configuration changes. Review the CHKDSK log and Windows System log instead of permanently excluding the volume from checking.

CHKDSK Appears Stuck

Long pauses can be normal, especially during /r on a large or damaged HDD. Check storage activity and allow sufficient time. If repeated attempts fail at the same location or the device disconnects, stop treating the problem as ordinary file-system corruption and investigate hardware health.

CHKDSK Reports Bad Sectors

Immediately verify the backup. Run the storage manufacturer’s supported diagnostics or the relevant RAID/storage-management checks. Bad-sector counts that appear or increase over time are a strong reason to replace or escalate investigation of the affected storage.

CHKDSK Finds Errors Repeatedly

Recurring corruption after successful repairs may indicate:

  • A failing drive.
  • A damaged cable or controller.
  • Unstable memory.
  • Power loss or unsafe shutdowns.
  • Storage-driver or firmware problems.
  • RAID, SAN, or virtualization-layer faults.

Repeatedly running CHKDSK treats the symptom; it does not correct the underlying cause.

CHKDSK Alternatives and Related Tools

Tool Appropriate use
sfc /scannow Checks and repairs protected Windows system files
DISM Repairs the Windows component store or services Windows images
Storage manufacturer diagnostics Evaluates device-specific health and hardware failures
RAID or SAN management tools Checks arrays, controllers, paths, and physical disks
Backup and recovery software Restores files or systems from known-good copies
Data-recovery tools or specialists Attempts recovery when a volume is unreadable or hardware is failing
Disk Management Reviews partitions, volume status, and drive-letter assignments

These tools complement CHKDSK; they are not interchangeable with it.

FAQ

Frequently Asked Questions

Does CHKDSK delete files?

CHKDSK is not designed as a file-deletion tool. However, repairing corrupted metadata may remove invalid references or separate damaged fragments from their original filenames and folders. Back up accessible data before using repair options.

What is the difference between chkdsk /f and chkdsk /r?

/f repairs logical file-system errors. /r includes /f, additionally searches for unreadable sectors, and attempts to recover readable information. /r usually takes much longer.

Can I use the computer while CHKDSK is running?

You can continue working during some read-only or online NTFS scans, although performance may be reduced. Offline repairs lock or dismount the volume, so files on that volume cannot be used until the operation finishes.

Does CHKDSK improve computer performance?

CHKDSK is not a performance-optimization utility. Performance may improve if file-system corruption was causing delays or errors, but it does not normally make a healthy disk faster.

Should I run CHKDSK regularly?

Routine full scans are generally unnecessary on a healthy modern system. Run CHKDSK when Windows reports a file-system problem, after relevant failures, or when directed by qualified support procedures.

Is CHKDSK safe for an SSD?

Occasional checks and necessary repairs are appropriate. Avoid unnecessary repeated /r or /b scans because they perform extensive device activity and provide little benefit when unreadable sectors are not suspected.

Can CHKDSK repair a RAW drive?

Normally, no. If Windows cannot recognize the file system and reports the volume as RAW, CHKDSK may refuse to run. Preserve the device and investigate partition or file-system recovery before formatting it.

Why does CHKDSK require a restart?

Windows cannot exclusively lock the active system volume while the operating system is using it. Scheduling the repair at startup allows CHKDSK to work before normal applications and services open files on the volume.

Does a clean CHKDSK result mean my drive is healthy?

No. It indicates that CHKDSK did not find the targeted file-system problems. It does not rule out intermittent hardware, firmware, controller, cable, memory, or power failures.

FINAL RECOMMENDATION / CONCLUSION

Use CHKDSK as a targeted file-system diagnostic and repair utility. Begin with chkdsk <drive>: or, for NTFS, chkdsk <drive>: /scan. Use /f when logical errors need repair and /r only when unreadable sectors are suspected.

Back up important data before repairs, confirm the correct volume, and do not treat repeated CHKDSK errors as normal. Recurring corruption, bad sectors, disconnections, or unusual device behavior should lead to hardware diagnostics, storage replacement planning, or professional recovery—not an endless cycle of scans.

 

#CHKDSK #CheckDisk #Windows11 #Windows10 #WindowsServer #DiskRepair #FileSystem #NTFS #DiskErrors #BadSectors #HardDrive #SSD #WindowsCommands #CommandPrompt #PowerShell #ITSupport #Troubleshooting #DataRecovery #StorageHealth #SystemAdministration

SOURCES

 

YOUR FEEDBACK

Was this guide useful?

Your answer helps us keep BISONKB accurate and practical.

THE BISON BRIEF

Practical IT knowledge, once a week.

New troubleshooting guides, scripts and infrastructure notes. No noise.

By subscribing, you agree to our privacy policy.