CmdID

CmdID / Commands / fsutil

fsutil repair

Administers and monitors NTFS self-healing repair operations. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Administers and monitors NTFS self-healing repair operations. Self-healing NTFS attempts to correct corruptions of the NTFS file system online, without requiring Chkdsk.exe to be run. For more information, see Self-healing NTFS.

fsutil repair [enumerate] <volumepath> [<logname>]
fsutil repair [initiate] <volumepath> <filereference>
fsutil repair [query] <volumepath>
fsutil repair [set] <volumepath> <flags>
fsutil repair [wait][<waittype>] <volumepath>
fsutil repair enumerate C: $Corrupt
fsutil repair set c: 1
fsutil repair set c: 0
enumerateEnumerates the entires of a volume's corruption log.
<logname>Can be $corrupt, the set of confirmed corruptions in the volume or $verify, a set of potential, unverified corruptions in the volume.
initiateInitiates NTFS self-healing.
<filereference>Specifies the NTFS volume-specific file ID (file reference number). The file reference includes the segment number of the file.
queryQueries the self-healing state of the NTFS volume.
setSets the self-healing state of the volume.
<flags>Specifies the repair method to be used when setting the self-healing state of the volume. This parameter can be set to three values: - 0x01 - Enables general repair. - 0x09 - Warns about potential data loss without repair. - 0x00 - Disables NTFS self-healing repair operations.
stateQueries the corruption state of the system or for a given volume.
waitWaits for repair(s) to complete. If NTFS has detected a problem on a volume on which it is performing repairs, this option allows the system to wait until the repair is complete before it runs any pending scripts.
[waittype {0|1}]Indicates whether to wait for the current repair to complete or to wait for all repairs to complete. The waittype parameter can be set to the following values: - 0 - Waits for all repairs to complete. (default value) - 1 - Waits for the current repair to complete.