# 磁盘工具

**磁盘工具**（Disk Utility）是Apple的macOS系统内置的一款系统应用，用于创建、格式化、分区、修复、加密和制作存储设备映像，并管理APFS卷与软件RAID集。它位于“应用程序”文件夹内的“实用工具”文件夹中，也可以从macOS恢复模式（Mac无法正常启动时所用的恢复环境）中打开。<sup>[1](https://support.apple.com/en-us/102611)</sup><sup> • </sup><sup>[2](https://support.apple.com/en-gb/guide/disk-utility/welcome/mac)</sup>

| 关键事实 | 详情 |
|---|---|
| 首次发布 | 随2000年Mac OS X首个公开测试版捆绑发布；是该版本中少数一直存续至macOS红杉（Sequoia）的工具之一<sup>[3](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)</sup> |
| 核心功能 | 抹掉与格式化、分区、急救修复、磁盘映像、RAID集、APFS卷管理、密码加密<sup>[2](https://support.apple.com/en-gb/guide/disk-utility/welcome/mac)</sup> |
| 修复工具 | 急救会检查并修复格式化与目录结构方面的错误；它无法检测或修复所有问题<sup>[4](https://support.apple.com/en-gb/guide/disk-utility/-dskutl1040/mac)</sup> |
| APFS支持 | 随macOS高山脉（High Sierra，10.13）的磁盘工具17.0首次引入；APFS卷可自动扩容与缩容，无需重新分区<sup>[3](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)</sup><sup> • </sup><sup>[2](https://support.apple.com/en-gb/guide/disk-utility/welcome/mac)</sup> |
| 命令行对应工具 | `diskutil`，可在“终端”中挂载、卸载、验证、抹掉、分区及操作RAID集<sup>[5](https://developer.apple.com/library/archive/documentation/OpenSource/Conceptual/ShellScripting/ForMoreInformation/ForMoreInformation.html)</sup> |
| RAID历史 | RAID配置在OS X酋长岩（El Capitan）中被移除，后在macOS山脉（Sierra）的磁盘工具16.0中重新引入<sup>[6](https://www.macworld.com/article/3095835/storage/how-to-configure-a-software-raid-in-macos-sierra-s-disk-utility.html)</sup> |
| macOS太浩湖（Tahoe）26新增 | 支持Apple稀疏映像格式（ASIF），这是一种节省空间的映像格式，可在磁盘工具中或通过`diskutil image`创建<sup>[7](https://developer.apple.com/documentation/macos-release-notes/macos-26-release-notes)</sup> |

## 历史

磁盘工具源自三款各自独立的经典Mac OS程序。在[Mac OS 9](https://www.edgepedia.org/zh/mac-os-9)中，格式化由“驱动器设置”（Drive Setup）负责，修复由“磁盘急救”（Disk First Aid）负责（其工作分为“验证”与“修复”两步），磁盘映像相关工作则由“磁盘拷贝”（Disk Copy）负责。Mac OS X将这些功能合并为单一的磁盘工具应用，同时保留“验证”与“修复”为两项独立操作，后来又以一组标签页的形式呈现。<sup>[3](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)</sup>到Mac OS X的黑豹（Panther）版本时，磁盘工具还吸收了早期Mac OS X版本中的磁盘拷贝工具，其界面也经过了全面改造。<sup>[8](https://flylib.com/books/en/2.682.1.166/1/)</sup>

该应用的功能集随每一代macOS而不断变化。多年来它还会验证并修复磁盘权限，这项任务在酋长岩引入系统完整性保护（System Integrity Protection）后即告终止。<sup>[3](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)</sup>RAID管理在酋长岩的重新设计中被移除，后在山脉中回归。<sup>[6](https://www.macworld.com/article/3095835/storage/how-to-configure-a-software-raid-in-macos-sierra-s-disk-utility.html)</sup>对Apple的APFS文件系统的支持随高山脉的磁盘工具17.0到来，不过早期APFS版本不提供快照访问；基本的快照工具是后来才加入的。<sup>[3](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)</sup>

## 用急救修复磁盘

急救是磁盘工具的修复工具。它会检查并修复与存储设备的格式化和目录结构相关的错误——这类问题可能导致应用意外退出、文件损坏、外接设备行为异常，或Mac无法启动。Apple明确表示，它无法检测或修复磁盘可能存在的所有问题，并且对于已被报告即将故障的磁盘也无法修复；此时应备份数据并更换磁盘。<sup>[4](https://support.apple.com/en-gb/guide/disk-utility/-dskutl1040/mac)</sup>

推荐的操作流程是自下而上遍历存储层级。先选择“显示”>“显示所有设备”，让边栏列出设备、容器和卷，然后依次对每个卷、每个容器、最后对存储设备本身运行急救。如果要检查的是启动磁盘，或Mac无法完全启动，则应从macOS恢复模式中运行磁盘工具。<sup>[4](https://support.apple.com/en-gb/guide/disk-utility/-dskutl1040/mac)</sup><sup> • </sup><sup>[1](https://support.apple.com/en-us/102611)</sup>在典型的APFS启动磁盘上，边栏会显示物理设备、一个容器、一个卷组，以及名为Macintosh HD和Macintosh HD - Data的卷；数据卷应与系统卷一同检查。<sup>[1](https://support.apple.com/en-us/102611)</sup>

当急救报告“范围重叠分配”错误时，意味着两个或更多文件占用了同一块磁盘空间，其中至少有一个很可能已损坏；受影响的文件会被列出，其替身会被放入磁盘顶层名为DamagedFiles的文件夹中。如果修复完全失败，Apple的建议是尽可能备份数据、重新格式化磁盘、重新安装macOS，然后恢复备份的数据。<sup>[4](https://support.apple.com/en-gb/guide/disk-utility/-dskutl1040/mac)</sup>

## APFS卷与容器

借助macOS 10.13引入的Apple文件系统（APFS），磁盘工具可以在不重新分区的情况下在存储设备上添加和删除卷，因为APFS格式的卷会在共享容器内自动扩容与缩容。<sup>[2](https://support.apple.com/en-gb/guide/disk-utility/welcome/mac)</sup>磁盘工具还可以将外接卷从HFS+转换为APFS格式。<sup>[9](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/APFS_Guide/FAQ/FAQ.html)</sup>虽然APFS没有内置的软件RAID，但APFS格式的卷可以与Apple RAID卷搭配使用，从而实现RAID 0条带化、RAID 1镜像和JBOD串联。<sup>[9](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/APFS_Guide/FAQ/FAQ.html)</sup>

## 磁盘映像

磁盘工具可创建和操作磁盘映像，其中包括自早期起便是该工具核心功能之一的.dmg格式。<sup>[3](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)</sup>从磁盘或已连接的设备制作的映像会同时包含数据与可用空间，因此一块存有10 GB数据的80 GB设备会生成一个80 GB的映像；而从文件夹制作的映像只包含数据，在上例中约为10 GB。可用格式包括只读（UDRO）、只读压缩（ULFO）、RAW和DVD/CD母盘（.cdr），并且映像可以用密码加密。<sup>[10](https://support.apple.com/en-ie/guide/disk-utility/dskutl11888/mac)</sup>

有两条与APFS相关的限制：不能为单个APFS卷创建映像，也不能在搭载[苹果芯片](https://www.edgepedia.org/zh/apple-silicon)（Apple silicon）或Apple T2安全芯片的Mac上为APFS容器创建映像。<sup>[10](https://support.apple.com/en-ie/guide/disk-utility/dskutl11888/mac)</sup>Apple还警告不要对疑似故障的磁盘制作映像，因为该映像可能无法作为可靠的备份。<sup>[10](https://support.apple.com/en-ie/guide/disk-utility/dskutl11888/mac)</sup>

**ASIF映像。** macOS太浩湖26新增了对Apple稀疏映像格式（ASIF）的支持，这种映像节省空间，其占用空间与所含数据量成正比。它可以通过`diskutil image`命令行工具或磁盘工具创建，适用于为虚拟机提供后备存储等用途（通过虚拟化框架）。<sup>[7](https://developer.apple.com/documentation/macos-release-notes/macos-26-release-notes)</sup>Apple的[虚拟化](https://www.edgepedia.org/zh/virtualization)文档同样指出，可以使用磁盘工具以交互方式创建ASIF或RAW磁盘映像。<sup>[11](https://developer.apple.com/documentation/Virtualization/VZDiskImageStorageDeviceAttachment?changes=latest_major%2Clatest_major&language=obj_8%2Cobj_8)</sup>

## RAID集

磁盘工具是Apple软件RAID实现的前端。设置和配置RAID的功能在酋长岩的重新设计中被移除，后在macOS山脉的磁盘工具16.0中恢复，用户可以在其中创建和管理RAID集、添加或删除磁盘、卸载成员，以及修复镜像集中的磁盘。<sup>[6](https://www.macworld.com/article/3095835/storage/how-to-configure-a-software-raid-in-macos-sierra-s-disk-utility.html)</sup><sup> • </sup><sup>[2](https://support.apple.com/en-gb/guide/disk-utility/welcome/mac)</sup>

## 命令行与相关工具

`diskutil`命令是磁盘工具应用对应的命令行工具；它可以挂载和卸载卷、检查磁盘一致性、执行安全擦除、对磁盘分区，以及操作RAID集。<sup>[5](https://developer.apple.com/library/archive/documentation/OpenSource/Conceptual/ShellScripting/ForMoreInformation/ForMoreInformation.html)</sup>磁盘映像在命令行中由`hdiutil`处理，文件系统一致性检查则由`fsck`及其针对各格式的变体（如`fsck_hfs`）完成。<sup>[5](https://developer.apple.com/library/archive/documentation/OpenSource/Conceptual/ShellScripting/ForMoreInformation/ForMoreInformation.html)</sup>

磁盘工具也出现在Apple的恢复与安装流程中。Apple关于创建可启动macOS安装器的说明中，会告诉遇到“安装器无效”错误的用户先用磁盘工具修复启动磁盘，然后再重新下载。<sup>[12](https://support.apple.com/en-ie/101578)</sup>

## 局限与替代方案

磁盘工具的范畴是磁盘结构，而非存储分析或数据恢复。它不提供显示空间占用情况的可视化图示，DaisyDisk、GrandPerspective和OmniDiskSweeper等第三方磁盘空间分析器填补了这一角色。<sup>[13](https://nijia.app/blog/macos-disk-space-analyzer/)</sup>对于HFS+卷的目录级修复，DiskWarrior等第三方工具历来能够挽救磁盘工具已放弃的磁盘，不过DiskWarrior并未过渡到APFS，因此在APFS上磁盘工具仍是可用的选择。<sup>[3](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)</sup>第三方分区管理器也宣称在macOS、Linux和Windows格式上具有更广的文件系统覆盖范围，定位于磁盘工具失效的情形。<sup>[14](https://thesweetbits.com/best-partition-manager-apps-for-mac/)</sup>

## References

1. [How to repair a Mac storage device with Disk Utility, Apple Support](https://support.apple.com/en-us/102611)
2. [Disk Utility User Guide for Mac, Apple Support](https://support.apple.com/en-gb/guide/disk-utility/welcome/mac)
3. [A brief history of Disk Utility and First Aid, The Eclectic Light Company](https://eclecticlight.co/2024/06/22/a-brief-history-of-disk-utility-and-first-aid/)
4. [Repair a storage device in Disk Utility on Mac, Apple Support](https://support.apple.com/en-gb/guide/disk-utility/-dskutl1040/mac)
5. [Other Tools and Information, Apple Developer Archive (Shell Scripting)](https://developer.apple.com/library/archive/documentation/OpenSource/Conceptual/ShellScripting/ForMoreInformation/ForMoreInformation.html)
6. [How to configure a software RAID in macOS Sierra's Disk Utility, Macworld](https://www.macworld.com/article/3095835/storage/how-to-configure-a-software-raid-in-macos-sierra-s-disk-utility.html)
7. [macOS Tahoe 26 Release Notes, Apple Developer Documentation](https://developer.apple.com/documentation/macos-release-notes/macos-26-release-notes)
8. [A Tour of Mac OS X Utilities, Mac OS X Bible, Panther Edition](https://flylib.com/books/en/2.682.1.166/1/)
9. [Apple File System Guide FAQ, Apple Developer Archive](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/APFS_Guide/FAQ/FAQ.html)
10. [Create a disk image using Disk Utility on Mac, Apple Support](https://support.apple.com/en-ie/guide/disk-utility/dskutl11888/mac)
11. [VZDiskImageStorageDeviceAttachment, Apple Developer Documentation](https://developer.apple.com/documentation/Virtualization/VZDiskImageStorageDeviceAttachment?changes=latest_major%2Clatest_major&language=obj_8%2Cobj_8)
12. [Create a bootable installer for macOS, Apple Support](https://support.apple.com/en-ie/101578)
13. [Mac disk space analyzers: features compared, Nijia](https://nijia.app/blog/macos-disk-space-analyzer/)
14. [Best Partition Manager Apps for Mac, TheSweetBits](https://thesweetbits.com/best-partition-manager-apps-for-mac/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Office and business software › Titles symbols to M › Titles 1 to G

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/disk-utility

English original: https://www.edgepedia.org/disk-utility
