Skip to content
amagicsoft logo icon
  • Home
  • Products
    • Magic Data Recovery
    • Magic Recovery Key
  • Store
  • Blog
  • More
    • About Amagicsoft
    • Contact US
    • Privacy Policy
    • Terms
    • License Agreement
    • Refund Policy
  • English
    • 日本語
    • 한국어
    • Deutsch
    • Français
    • 繁體中文
Wiki

CHKDSK Commands: A Complete Guide

17.12.2025 Smith, Erin No comments yet
how to use CHKDSK commands
CHKDSK (Check Disk) is a built-in Windows tool that helps maintain and repair file systems on hard drives by checking for errors, bad sectors, and fragmented files. It’s an essential utility for keeping your disk healthy and optimizing performance. It provide several CHKDSK Commands for fixing file system errors, bad sectors, and fragmented files.

Table of Contents

How CHKDSK Works

Check Disk scans your hard drive and checks for file system errors, bad sectors, and fragmented files. Depending on the parameters you use, it can also attempt repairs on these issues and recover lost data from bad sectors.

How to Run Check Disk

To run CHKDSK, follow these steps:

  1. Open Command Prompt as Administrator: Press Windows + X and select Command Prompt (Admin).
  2. Run the CHKDSK Command: In the Command Prompt window, type the desired CHKDSK command with appropriate parameters, for example:

chkdsk C: /f (replace “C:” with your target drive letter).

  1. Reboot the Computer: If scanning the system drive (C:), CHKDSK will schedule the scan for the next reboot. Press Y to confirm.

Complete List of CHKDSK Commands and Parameters

Here is a detailed list of all CHKDSK commands you can use:

Parameter

Description

<volume>

Specifies the drive letter (followed by a colon), mount point, or volume name.

[<path>]<filename>

Use with file allocation table (FAT) and FAT32 only. Specifies the location and name of a file or set of files that you want chkdsk to check for fragmentation. You can use the wildcard characters ? and * to specify multiple files.

/f

Fixes errors on the disk. The disk must be locked. If chkdsk can’t lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer.

/v

Displays the name of each file in every directory as the disk is checked.

/r

Locates bad sectors and recovers readable information. The disk must be locked. /r includes the functionality of /f, with the additional analysis of physical disk errors.

/x

Forces the volume to dismount first, if necessary. All open handles to the drive are invalidated. /x also includes the functionality of /f.

/i

Use with NTFS only. Performs a less vigorous check of index entries, which reduces the amount of time required to run chkdsk.

/c

Use with NTFS only. Doesn’t check cycles within the folder structure, which reduces the amount of time required to run chkdsk.

/l[:<size>]

Use with NTFS only. Changes the log file size to the size you type. If you omit the size parameter, /l displays the current size.

/b

Use with NTFS only. Clears the list of bad clusters on the volume and rescans all allocated and free clusters for errors. /b includes the functionality of /r. Use this parameter after imaging a volume to a new hard disk drive.

/scan

Use with NTFS only. Runs an online scan on the volume.

/forceofflinefix

Use with NTFS only (must be used with /scan). Bypass all online repair; all defects found are queued for offline repair (for example, chkdsk /spotfix).

/perf

Use with NTFS only (must be used with /scan). Uses more system resources to complete a scan as fast as possible. This might have a negative performance impact on other tasks running on the system.

/spotfix

Use with NTFS only. Runs spot fixing on the volume.

/sdcleanup

Use with NTFS only. Garbage collect unneeded security descriptor data (implies /f).

/offlinescanandfix

Runs an offline scan and fix on the volume.

/freeorphanedchains

Use with FAT/FAT32/exFAT only. Frees any orphaned cluster chains instead of recovering their contents.

/markclean

Use with FAT/FAT32/exFAT only. Marks the volume clean if no corruption was detected, even if /f wasn’t specified.

/?

Displays help at the command prompt.

How to Choose the Right Command

Depending on the issue you’re facing with your hard drive, you can choose different combinations of these parameters to optimize the repair process.

  • For basic disk repairs: Use /f to fix errors on the disk.
  • For bad sector recovery: Use /r to recover readable data from bad sectors and fix file system errors.
  • To perform a more thorough check: Use /r along with /x to dismount the drive before scanning.
  • To speed up the scan: Use /i with NTFS to reduce the check time or /perf to allocate more system resources for faster scanning.
  • For offline repairs: Use /offlinescanandfix to scan and fix the volume when it’s not actively used.

Benefits of Using CHKDSK Commands

  • Repair file system errors: Check Disk can fix corruption in file systems.
  • Recover data from bad sectors: The /r option recovers readable information from bad sectors.
  • Improved performance: Regular use of Check Disk can keep your hard drive in optimal working condition.

