HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

chkdsk — Check file system and volume metadata for errors. More information: <https://learn.microsoft.com/win

Submitted by: @import:tldr-pages··
0
Viewed 0 times
volumecommandandclifilechkdskchecksystem
windows

Problem

How to use the chkdsk command: Check file system and volume metadata for errors. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/chkdsk>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: windows/chkdsk

Revisions (0)

No revisions yet.