what is the purpose of command chkdsk
CHKDSK (short for check disk) is a system tool in DOS, OS/2 and Windows. It verifies the file system integrity of a volume and fixes logical file system errors. It is similar to the fsck command in Unix. On Windows NT operating systems, CHKDSK can also check the disk surface for bad sectors and mark them.