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.
$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.
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.
FAT32 / extFAT
As of Windows version
Specifies the drive letter or volume (followed by a colon) or the mount point
Specifies the name of the files you want to check
Fixes errors on the disk
Displays the full path and name of every file on the drive
Displays any cleanup messages
Finds damaged sectors and recovers readable information (implies /F if /scan is not specified)
Changes the log file size to the number of KBs you specify. If you do not specify the size, the current size is displayed
Forces the volume to dismount. All open process on the volume are then invalidated. (Implies /F)
Runs a check of index entries (less vigorous)
Cycles within the folder structure are not checked
Rechecks all bad clusters on the volume (implies /R)
Runs an online check
Bypasses online repair (must be used with /scan); errors found are queued for offline repair (i.e. chkdsk /spotfix)
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)
Repairs the volume
Runs a memory cleanup for unneeded security descriptor data (implies /F)
Runs an offline check and fix on the volume
Frees unneeded cluster chains instead of recovering their contents
Marks the volume clean
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.
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.
Related articlesWhy are hard drives not showing up sometimes?
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
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…
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…