> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/zh/virtual-machines/windows--slow-to-format-a-new-disk.md).

# Windows - 格式化新磁盘速度缓慢

Windows Server 2012（及更高版本）主机默认会发出 SCSI **TRIM** 以及 **取消映射** 等同于虚拟磁盘整个大小的命令。即使勾选了“执行快速格式化”选项，这种行为也是一样的，这会显著减慢格式化过程。

可以禁用 **SCSI TRIM** 以及 **取消映射** 在格式化期间主机上的该功能。

## 要禁用 TRIM 和 Unmap

使用 Windows **CMD** 窗口，在主机上执行以下命令：

```doscon
fsutil behavior set DisableDeleteNotify 1
```

## 要重新启用该功能

使用以下命令重新启用 **Trim 和 Unmap** 功能：

```doscon
fsutil behavior set DisableDeleteNotify 0
```

## 要验证当前设置

你可以验证当前 **Trim 和 Unmap** 设置，方法是执行以下命令：

```doscon
fsutil behavior query DisableDeleteNotify
```

输出将显示以下之一：

* **DisableDeleteNotify=0** - “Trim 和 Unmap” 功能 **在** （已启用）。
* **DisableDeleteNotify=1** - “Trim 和 Unmap” 功能 **关闭** （已禁用）。

{% hint style="info" %}
**受影响的版本**

* 只有 Windows Server 2012 及更高版本的主机受到影响。所有更早版本（例如 Windows 2008）都不会出现相同问题。
  {% endhint %}

{% hint style="info" %}
**非服务器版本**

* 非服务器版 Windows（例如 Windows 8.x 和 10.x）不支持 **DisableDeleteNotify** 参数。
  {% endhint %}

***

{% hint style="info" %}
**文档信息**

* 最后更新：2024-08-29
* VergeOS 版本：4.12.6
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/knowledge-base/zh/virtual-machines/windows--slow-to-format-a-new-disk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
