CHKDSK
(The full name is Microsoft Check Disk, which means disk check) is a command program that can run on DOS , OS/2 and Windows operating systems . When the system has a false crash or an illegal shutdown, the system will call it to check the disk , and the user can also manually call it to check a certain disk partition through the command line . The program generates a disk status report based on the file system used by the detected disk , and if parameters are provided , the program can also repair logical errors in various disk file systems.
Chkdsk.exe checks C:\ |
|
other names | Chkdsk |
---|
Commands and parameters
When running CHKDSK, if you do not specify /f or any implicit /f parameters, CHKDSK will only display the disk status of the detected disk, and will not make any changes to the disk. If /f is specified or the parameter of /f is implied, the corresponding operation will be performed on the specified disk according to the parameters.
grammar
chkdsk [<volume>[[<path>]<filename>]] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:<size>]] [/b]
parameter list
volume | Specify a drive letter, mount point, or volume name. |
[path]filename | Specifies the path and name of a file or set of files to be examined by CHKDSK . Wildcards (* or ?) can be used to specify. |
/f | Repair errors on disk. The disk must be locked. If CHKDSK cannot lock the drive, a message is displayed asking the user if they want to check the drive the next time the computer is restarted . |
/v | When checking the disk, all checked files under each directory will be displayed in the command prompt . |
/r | Scan for bad sectors and recover readable information. The disk must be locked. (implies /f when /scan is not specified) |
/x | Only for partitions in NTFS format. If necessary, the volume is forcibly dismounted first . All open handles to this drive are invalid. (implies /f) |
/i | Only for partitions in NTFS format. A less intensive check of index entries can reduce the time required for CHKDSK to run. |
/c | Only for partitions in NTFS format. By skipping the cycle checks in the folder structure , you can reduce the time it takes for CHKDSK to run. |
/l[:size] | Only for partitions in NTFS format. Change the size of the log file to the size entered by the user. If this parameter is omitted, typing /l will display the size of the current log file. |
/b | Only for partitions in NTFS format. Used to re-evaluate bad clusters on the volume . (implies /r) |
/scan | Only for partitions in NTFS format. Run an online scan on the volume. |
/forceofflinefix | Only for partitions in NTFS format. (must be used with "/scan") Skip all online repairs, all faults found are queued for offline repairs. (i.e. "/spotfix") |
/perf | Only for partitions in NTFS format. (Must be used with "/scan") Use more system resources to complete the scan as quickly as possible. This may negatively affect the performance of other tasks running on the system. |
/spotfix | Only for partitions in NTFS format. Run point repair on the volume. |
/sdcleanup | Only for partitions in NTFS format. Recycle unneeded security descriptor data (implies /f) |
/offlinescanandfix | Run an offline scan on the volume and repair it. |
/freeorphanedchains | Only for partitions in FAT/FAT32/exFAT format. Release all orphaned cluster chains without restoring their contents. |
/markclean | Only for partitions in FAT/FAT32/exFAT format. If no corruption is detected, the volume is marked clean, even if /F is not specified. |
/? | Display help for CHKDSK in Command Prompt . |
reference link
- ^ . Microsoft. 10/09/2019 [2021-07-24]. ( Original content archived on 2021-07-15) (English).
related entries
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.