How to repair a disk in macOS
macOS can crash like any other desktop operating system. The disk that macOS is installed on can likewise run into problems or macOS’ own files may be corrupted if you try and modify the system and it doesn’t go as planned.
If you’re having trouble accessing a disk on macOS, your system is in a kernel panic loop, or you’re unable to boot to the desktop because of a problem with the disk, it’s a good idea to repair it. The tools for repairing a disk are built into macOS so you generally do not need to install or download a third-party tool for the job.
Repair a disk in macOS
Disk errors can manifest in many ways and you may, or may not, have access to a functioning macOS desktop. Regardless, you can use the exact same tool to repair a disk. The only trick is knowing how to access it.
The tool we’re going to use is the Disk Utility.
Access Disk Utility from macOS desktop
To access the Disk Utility from the macOS desktop, follow these steps.
- Tap the Command + Spacebar keyboard shortcut to open Spotlight.
- Enter Disk Utility.
- Select and open the app of the same name.
Access Disk Utility from boot menu
If you cannot get to the macOS desktop, you will have to access the Disk Utility from the boot menu.
- Shut down your Mac.
- Turn the Mac On and tap and hold the Command+R keyboard shortcut.
- The Mac will boot into recovery.
- Select Disk Utility from the menu.
Repair disk in macOS
Now that you have the Disk Utility open, you can start repairing a disk.
- In Disk Utility, open the View dropdown.
- Select Show all devices.
- From the column on the left, select a disk.
- Select its volume.
- Click the Repair or First Aid button at the top.
- Confirm you want to repair the volume.
- Once the volume has been prepared, repeat this for the container the volume is in.
- Once the container has been repaired, select the disk and then click the Repair or First Aid button.
Conclusion
The repair or first aid option will fix a disk fairly quickly though the time needed will also depend on the size of your disk (larger disks will take longer), and the type of disk it is (SSD or HDD). Of course, the Disk Utility app cannot fix everything. The repair may complete but the disk may still have errors on it. You may be able to repair problems with the OS files but again, there are no guarantees.