Chkdsk Command: How to Run?

Daniel Alexandra

Updated on:

How to run chkdsk?

Chkdsk Command is the commands used to detect and repair errors on your computers using Windows operating system. The “chkdsk” command is also used to flag corrupt files on portable or hard drives and repair parameters that haven’t been corrupted yet. In this article, you can find all the information about what is Chkdsk Command, how to run chkdsk.

What are chkdsk commands?

As I mentioned above, chkdsk commands are windows commands used to detect and repair errors on hard or removable disks on computers using windows operating system. chkdsk is a DOS command included with MS-DOS. Errors can be detected and some errors can be repaired by running these commands in operating systems such as windows 7, windows 8, windows 10 and windows 11.

What does chkdsk do?

With the chkdsk command, corrupted files on the computer drive are detected and repaired. In short, it checks for problems on the HDD and ensures that they are repaired.

How to run chkdsk?

There are two separate methods for running chkdsk commands. The first method is the method used directly by right-clicking on the server, while the other is the CMD method. Both methods and how you can run the chkdsk command are given in separate headings below.

1- Run directly on disk

This is the easiest method to run chkdsk in win 10 and other operating systems. To run the chkdsk command with this method;

  • Enter the “My Computer” section.
  • Here, right-click on the drive you want to run the command on and enter the “Properties” section. In the tab that opens, select the “Tools” section.
  • You can run the command by clicking Check. After this process, if there is an error in the driver, it will be repaired and an error report will be generated.

2- Using command chkdsk with CMD

To use the chkdsk command;

  • Navigate to the “Start” section of your computer.
  • Start the CMD command system by typing “CMD” in the search line.
  • Then right click and enter “run as administrator” command.
  • Then you can use one of the following commands according to the operation you want to do. For example, if you want to check and repair the disk, you can use the “chkdsk d: /f /r” command. Commands and their tasks are shared in the list below.
< volume> Used to specify a drive letter or volume name
filename It is used to scan the specified file in case of fragmentation. This command only works on FAT and FAT32 file system.
/F This code allows found errors to be repaired automatically during scanning.
/V Allows displaying the full name and path of each file on the disk.
/R It finds bad areas and allows readable ones to be repaired. The disk must be locked in this command. The /r command also includes the functionality of the /f command as it also performs physical disk analysis.
/X This command forces the disk to eject when needed. All open processes on the disk are then disabled.
/I This command should only be used with NTFS. This command performs a more powerful check. This shortens the chkdsk time.
/C This command should also only be used with NTFS. It does not provide control of loops inside the folder. This makes the chkdsk process take less time.
/B You can use this command only with NTFS. It provides control of all corrupted areas.
/scan Starts an online scan. Used with NFTS only.
/forceofflinefix It should be used with /scan. Does not scan online. Errors found are repaired while offline. Must be used with NFTS.
/perf You can increase the chkdsk priority with this command. Thus, more resources are used to speed up the disk scan. This command should only be used on the NTFS file system and in conjunction with the /scan command.
/spotfix This command tries to detect errors found in the relevant volume. It should be used in conjunction with NFTS.
/sdcleanup Runs the cache cleanup tool for unnecessary security data. It runs on the NTFS file system.
/offlinescanandfix Allows an offline scan to be run in the chkdsk tool. If there are errors, they are repaired.
/freeorphanedchains This command does not recover the faulty files. It allows it to be released. For FAT, FAT32 and exFAT file systems, this command
/markclean If no errors are found during the disk scan, it will mark the volume as error free. It can be run on FAT, FAT32 and exFAT file systems.
/L:size This command is used to use the log file size in “KB”. The default log file size for chkdsk is 65536 kilobytes. You can check the log file size for Chkdsk with this command.
/? chkdsk lets you see commands and what they do.

I tried to give you information about how to run chkdsk. If you have a question about “what does a chkdsk do”, you can ask our expert in the comment section below. For similar topics, you can visit our technology category.

Leave a Comment