The chkdsk command line tool was included in earlier MS-DOS versions of Microsoft operating systems. From Windows NT 3.1 and higher, chkdsk runs as a 32-bit program that also supports NTFS format disks. From Windows XP and higher, the tool includes a disk scanning feature with a simple graphical interface that uses the disk service in the background but offers only two of the service\’s many options. In the following article, you’ll learn about the different chkdsk commands and parameters that are available and how to use the tool for your purposes.

Contents

  • How to run chkdsk from the disk check utility
  • How to run chkdsk from the command line with the full range of features
  • The most important chkdsk commands and parameters at a glance
  • $1 Domain Names

    Register great TLDs for less than $1 for the first year.

    Why wait? Grab your favorite domain name today!

    SSL certificate24/7/365 support

    You can run chkdsk as follows:

    • Run chkdsk from the disk check utility in the File Explorer
    • Run chkdsk with the full range of features from the command line (Command Prompt or PowerShell)

    How to run chkdsk from the disk check utility

    To run chkdsk from the File Explorer, right-click a drive and select Properties from the context menu. Then go to the Tools tab. In the “Error Checking” section, click the Check button:

    You can check a drive for errors via the File Explorer.

    After a short scan, Windows 10 automatically suggests necessary repairs (in Windows 7, the repair options had to be selected manually). You can choose from two options:

    • Automatically fix file system errors – corresponds to chkdsk parameter /f.
    • Scan for and attempt recovery of bad sectors – corresponds to chkdsk parameter /r.

    If you choose one of the above repair options, the required time will increase significantly. In addition, you can’t use the drive while it is being checked. Therefore, you should first close all programs and File Explorer windows that are accessing or displaying data from this drive.

    You also shouldn’t access the drive in read-only mode while the check is running, otherwise the time required for the check will be much longer. It’s best to close all programs and disable third-party antivirus software to prevent them from performing tasks in the background.

    How to run chkdsk from the command line with the full range of features

    If you run chkdsk from the command line, you have many more scanning options than if you use the File Explorer. In Windows 10, you can type in the chkdsk commands using either Command Prompt or the new PowerShell. You do not have the PowerShell option in older versions of the operating system such as Windows 7 or Windows 8. The following step-by-step guide shows you exactly how to control the tool via the command line.

  • First, close all windows displaying the drive you want to check, and exit any programs that might be accessing the drive.
  • Right-click the Windows logo in the taskbar to open the Start menu. Next, choose Command Prompt (Admin) or Windows PowerShell (Admin). Depending on your Windows version, only one of these options will appear in the menu.
  • If you’re logged on as a user with restricted permissions, you have to enter the administrator password at this point.
  • Enter chkdsk and the letter of the drive you want to check.
  • chkdsk will then run in read-only mode without any further parameters, meaning it won’t change anything on the hard drive.

    You can use additional chkdsk parameters to enable special check phases or repair options. Use the following basic syntax when you enter the chkdsk commands:

    chkdsk [drive[[path]file name]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B] [/scan] [/spotfix]

    If you don’t select a drive, chkdsk will run on the currently selected drive. You can specify the drive using the drive letter, or for NTFS drives, you can specify the path of the directory that includes another disk.

    On FAT32 drives, you can check individual directories or even specific files. On NTFS drives, you can only specify a directory if the directory appears with its own partition in the directory tree.

    The most important chkdsk commands and parameters at a glance

    The following table summarizes the most important chkdsk parameters and commands and explains their meaning. It also specifies the file system and version of Windows for which the different commands are available.

    chkdsk command/parameter

    Meaning

    FAT32 / extFAT

    NTFS

    As of Windows version

    Volume

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

    x

    x

    File name

    Specifies the name of the files you want to check

    x

    /F

    Fixes errors on the disk

    x

    x

    /V

    Displays the full path and name of every file on the drive

    x

    /V

    Displays any cleanup messages

    x

    /R

    Finds damaged sectors and recovers readable information (implies /F if /scan is not specified)

    x

    x

    /L:size

    Changes the log file size to the number of KBs you specify. If you do not specify the size, the current size is displayed

    x

    /X

    Forces the volume to dismount. All open process on the volume are then invalidated. (Implies /F)

    x

    x

    /I

    Runs a check of index entries (less vigorous)

    x

    /C

    Cycles within the folder structure are not checked

    x

    /B

    Rechecks all bad clusters on the volume (implies /R)

    x

    Windows7

    /scan

    Runs an online check

    x

    Windows10

    /forceofflinefix

    Bypasses online repair (must be used with /scan); errors found are queued for offline repair (i.e. chkdsk /spotfix)

    x

    Windows10

    /perf

    Uses more system resources to speed up verification; can have a negative impact on the performance of other tasks running on the system (must be used with /scan)

    x

    Windows10

    /spotfix

    Repairs the volume

    x

    Windows10

    /sdcleanup

    Runs a memory cleanup for unneeded security descriptor data (implies /F)

    x

    Windows10

    /offlinescanandfix

    Runs an offline check and fix on the volume

    x

    x

    Windows10

    /freeorphanedchains

    Frees unneeded cluster chains instead of recovering their contents

    x

    Windows10

    /markclean

    Marks the volume clean

    x

    Windows10

    If chkdsk runs with one of the repair options (/F or /R), the time required for the check usually increases significantly. Even in the default read-only mode, you should access the hard drive as little as possible while running chkdsk. You can abort chkdsk at any time using the keyboard shortcut Ctrl + C.

    The /I and /C options reduce the time it takes to run chkdsk because they skip some checks.

    Note

    Files are always open on the system drive, so chkdsk cannot run with the repair options on this drive. In this case, you can use AutoChk to check the system drive the next time you start your computer.

    • 15.09.20
    • Configuration
    • Tutorials
    • Tools

    Related articlesWhy are hard drives not showing up sometimes?

    • 24.09.2020
    • Configuration

    Faulty set-ups in the Windows operating system or in a disk drive can sometimes hinder hard drives or external hard drives from showing up. Another culprit could be a mechanical cause. In order to make a disk drive appear on your computer, the Windows operation system provides some useful utilities.

    DOS commands: An overview

    • 16.06.2021
    • Know-how

    With the spread of Windows, DOS commands have become less important. Launching a program, copying a file, or creating a directory – this can be done using a mouse and the graphic interface. However, it’s still useful to know some basic DOS commands should you ever have any problems with the Windows display. Keep reading for an overview of the main commands.

    Related ProductsCloud ServersSee packages Web hosting for agencies

    Provide powerful and reliable service to your clients with a web hosting package from IONOS.

    View packages Popular Articles Create a hair salon website

    We’ll show you how to quickly, easily and affordably create a professional hair salon website…

    Build a real estate website

    With a real estate website, you can set yourself apart from the competition…

    Handyman website

    With the right tools, a homepage for tradesmen can be created quickly and legally compliant…

    Create dental website

    Patients can easily find you online and gain an overview of your clinic’s services and offers…

    Build a photography website

    In this article, we’ll give you an overview of what components a website for photographers should have…

    <

    By admin

    Leave a Reply

    Your email address will not be published.