Repair a storage device in Disk Utility on Mac
Disk Utility can check for and fix errors related to the formatting and directory structure of a Mac storage device.
Disk Utility can fix certain disk problems — for example, multiple apps quit unexpectedly, a file is corrupted, an external device doesn’t work properly, or your computer won’t start up. Disk Utility can’t detect or repair all problems that a disk may have.
To check and repair a disk, you need to run First Aid on each volume and container on the storage device in turn, then run it on the storage device itself.
If Disk Utility tells you the disk is about to fail, back up your data and replace the disk — you can’t repair it.
In the Disk Utility app on your Mac, choose View > Show All Devices.
If Disk Utility isn’t open, click the Launchpad icon in the Dock, type Disk Utility in the Search field, then click the Disk Utility icon .
Note: If you’re checking your startup disk or startup volume, restart your computer in macOS Recovery. See the Apple Support article About macOS Recovery on Intel-based Mac computers. Next, select Disk Utility in the macOS Recovery window, then click Continue. If you check your startup volume (Macintosh HD), make sure you also check your data volume (Macintosh HD - Data).
In the sidebar, select a volume, then click the First Aid button .
In the First Aid dialogue, click Run, then follow the onscreen instructions.
When the First Aid process is complete, click Done.
Repeat steps 2 to 4 for each volume on the storage device.
In the sidebar, select a container, then click the First Aid button .
In the First Aid dialogue, click Run, then follow the onscreen instructions.
When the First Aid process is complete, click Done.
Repeat steps 6 to 8 for each container on the storage device.
In the sidebar, select the storage device, then click the First Aid button .
In the First Aid dialogue, click Run, then follow the onscreen instructions.
When the First Aid process is complete, click Done.
If Disk Utility reports that the disk appears to be OK or has been repaired, you’ve finished. You can click Show Details to see more information about the repairs. Otherwise, you may need to do one of the following.
If Disk Utility reports “overlapped extent allocation” errors, two or more files occupy the same space on your disk, and at least one of them is likely to be corrupted. You need to check each file in the list of affected files. Most of the files in the list have aliases in a DamagedFiles folder at the top level of your disk.
If you can replace a file or recreate it, delete it.
If it contains information you need, open it and examine its data to make sure it hasn’t been corrupted.
If Disk Utility can’t repair your disk, or you receive a report that the First Aid process failed, try to repair the disk or partition again. If that doesn’t work, back up as much of your data as possible, reformat the disk, reinstall macOS, then restore your backed-up data.
If you continue to have problems with your disk or it can’t be repaired, it may be physically damaged and need to be replaced. For information about servicing your Mac, see Find out how to service or repair your Mac.