+3 votes
162 views
in Setting by (242k points)
reopened
CHKDSK - Checking Disk Drives and Troubleshooting

1 Answer

+4 votes
by (1.6m points)
edited
 
Best answer

How to start CHKDSK from disk check
Start CHKDSK from the command line: instructions
Overview of the most important CHKDSK commands and parameters

image

CHKDSK - Checking Disk Drives and Troubleshooting

The CHKDSK command was already included in the early MS-DOS versions of Microsoft operating systems. Since Windows NT 3.1, CHKDSK runs as a 32-bit program, also compatible with NTFS-formatted disks. Additionally, since the Windows XP version, there is the option of checking disks with a simple graphical interface that uses the disk service in the background, but that only offers two of its many options. Discover in the following paragraphs the different CHKDSK commands and parameters and how you can use the tool..

So you can start CHKDSK:

Index
  1. How to start CHKDSK from disk check
  2. Start CHKDSK from the command line: instructions
  3. Overview of the most important CHKDSK commands and parameters
  • from checking disk in explorer
  • from the command line (command prompt or PowerShell), with all its functions

How to start CHKDSK from disk check

If you want to start CHKDSK via file explorer, right-click on a disk and select the context menu item? Properties ?. Then switch to the tab? Tools ?, where you will find the section? Error checking? together with the button? Check ?, which you should click.

image
You can check the errors of a unit by accessing it from the explorer.

After a short check, Windows 10 will automatically propose the necessary repair measures (in Windows 7 the repair options still had to be chosen manually). In principle, you can choose between two possibilities:

  • Automatically correct file system errors - Corresponds to the CHKDSK / f parameter .
  • Find / Reset Bad Sectors - Corresponds to the CHKDSK / r parameter .

Selecting one of these repair options will greatly increase the time required. Also, the unit being tested cannot be used during this time . For this reason, you should close all programs and also any browser windows that are using or displaying data from this unit..

You should avoid, as far as possible, accessing the drive being tested, even in read-only mode, otherwise the testing time will be significantly increased. It is best to close all programs and even third-party virus scanners to prevent their activities in the background.

Start CHKDSK from the command line: instructions

If you start CHKDSK from the command line, you can choose from many more verification options. In Windows 10, you can enter the CHKDSK commands at the command prompt or the new PowerShell, depending on your preferences. The latter option was not available in older versions of the operating system, such as Windows 7 or Windows 8. You can find out exactly how the tool is handled through the command line in the following step-by-step instructions ..

  1. First of all, close all the windows that show the unit you want to check and end all programs that may have access to the unit.
  2. Right-click on the Windows icon and open the system menu. There, select? Command Prompt (Administrator) ? or? Windows PowerShell (Administrator) ?. Depending on the version of Windows, only one of these two menu items will be displayed.
  3. If you are logged in as a limited user, you will need to enter the administrator password at this point.
  4. Enter CHKDSK and the letter of the drive you want to check.

From there, CHKDSK will run without any other parameters in read-only mode, so it won't change anything on the hard drive.

By means of additional parameters, test phases or special repair options can be activated. The basic syntax to consider when introducing CHKDSK commands is as follows:

 

  chksdk [unidad[[ruta]nombre de archivo]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:tamaño]] [/B] [/scan] [/spotfix]  

If no drive is entered, CHKDSK will run in the currently selected drive. The drive can be specified by the drive letter or, in the case of NTFS drives, it can also be specified as a directory path in which another drive is embedded.

On FAT32 drives, you can check individual directories or even just specific files. In NTFS, the indication of a directory is only possible when this directory is represented by its own partition in the directory tree.

Overview of the most important CHKDSK commands and parameters

The following table summarizes the basic CHKDSK commands and parameters and clarifies their meaning . Furthermore, the different commands are available for which file system and from which version of Windows .

CHKDSK command / parameter

Meaning

FAT32 / extFAT

NTFS

From the Windows version

Volume

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

x

x

 

filename

Specifies the specific files to check.

x

 

 

/F

Fix disk errors.

x

x

 

/ V

Displays the full path and name of each file on disk.

x

 

 

/ V

Displays cleaning messages if any.

 

x

 

/ R

Finds bad sectors and recovers readable information (implies use of / F if / scan is not specified ).

x

x

 

/ L: size

Changes the size of the log file to the specified number of KB. If no size is specified, it shows the current size.

 

x

 

/ X

Forces the volume to be unmounted first. No open processes on the volume will be valid (implies the use of / F ).

x

x

 

/ I

Performs index entry checking (less exhaustive).

 

x

 

/ C

Skip checking cycles within the folder structure.

 

x

 

/ B

Reassess the bad clusters on the volume (involves the use of / R ).

 

x

Windows 7

/ scan

Run an online exam.

 

x

Windows 10

/ forceofflinefix

Skip all online repairs (must be used with / scan ), all found defects are queued for offline repair (i.e chkdsk / spotfix ).

 

x

Windows 10

/ perf

Use more system resources to speed up the exam. This could adversely affect the performance of other tasks running on the system (must be used with / scan ).

 

x

Windows 10

/ spotfix

Repair the volume.

 

x

Windows 10

/ sdcleanup

Runs a garbage memory cleanup in the security descriptor's unnecessary data (involves the use of / F ).

 

x

Windows 10

/ offlinescanandfix

Run an offline scan and repair on the volume.

x

x

Windows 10

/ freeorphanedchains

Releases cluster strings that are no longer needed instead of reclaiming their content.

x

 

Windows 10

/ markclean

Mark the volume as error free.

x

 

Windows 10

Running CHKDSK with one of the repair options ( / F or / R ) usually increases the time required for the check. Even in standard read-only mode, you should access the inspected drive as little as possible during execution. The CHKDSK check can be canceled at any time with the key combination [Control] + [C].

The / I and / C options shorten the time required to run CHKDSK by skipping some checks.

Note

There are constantly open files on the system drive , so CHKDSK cannot run repair options on them. In this case, the option is offered to check the system drive at the next system startup with AutoChk.


...