Forrest logo
tool overview
On this page you find all important commands for the CLI tool chkdsk. If the command you are looking for is missing please ask our AI.

chkdsk

Chkdsk, short for "check disk," is a command line tool available in Windows operating systems. It is used to analyze, diagnose, and repair issues with the file system and disk integrity.

Chkdsk scans the file system to detect any physical and logical errors, such as bad sectors, lost clusters, and cross-linked files. It can be utilized for both local hard drives as well as external storage devices.

When run with the "/f" parameter, chkdsk automatically fixes errors encountered during the scan, making it a valuable tool for troubleshooting various disk-related problems.

Additionally, it can also be used with the "/r" parameter to detect and recover information from damaged sectors on the disk. This can help recover data and prevent further corruption or loss.

The chkdsk command can be executed from the Command Prompt or through the Windows Recovery Environment for more advanced disk repair options.

It provides a detailed report after completion, which displays the number of files, folders, and disk space scanned, as well as any errors found and repaired during the process.

Overall, chkdsk is an essential command line tool that helps maintain the health and integrity of the file system and is often used to troubleshoot disk issues in Windows.

List of commands for chkdsk:

  • chkdsk:tldr:4cff5 chkdsk: Dismount a specific volume before checking.
    $ chkdsk ${volume} /x
    try on your machine
    explain this command
  • chkdsk:tldr:bbf68 chkdsk: Fix errors on a specific volume.
    $ chkdsk ${volume} /f
    try on your machine
    explain this command
  • chkdsk:tldr:d5b59 chkdsk: Specify the drive letter (followed by a colon), mount point, or volume name to check.
    $ chkdsk ${volume}
    try on your machine
    explain this command
  • chkdsk:tldr:f3339 chkdsk: Change the log file size to the specified size (only for NTFS).
    $ chkdsk /l${size}
    try on your machine
    explain this command
tool overview