Limitations of CHKDSK

  • Data loss: In some cases, Check Disk can delete files if they are located in bad sectors or corrupt areas of the disk.
  • Time-consuming: Depending on the size of your drive and the parameters you use, the scan process can be time-consuming.

Conclusion

CHKDSK commands are valuable tools for maintaining and repairing your hard drive. They can check and fix file system errors, recover data from bad sectors, and help optimize the overall performance of your system. However, if your data is already lost or Check Disk is unable to access a corrupted partition, you will need a specialized data recovery tool.

If CHKDSK cannot repair your drive or if data is lost, Magic Data Recovery is your reliable solution. It can recover files even if your partition is corrupted, and Check Disk failed to fix the issues. Download Magic Data Recovery now to safely restore your data and regain access to your files.

Download Magic Data Recovery

Supports Windows 7/8/10/11 and Windows Server

FAQs About CHKDSK Commands

1. Which is better, CHKDSK r or f?

The /r option is more comprehensive because it checks for bad sectors and attempts to recover data. The /f option only fixes file system errors. Use /r for a more thorough repair.

2. How to run a CHKDSK repair?

To repair your disk, use the command chkdsk C: /f (or replace "C:" with the drive letter of your target volume). You can also use /r for bad sector recovery.

3. How do I repair corrupted files with CHKDSK?

To repair corrupted files, run chkdsk C: /r, which checks for bad sectors and attempts to recover data.

4. How to recover CHKDSK deleted files?

If CHKDSK deletes files, consider using a data recovery tool like Magic Data Recovery to recover your lost files from the corrupted or damaged drive.

5. Should I run SFC or DISM?

SFC (System File Checker) is best for repairing Windows system files. DISM (Deployment Imaging Service and Management Tool) is more suited for resolving image corruption issues.

6. How to repair a slow hard disk?

Run chkdsk C: /r to fix slow hard drives caused by bad sectors. Additionally, defragmenting your drive or using system optimization tools can help.
  • WiKi
Smith, Erin

Erin Smith is recognized as one of the most professional writers at Amagicsoft. She has continually honed her writing skills over the past 10 years and helped millions of readers solve their tech problems.

文章导航

Previous
Next

Search

Categories

  • Bitlocker Recovery
  • Deleted File Recovery
  • Format File Recovery
  • Hard Drive Recovery
  • License Key Recovery
  • Lost File Recovery
  • Memory Card Recovery
  • News
  • Password Recovery
  • Photo Recovery
  • SSD Recovery
  • USB Drive Recovery
  • User Guide
  • Video Recovery
  • Wiki

Recent posts

  • Run CHKDSK on SD Card Easy Steps to Fix Errors
    Run CHKDSK on SD Card: Easy Steps to Fix Errors
  • What Is TRIM
    What Is TRIM
  • Recover Shift Deleted Files in Windows 11/10
    How to Recover Shift Deleted Files in Windows 11/10

Tags

How to Magic Data Recovery Magic Recovery Key WiKi

Related posts

Run CHKDSK on SD Card Easy Steps to Fix Errors
Wiki

Run CHKDSK on SD Card: Easy Steps to Fix Errors

17.12.2025 Vasilii No comments yet

CHKDSK (Check Disk) is a built-in Windows command-line utility used to scan and repair file system errors on storage devices, including SD cards. When applied to an SD card, CHKDSK examines the logical file structure—such as directory entries, file allocation tables, and file system metadata—to identify corruption, bad sectors, or inconsistencies that may prevent the […]

What Is TRIM
Wiki

What Is TRIM

17.12.2025 Vasilii No comments yet

TRIM is an operating system–level command that informs solid-state drives (SSDs) which data blocks are no longer needed and can be cleared internally. Unlike traditional hard disk drives(HDDs), SSDs cannot overwrite existing data directly. They must erase memory blocks before writing new information. By identifying unused blocks in advance, this mechanism helps the drive preserve […]

how to run chkdsk
Wiki

CHKDSK: Your Ultimate Guide to Fixing Disk Errors

17.12.2025 Smith, Erin No comments yet

In this comprehensive guide, we will dive deep into CHKDSK—what it is, what does chkdsk do, and the precise steps on how to run chkdsk. We’ll explore its benefits, limitations, and the potential risks. Most importantly, we’ll provide a reliable safety net for scenarios where running CHKDSK might result in inaccessible partitions or lost data, […]

amagicsoft logo icon

Our vision is to become a globally renowned software brand and service provider, delivering top-tier products and services to our users.

Products
  • Magic Data Recovery
  • Magic Recovery Key
Policy
  • Terms
  • Privacy Policy
  • Refund Policy
  • License Agreement
Company
  • About Amagicsoft
  • Contact US
  • Store
Follow Us

Copyright © 2025 Amagicsoft. All Rights Reserved.

  • Terms
  • Privacy Policy