fsutil repair
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8
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.
Syntax
fsutil repair [enumerate] <volumepath> [<logname>]
fsutil repair [initiate] <volumepath> <filereference>
fsutil repair [query] <volumepath>
fsutil repair [set] <volumepath> <flags>
fsutil repair [wait][<waittype>] <volumepath>
Parameters
Parameter | Description |
---|---|
enumerate | Enumerates 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. |
initiate | Initiates NTFS self-healing. |
<filereference> |
Specifies the NTFS volume-specific file ID (file reference number). The file reference includes the segment number of the file. |
query | Queries the self-healing state of the NTFS volume. |
set | Sets 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:
|
state | Queries the corruption state of the system or for a given volume. |
wait | Waits 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:
|
Examples
To enumerate the confirmed corruptions of a volume, type:
fsutil repair enumerate C: $Corrupt
To enable self-healing repair on drive C, type:
fsutil repair set c: 1
To disable self-healing repair on drive C, type:
fsutil repair set c: 0
Related links
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για