chkdsk
Check file system and volume metadata for errors. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/chkdsk.
-
Specify the drive letter (followed by a colon), mount point, or volume name to check:
chkdsk {{volume}}
-
Fix errors on a specific volume:
chkdsk {{volume}} /f
-
Dismount a specific volume before checking:
chkdsk {{volume}} /x
-
Change the log file size to the specified size (only for NTFS):
chkdsk /l{{size}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.