As much a we all try to protect our computers, sometimes issues do arise with the drives where you store your data.
Repairing Disks using OS X's Disk Utility can be a useful way to improve performance, and in some scenarios, recover lost data. (This isn't Guaranteed.)
The most obvious example would be when there is drive corruption caused by improperly removing external USB storage.
It can also be used on your internal partition if you are having trouble with OS X. This requires the computer to be booted in Recovery mode, and as repairing the internal partition can have serious repercussions, we advise performing a back-up of any crucial data before proceeding.
Repairing a disk
You can locate Disk Utility within your Applications -> Utilities folder, or by searching "Disk Utility" in Spotlight.
Once you've loaded Disk Utility, select 'Verify Disk' and allow your Mac to check the disk. It should give you some diagnosis to confirm whether your drive is viable, or needs to be repaired.
- If using an external disk, then choose 'Repair Disk', and allow the process to complete.
- If trying to repair the internal partition where your Operating System is installed, you'll need to boot into Recovery mode, so your Mac can check and repair files that are "in use".
- Restart your Mac, and press Command + R, while it's restarting.
- Select Disk Utility from the macOS Utilities menu. Once Disk Utility has loaded, choose the disk you wish to repair - the default name for your system partition is generally "Macintosh HD", and choose 'Repair Disk'.