Name
chkdsk
Synopsis
Verifies and fixes the integrity of a filesystem on a disk.
Syntax
chkdsk [volume
[ [[path
]filename
] ] ] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:size
] ]
Options
-
none
Displays status of current drive.
-
volume
Specifies drive to check. This can be a drive letter followed by a colon, a volume mount point, or a volume name.
-
[path] filename
Lists specific file(s) to check using
chkdsk
(wildcards are acceptable).-
/f
Fixes any disk errors found.
-
/v
Verbose mode (displays the name of each file checked).
-
/r
Recovers readable information from bad sectors.
-
/l[:
size
]
Specifies log-file size (NTFS only). Current size is displayed if no size is specified.
-
/x
Forces volume to dismount first if necessary (NTFS only and new to Windows 2000) and fixes any disk errors found. Note that all open handles to the disk are then invalid. You cannot force-dismount the system volume.
-
/i
Performs a quick check of index entries only (NTFS only).
-
/c
Speeds check by ignoring cycles within folder structure (NTFS only).
The following options are new to Windows 2000 and are available only when running the Recovery Console (see Recovery Console):
-
/p
Performs an exhaustive check on the drive regardless of whether
chkdsk
is marked to run (does not fix errors).-
/r
Recovers readable information from bad sectors (implies
/p
).
Examples
Check drive C:
, but don’t fix any errors
found:
chkdsk C:
Typical output might be:
The type of the file system is NTFS. WARNING! F parameter not specified. Running CHKDSK in read-only ...
Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.