Dos Prompt Home Page Command Prompt Reference
CHKDSK

Checks a disk and displays a status report.


CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B]

volume         Specifies the drive letter (followed by a colon), mount point, or volume name.

filename        FAT/FAT32 only: Specifies the files to check for fragmentation.

/F                 Fixes errors on the disk.
/V                On FAT/FAT32: Displays the full path and name of every file on the disk.
                    On NTFS: Displays cleanup messages if any.
/R                Locates bad sectors and recovers readable information (implies /F).
/L:size          NTFS only: Changes the log file size to the specified number of kilobytes. If size is not specified, displays current size.
/X                Forces the volume to dismount first if necessary.
                    All opened handles to the volume would then be invalid (implies /F).
/I                 NTFS only: Performs a less vigorous check of index entries.
/C               NTFS only: Skips checking of cycles within the folder structure.
/B               NTFS only: Re-evaluates bad clusters on the volume (implies /R)

The /I or /C switch reduces the amount of time required to run Chkdsk by skipping certain checks of the volume.

Notes

Running this command can require a reboot.

Examples

chkdsk d: /f - runs the command on the D: drive fixing errors.

Associated Commands

CHKNTFS ; CONVERT

 

Top of the Page - Command Prompt Reference Home Page
Last Page Update: 08/03/2012

© Sembee Ltd. 1998 - 2024.

Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions.

All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned within and is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.

Sembee Ltd. is registered in England and Wales at 1 Carnegie Road, Newbury, Berkshire, RG14 5DJ.
Registered company number: 4704428. VAT Number GB 904 5603 43.

Server 1