CHKDSK is a command in the Windows command line to run a program, or utility, known as Check Disk. The Check Disk program is there to make sure that the computer’s files and file system are in order. It checks the file system and metadata of a volume for logical and physical errors then displays the correction of errors. In this article we discuss about 5 phases which are performed by CHKDSK during it verifies the file for errors.
CHKDSK Stages: How CHKDSK Preform its operation?
We have to understand first that how Check disk performs in command window. The whole activity of Chkdsk is divided in 3 major phases where it examine all metadata on the volume, where metadata is data about data. NTFS protects the metadata by using transaction log.
First Stage of CHKDSK- Verify Files
Second stage of Check Disk tool- Verify Indexes
Performing its second phase CHKDSK verifies indexes and count 0 to 100 in percent. In this stage CHKDSK examines all NTFS directories and calculation in percent which shows that those remaining directories which have to be checked. Here CHKDSK examines that each file and directory represented by FRS in MFT is referenced by at least one directory, and then it checks the various time stamps and size information of the file are updated or not. At the end of this stage CHKDSK confirms that there is no ‘Orphaned’ file, files which are listed in FRS but not listed in directories. If CHKDSK found the directory holds a file which is no longer exists then CHKDSK create a root directory and place the file there. If directory listings are found those FRSs which are not correspond to the file listed in directory, then CHKDSK remove that directory.
Third Stage of CHKDSK utility- Security Descriptor
Fourth & Fifth Stage of CHKDSK
This phase in check disk is only generated by using /R switch. /R is used to locate the bad sectors in volume’s free space and recovers the readable information. CHKDSK reads every sector on the volume to confirm stability. In fourth stage it verifies the clusters which are used and in Fifth pass it examines those clusters which are not in use.