CHKDSK
: Checking for Hard Disk Errors
In Chapter 25, “Managing Hard Disks and Storage Spaces,” you learned how to use the Check Disk utility to check a hard disk for errors. Check Disk also comes with a command-line version called CHKDSK
that you can run in a Command Prompt window.
Here’s the syntax for CHKDSK
:
CHKDSK [volume [filename]] [/F] [/V] [/R] [/B] [/X] [/I] [/C] [/L:[size]]
volume
The drive letter (followed by a colon) or mount point.
filename
On FAT16 and FAT32 disks, the name of the file to check. Include the path if the file isn’t in the current folder.
/F
Tells CHKDSK
to automatically fix errors. This is the same as running the Check Disk GUI with the Automatically Fix File System Errors option activated.
/V
Runs CHKDSK
in verbose ...
Get Windows 8 In Depth 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.