2020-10-12 14:07:03 +01:00
|
|
|
# chkdsk
|
|
|
|
|
|
|
|
> Check file system and volume metadata for errors.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/chkdsk>.
|
2020-10-12 14:07:03 +01:00
|
|
|
|
|
|
|
- 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}}`
|