Displays disk status and corrects errors found on the specified disk.
chkdsk [drive:][[path] filename] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:size]]
| Parameters | |
|---|---|
| | |
| Parameter | Purpose |
| | |
| None | Displays disk status for the current drive. |
| [drive:] | Specifies the drive to be checked. |
| [path] filename | Specifies files to be checked for fragmentation. |
| [/f] | Repairs disk errors. |
| [/v] | Displays the name of each file that is processed. |
| [/r] | Finds bad sectors and attempts to recover lost data. |
| [/x] NTFS only. Forces the volume dismount on NTFS volumes. | |
| Parameters | |
|---|---|
| | |
| Parameter | Purpose |
| | |
| [/i] | NTFS only. Speeds up chkdsk by performing a less extensive check on NTFS volumes. |
| [/c] | NTFS only. Eliminates checking of cycles inside folders on NTFS volumes. |
| /l[:size] NTFS only. Displays or changes log file size on NTFS volumes. | |