Disk Utility is the built-in macOS app for managing internal and external drives, volumes, and disk images. You can erase, format, partition, repair, and mount or unmount storage devices. This guide walks you through the most common tasks, from opening the app to fixing first-aid issues, so you can confidently handle drive maintenance without third-party software.
What You’ll Need
- A Mac running macOS (any recent version, including Sonoma or Ventura).
- An administrator account (for most operations).
- An external drive, USB stick, or SD card if you plan to format or erase it.
- A backup of any data on the drive you intend to erase or partition (this is critical).
Step-by-Step
- Open Disk Utility. Click the Finder icon in the Dock, then go to Applications > Utilities and double-click Disk Utility. Alternatively, press Command + Space to open Spotlight, type “Disk Utility,” and press Return.
- Understand the interface. The sidebar on the left lists all connected disks and volumes. Under “Show All Devices” (View menu > Show All Devices), you’ll see physical disks (e.g., “APPLE SSD”), containers (e.g., “Container disk1”), and volumes (e.g., “Macintosh HD”). Click the disclosure triangles to expand.
- Get drive information. Select any disk, container, or volume, then click the Info button (the “i” icon) in the toolbar. This shows capacity, connection type, and partition map type. Useful before formatting.
- Run First Aid. To repair a disk that’s acting up (e.g., won’t mount, slow, or errors), select the volume (or the whole disk) and click First Aid. Click Run and wait. First Aid checks the filesystem and fixes minor issues. It’s safe to run on a boot volume, but you may need to restart in Recovery Mode to repair the startup disk if it fails.
- Erase a drive. Select the disk (not the volume) you want to erase. Click Erase. Choose a name, format (see Tips below), and scheme (for disks, choose GUID Partition Map for Intel and Apple Silicon Macs). Click Erase again to confirm. This permanently deletes all data on the disk.
- Partition a disk. Select a disk, click Partition. Click the “+” button to add a partition. Adjust the size by dragging the pie chart or entering a number. Choose a format for the new partition. Click Apply. This creates a new volume on the same physical disk.
- Create a disk image. To back up a folder or drive as an image, go to File > New Image > Image from Folder (or from Disk). Choose the source, set encryption if needed, and select a format (e.g., “read-only” or “compressed”). Click Save. This creates a .dmg file.
- Mount or unmount a volume. To unmount, click the eject icon next to the volume in the sidebar. To mount an unmounted volume, select it and click Mount (or double-click it in Finder).
- Convert a disk image. With a .dmg selected, go to File > Convert. Choose a new format (e.g., “UDRW” for read/write, “UDZO” for compressed) and save. Useful for changing an image from read-only to writable.
- Resize a volume. Select a volume (not the disk) and click Partition. Drag the resize handle or enter a new size. You can only shrink or expand within the free space on the same disk. Click Apply.
Common Mistakes
- Erasing the wrong disk. Always double-check the disk name and capacity. Forgetting to back up is the biggest mistake – erasing is permanent.
- Choosing the wrong format. For a Mac-only drive, use APFS or Mac OS Extended (Journaled). For Windows compatibility, use ExFAT (not FAT32 for files over 4GB). For Time Machine, use Mac OS Extended (Journaled) or APFS depending on macOS version.
- Selecting a volume instead of the whole disk. When erasing, if you select a volume, you only erase that volume, not the entire disk. To completely wipe a disk, select the top-level disk entry.
- Ignoring First Aid results. If First Aid reports errors it can’t fix, don’t ignore them – they may indicate a failing drive.
- Partitioning while the drive is in use. You can’t partition a disk that has active processes (like Time Machine running). Unmount or quit those apps first.
Tips
- Use APFS for SSDs. APFS is optimized for solid-state drives and is the default for macOS High Sierra and later. For older spinning hard drives, Mac OS Extended (Journaled) is fine.
- For external drives that need to work with both Mac and Windows, choose ExFAT. It handles large files and works on both OSes without extra software.
- Always eject drives properly. Click the eject icon before unplugging to avoid data corruption.
- Use “Erase” with “Security Options” for sensitive data. Click the “Security Options” button during erase to overwrite data multiple times (slower but more secure).
- Create a disk image of a bootable drive. This can be a lifesaver for cloning your system before upgrades.
- Check the “Show All Devices” view. It reveals hidden containers and physical disks, essential for full control.
Troubleshooting
- First Aid fails on the startup disk. You can’t repair the boot volume while it’s in use. Restart your Mac and hold Command + R to enter Recovery Mode. Open Disk Utility from there and run First Aid on the startup volume.
- Drive doesn’t appear in Disk Utility. Check connections (USB/Thunderbolt), try a different port or cable. If it’s a new drive, it may need to be formatted first – it might not show in Finder but should appear in Disk Utility.
- “Erase” button is greyed out. You may have selected a volume that’s part of a container. Select the parent disk instead. Also, make sure you have admin privileges.
- Partition fails with “Couldn’t modify partition map.” This often happens if the disk is full or has a corrupt partition map. Back up data, then erase the whole disk and start fresh.
- Can’t mount an external drive. Run First Aid on the volume. If that doesn’t work, try another Mac or a different cable. If the drive is making clicking noises, it may be failing – stop using it and seek professional data recovery.
Frequently Asked Questions
What is the difference between APFS and Mac OS Extended?
APFS is the modern file system for SSDs, offering better performance, snapshots, and space sharing. Mac OS Extended (HFS+) is older but works well on spinning hard drives and is compatible with older Macs. For most users, APFS is the best choice.
Can I use Disk Utility to recover deleted files?
No. Disk Utility is for managing disks, not recovering files. For deleted file recovery, you need third-party software or a backup from Time Machine. If you accidentally erased a drive, stop using it immediately and seek data recovery tools.
Is it safe to run First Aid on my Mac’s startup disk?
Yes, but you can’t repair the startup disk while it’s running. You need to boot from Recovery Mode (Command + R) and run First Aid there. Running it from the normal desktop may show errors because the disk is in use.
How do I format a USB drive for both Mac and Windows?
Choose “ExFAT” as the format when erasing. This works on both macOS and Windows without extra software. Note that the drive won’t be bootable on a Mac, but it’s perfect for file transfer.
Why does Disk Utility show a “Container disk1” and what is it?
A container is a logical storage area within a physical disk that holds one or more volumes (like APFS volumes). It’s a normal part of APFS. You usually don’t need to manage containers directly unless you’re advanced.
Can I resize my Mac’s internal hard drive partition without losing data?
Yes, you can shrink or expand an APFS volume if there’s free space on the same container. Use the Partition feature. However, always back up before resizing, as unexpected errors can cause data loss.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- MacBook Charger Not Working? Fix It Now
- Fix Windows Cannot Be Installed to This Disk
- Zoom on iPhone & iPad: Host or Join a Meeting
- Fix iPhone SE 4 Unable to Activate: Step-by-Step
- Keep Important Emails From Getting Buried in iPhone Mail Categories
- How to Clear RAM on iPhone: Speed It Up