Name

Chkdsk — \windows\system32\chkdsk.exe

Synopsis

Chkdsk scans the disk surface, checks the integrity of files and folders, and looks for lost clusters (among other things), correcting any problems that are found, and sometimes even freeing disk space consumed by unusable fragments of data. To use chkdsk effectively, include the following optional parameters:

chkdsk [drive[filename]] [/f] [/r] [/x] [/i] [/c] [/v]

Option

Description

/f

Fix any errors found. If /f is omitted, errors are merely reported, and no changes to the disk are made.

/r

Locates bad sectors and recovers readable information.

/x

Forces the volume to dismount before the scan is performed.

/i

Performs a less vigorous check of index entries.

/c

Skips checking of cycles within the folder structure.

/v

Use /v to display a list of every file on a FAT or FAT32 volume; it has no meaning on an NTFS disk.

Get Windows XP Pocket Reference 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.