Fsutil repair


Applies To: Windows Server 2008 R2,Windows Server 2008,Windows Vista,Windows 7

Administers and monitors NTFS self-healing repair operations.

For examples of how to use this command, see Examples.

Syntax


Copy Code

fsutil repair [initiate] <VolumePath> <FileReference>
fsutil repair [query] <VolumePath>
fsutil repair [set] <VolumePath> <Flags>
fsutil repair [wait][<WaitType>] <VolumePath>

Parameters

Parameter

Description

initiate

Initiates NTFS self-healing.

<VolumePath>

Specifies the volume as the drive name followed by a colon.

<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.

The Flags 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.

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. WaitType can be set to the following values:

  • 0: Waits for all repairs to complete. (default value)

  • 1: Waits for the current repair to complete.

Remarks

Examples

To enable self-healing repair on drive C, type:


Copy Code

fsutil repair set c: 1

To disable self-healing repair on drive C, type:


Copy Code

fsutil repair set c: 0

Additional references

Command-Line Syntax Key

Fsutil

Self Healing NTFS