Chkdsk Command to check the health of Disk
chkdsk command to Display a status report of Disk and Repairs Disk related problems, produces a report that shows the the block /cluster size and Bad Sectors.
Syntax
CHKDSK [Drive:]
volume | Specifies the drive letter Example. C: |
filename | FAT/FAT32 only, filename 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. |
/R | Scan bad sectors and recovers readable information (implies /F). |
/L:size | Changes the log file size to the specified number of kilobytes. (NTFS only). |
/X | Forces the volume to dismount. All opened handles to the volume shall be invalid (implies /F). |
/I | Check of index entries. (NTFS only) |
/C | Skips corruption check within the folder |
/B | 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. |
Example:
CHKDSK C: /F
CHKDSK D: /F
Fixing Errors /F
If the drive is the boot partition, you will be prompted to schedule the check during the next boot
Chkdsk /f will lock the volume/drive and data will not available until chkdsk is finished.
Chkdsk /f may take a long time to complete if there are large number of files (millions) stored.
Chkdsk command will scan only if /f switch is not added.
Run at Bootup
Running at bootup is often the easiest way to close all open file handles.
Cluster (or block) Size
CHKDSK produces a report that shows the the block /cluster size
Default: “4096 bytes in each allocation unit.”
NTFS compression functions are not available, when the cluster size is greater than 4 KB on an NTFS volume.