Command Line Check Disk: As it is important to Check Disk Options, Switches, and Parameters which we use in every version of Microsoft Windows Operating System. These options are the inbuilt Windows utility and which are used to check the errors in the disk media and in the file system. Check Disk Options are available in the Chkdsk.exe which are used when we couldn’t able to save file, save folders or couldn’t able to open a file and we get the blue screen as it shows an error. So, whenever we need to fix or detect an error regarding the disk corruption then we need to run Windows Check Tool which is an inbuilt option available.
Command Line Check Disk Switches, Parameters:
Using ChkDsk.exe or Check Disk Utility, you can check file system error, lost clusters, bad sectors, and many other errors related to the disk corruptions. Windows Check Tool runs automatically when an abrupt shutdown or in case if the file system gets corrupted. As an interesting thing, Check Disk utility is available in two versions for Windows 10/8/7 and Windows Vista. One among the version available is the basic version which many of the users use and the other version which is command line version which has many premium options. To check for the basic version navigate as Open Computer/Right-click Drive/Properties/Tools Tab/Check Now. Now, select an option to Automatically Fix File System Errors and Scan For And Attempt Recovery Of Bad Sectors.
About Command-Line Check Disk:
Command-Line is the another version of the Check Disk which has many options when compared to the basic version other than just setting up the regular disk by using the Task Scheduler. To use the Command-Line Check Disk version then Open a Command Prompt using Run as administrator option and type chkdsk in the prompt. It opens then Chkdsk in the Read-only mode and then displays the status of the current drive.
Then if you type chkdsk/? and hit enter. You can see all the drive parameters or switches easily in the separate window. And if you need a report regarding the drive then use chkdsk C: and you can also use the following parameters which are used to specialize the operations.
Here am going to explain some of the valid FAT32/ NTFS volumes available
- /f Which is used to Fix the errors detected.
- /r Which Identifies Bad Sectors and attempts recovery of information.
- /v It Displays the list of each and every file in the directory, on FAT32. On NTFS, it displays the cleanup messages regularly.
The following are valid on NTFS volumes only.
- /c This command Skips cycles checking within the folder structure.
- /I It Performs a simple check of index entries in the folder.
- /x It always forces the volume to dismount and also invalidates all open file handles in the drive. So, this should be avoided in Desktop Computers because there is a possibility of data loss/corruption.
- /l[:size] Changes the size of the file which logs NTFS transactions mainly and which is intended for server administrators ONLY.
- Remember that when you boot the Windows Recovery Environment, You can use Only two switches which are available.
- /p Performs an Exhaustive Check of the current disk or the current drive.
- /r Repairs all the possible damage on the current disk.
The following switches work in Windows 10, Windows 8 on NTFS volumes only:
- /scan which is used to Run online scan.
- /forceofflinefix Which Bypass online repair and check defects for offline repair. You can also use it along with /scan.
- /perf Which Perform the scan as fast as possible on the current disk.
- /spotfix Which Performs spot repair in offline mode on the current disk.
- /offlinescanandfix Which Run an offline scan and perform fixes on the current disk.
- /sdcclean Collects all the Garbage collection in the current disk.
These switches are supported by Windows 10 on FAT/FAT32/exFAT volumes only:
- /freeorphanedchains Which Free up any orphaned cluster chains in the current disk or drive.
- /markclean As it Marks the volume clean if no corruption is detected in the disk.
How to Cancel a CHKDSK Scan:
Sometimes it is important to cancel the Scheduled check if required. So, to cancel the Check Disk you need to use the command chkntfs /x d: and click enter. Here d is the drive which you are using the Check Disk.
You can see a difference in the Disk Error Checking in the Windows 10/8 and in the earlier versions of the Windows. So, finally read the complete article to know about the Check Disk Error in the Windows Operating System.