Introduction
This article provides step-by-step instructions for backing up and securely wiping a Mac, and then installing a fresh version of macOS. This is useful if the Mac is being given to another user, or if the machine is not performing well and a clean reinstall would be helpful.
Procedure
Backup Your Data Using Time Machine
- Have an external hard drive with enough storage capacity to backup your entire system.
(If in doubt as to what size external hard drive to use, go to the Apple icon in the top left of the screen and click "About My Mac", then click the "Storage" tab to see how much data is currently stored on your Mac's hard drive)
- Connect the external hard drive to the Mac.
- Launch Disk Utility. Applications > Utilities > Disk Utility
- Select the external hard drive from the drive list on the left and click "Erase".
-
From the drop-down menu, choose “Mac OS Extended (Journaled)” as the "Format" type. You don't need to fill out the "Name" section for now, and then click "Erase".
-
When the drive has finished formatting, choose the "Partition" tab.
-
In the Partition Layout menu, click on the “+” sign once to split the drive into two equal partition sizes.
-
(Optional) Adjust the partition size by dragging the small white dot located on the perimeter of the large blue circle, or manually, by clicking on a partition and then entering the desired partition size in the "Size" input box.
-
Name each of the two partitions by clicking on the first partition half and naming it something like "Time Machine Backup", then select the other partition half to name it something like "File Storage"(Step 3). Finally, click “Apply” (Step 4).
-
Confirm the changes by clicking "Partition".
- Back up the Mac to the Time Machine Backup partition by going to System Preferences in the Apple menu, then choose "Time Machine".
- Click "Select Backup Disk" to let the list populate. Check “Show Time Machine in the menu bar” so that you can monitor its progress easily.
- Choose the partition named "Time Machine Backup" from the list and then confirm the choice by clicking "Use Disk".
- Let Time Machine back up for the first time. (Note this may take some time depending on how much data there is on the internal drive).
- Once the backup is done, Time Machine will provide the following confirmation:
Reinstall New Operating System
-
If you are setting this machine up for a new user, sign out of all applications on the Mac. If you are setting this up for the same user, disregard these steps.
- Deauthorize and sign out of iTunes
-
Open iTunes from the applications menu. Finder > Applications > iTunes.
-
Choose Account > Authorizations > Deauthorize This Computer. When prompted, enter your Apple ID and password, then click "Deauthorize".
- Click “Account” in the menu bar on the left side of the screen and click “Sign Out”. Finally, click iTunes > Quit iTunes.
-
Sign out of iMessage
-
Open Messages on your Mac. Finder > Applications > Messages.
-
Click “Messages” in the menu bar at the top left corner of your screen (Step 1).
-
Click “Preferences” from the drop down menu (Step 2).
-
Select “iMessages” account (Step 3) and click “Sign Out” (Step 4).
-
Sign out of iCloud
-
Go to the Apple icon in the top left corner of your Mac screen. Select System Preferences from the drop down menu. Click on iCloud.
-
Uncheck the box for "Find my Mac".
-
Click “Sign Out”.
-
A dialog will ask whether you want to keep a copy of your iCloud data on the Mac. Because you’ll reformat the hard drive in a later step, just click “Keep a Copy” to proceed. After you’ve signed out of iCloud, the user’s data remains in iCloud and on any of their other devices.
-
Erase the hard drive and reinstall macOS
Once the backup and unlinking of accounts is completed, you can erase and reformat the drive.
- Restart the machine and hold down CMD+R as soon as the restart begins.
- Select "Disk Utility" then click "Continue".
-
Choose View > Show All Devices from the menu bar
- On the left pane, select the volume containing the operating system (typically called Macintosh HD), select the "Erase" tab and enter the following information:
- Name: Enter a name for the new volume, such as “MacIntosh HD”
- Format: Choose “Mac OS Extended (Journaled)
- Scheme (if shown): Choose "GUID Partition Map"
- Click "Erase".
- Quit Disk Utility when done and then select "Reinstall OS X" and click "Continue". Reinstallation will take about an hour.
- Have the client sign in with their Apple credentials in order to reinstall their apps.