Disk Utility

On this page 7

Disk Utility is the built-in macOS application for managing storage devices: it erases and formats disks, creates and deletes APFS volumes, partitions drives, checks and repairs file systems and creates disk images. In macOS storage & backup, it is the standard tool for preparing internal and external drives, and it is also available in macOS Recovery, where it repairs or erases the startup disk when the system itself cannot run.

Disk Utility is a graphical front end to the storage services that the diskutil and hdiutil command-line tools also use. It covers the everyday tasks safely, while some advanced operations remain available only in Terminal.

What Disk Utility does

Disk Utility performs five groups of storage tasks: erasing, partitioning, volume management, repair and imaging. Each group maps to a toolbar button or menu command, and each acts on the device, container or volume selected in the sidebar.

FunctionWhat it doesTypical use
EraseCreates a new file system and partition schemePreparing a new external drive
PartitionDivides a physical disk into partitionsAdding a separate HFS+ or exFAT area
Add or delete volumeCreates APFS volumes inside a containerSeparate volume for a beta macOS
First AidVerifies and repairs file system structuresDrive that will not mount or shows errors
RestoreCopies one volume or image onto anotherCloning a data volume to a new drive
Image creationBuilds DMG or sparse bundle filesArchiving or distributing folders
Main functions of Disk Utility

The sidebar shows only volumes by default. Choosing View, then Show All Devices reveals the physical disks and APFS containers, and many erase and partition errors come from selecting a volume when the operation requires the whole device.

Disks, containers and volumes in Disk Utility

Disk Utility displays storage as a three-level hierarchy of physical disk, APFS container and APFS volume. Understanding which level is selected is essential, because the same Erase button has very different effects at each level.

An APFS container occupies one partition and shares its free space among all volumes inside it. Volumes do not have a fixed size unless a reserve or quota is set, so adding a volume does not require resizing anything. A startup disk on current macOS contains a sealed System volume, a Data volume, plus Preboot, Recovery and VM volumes that Disk Utility hides unless the full view is active.

Selected itemWhat Erase removesResult
Physical diskEverything, including partition mapNew scheme, one new volume
APFS containerAll volumes in the containerEmpty container with one volume
APFS volumeOnly that volume’s contentsOther volumes stay intact
HFS+ or exFAT partitionThat partition’s contentsSame size, new file system
Effect of Erase at each level

Choosing a format and scheme

The correct format depends on which computers will read the drive and what it stores. Disk Utility offers APFS variants, Mac OS Extended (HFS+), exFAT and MS-DOS (FAT), together with a partition scheme, normally the GUID Partition Map.

FormatBest forLimitation
APFSSSDs and modern MacsNot readable by Windows without extra software
APFS (Encrypted)Portable drives with sensitive dataPassword needed on every connection
Mac OS Extended (Journaled)Older Macs and some hard disksNo snapshots or space sharing
exFATExchange between Mac and WindowsNo journaling, higher corruption risk
MS-DOS (FAT)Small drives for cameras or firmware toolsMaximum file size of 4 GB
Format choices in Disk Utility

The case-sensitive APFS variant should be chosen only when a specific application requires it, because some Mac software expects a case-insensitive file system. For Time Machine destinations, current macOS formats the drive as APFS automatically, and an existing HFS+ backup disk is kept as it is.

How First Aid repairs a disk

First Aid checks the consistency of file system metadata and repairs errors it can fix safely. It runs fsck_apfs or fsck_hfs in the background, verifying object maps, allocation records, snapshots and directory structures.

On the startup disk, First Aid runs in a live verification mode and can repair only a limited set of problems while macOS is running. Running it from macOS Recovery gives it exclusive access to the volume, which is why repairs of the startup disk are usually more successful there. The recommended order is volumes first, then the container, then the physical disk.

First Aid does not recover deleted files and cannot fix failing hardware. If it reports errors it cannot repair, or if the same errors return after every repair, the correct response is to back up immediately and plan to replace the drive.

Limits and common mistakes

The most consequential mistakes in Disk Utility involve erasing the wrong item or misreading what an operation will keep. Several advanced tasks also require Terminal.

  • Missing devices in the sidebar usually mean the default volume-only view is active.
  • Secure erase options are not offered for SSDs, because wear leveling makes overwriting unreliable; encryption plus erase is the effective method.
  • APFS cannot be converted back to HFS+ in place; the drive must be erased.
  • Resizing a container in use can fail if snapshots occupy the space being freed.
  • Commands such as diskutil apfs resizeContainer and diskutil list offer more control than the graphical app.

On Apple silicon Macs, erasing the internal startup disk from Recovery may also require reactivation with an Apple account before macOS can be reinstalled, so the account credentials should be available before starting.

Explained without jargon

Disk Utility is the Mac’s workshop for storage drives. It can wipe a drive clean, divide it into sections, check it for damage and copy one drive onto another.

The main thing to remember is that erasing really deletes everything on the item selected. Checking that the right drive is highlighted, and that a backup exists, prevents nearly every serious accident.

A typical use case

A video editor buys a 4 TB external SSD to move projects between a Mac at home and a Windows workstation in a studio. Connected to the Mac, the drive appears with a factory format that macOS cannot write to reliably.

In Disk Utility, the editor enables Show All Devices, selects the physical drive rather than its volume and erases it as exFAT with the GUID Partition Map. Both computers can now read and write the project files.

Months later, the drive stops mounting after being unplugged without ejecting. First Aid repairs the file system in a few minutes and every project opens again. The editor then keeps a second copy of active projects on an APFS drive, because exFAT has no journaling to protect against interrupted writes.