CHKDSK (command shortening of Checkdisk) is a command in DOS and Microsoft Windows systems which verifies a hard disk or a floppy disk for file system integrity. It is similar to the fsck command in Unix. Under Windows NT, Windows 2000 and Windows XP, CHKDSK can also check the disk surface for bad sectors, a task previously done by SCANDISK. CHKDSK can also fix errors.
By default, CHKDSK neither fixes errors nor checks for bad sectors. In order to fix errors, the /F parameter should be specified. In order to check and fix bad sectors, the /R parameter should be specified.
When used under Windows with the /F or the /R parameter when there are open files on the disk (for instance if running it on the boot disk) CHKDSK suggests it be run on the next restart. If the user agrees, it will automatically run next time the computer is restarted.
Conducting a CHKDSK can take some time, especially if using the /R parameter. In order to view the results of a CHKDSK conducted on restart using Windows XP or Windows 2000,
Under Windows, CHKDSK can be run both from a console window, as a command with flags, and from My Computer application using visual interface. For the latter,