大网数据广告活动
Windows排障命令

fsutil repair

· 52CE 我爱测

Reference article for the fsutil repair command, which administers and monitors NTFS self-healing repair operations.

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:<ul><li>0x01 - Enables general repair.</li><li>0x09 - Warns about potential data loss without repair.</li><li>0x00 - Disables NTFS self-healing repair operations.</li></ul>
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}]`

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

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。