2

This question already has an answer here:

My hard drive in my Macbook completely broke a few weeks ago (didn't have much on it thankfully), so I bought a new hard drive and replaced the old one.

Now I'm not too sure how to set this new hard drive up (as in putting an OS on it and formatting it correctly) - I'm not concerned with getting any of my old data back on it, I just want to set it up as a new Macbook. Similar questions I have found all seem to ask how to set it up with all the old data. How do I boot the system up (safe boot, recovery etc.)? and what do I need to do once it's booted up?

Any help is much appreciated.

marked as duplicate by Allan, David Anderson, Ɱark Ƭ, nohillside macos Feb 27 '18 at 15:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • What was the newest macOS previously installed? I ask this because the firmware updates are tied to the macOS installations. Is the new drive a SDD, HDD, Fusion Drive or something else? Are you going to use encryption? – David Anderson Feb 27 '18 at 10:46
  • @DavidAnderson I believe the OS I had installed was High Sierra, it's just an HDD and I don't need it to be encrypted – Brad Feb 27 '18 at 11:13
1

This answer is more tailored to your question.

  1. Install the new HDD.
  2. Boot to Internet Recovery. Startup your Mac and immediately hold down the option++R key combination.
  3. Release the keys when the Apple logo or a spinning globe appears

  4. Use the Disk Utility application to erase the HDD. When prompted, select the "Mac OS Extended (Journaled)" format. You will also have the option to select "APFS". Some notes about APFS is given below.

    • The Apple File System (APFS) was introduced with High Sierra.

    • Many users have reported problems repartitioning their drives when APFS is in use.

    • Many users have report difficulties using the Boot Camp Assistant to install Windows when the APFS format is used.

    • You can convert to APFS later, if you wish.

  5. Install macOS.

  6. Restart to the newly installed macOS.

Below is a more generic answer.

  1. Install the new drive.
  2. Boot to Internet Recovery. Startup your Mac and immediately hold down the option++R key combination.
  3. Release the keys when the Apple logo or a spinning globe appears
  4. Open a Terminal window and enter the following commands.

    diskutil  unmountdisk  disk0
    diskutil  eraseDisk  free  none  disk0
    

    Note: Normally you should not have to use the diskutil commands to erase the drive. Occasionally, step 5 fails, if step 4 is skipped. If you feel lucky, you can try omitting this step.

  5. Use the Disk Utility application to erase the drive. When prompted, select the "Mac OS Extended (Journaled)" format. If you desire encryption, then select "Mac OS Extended (Journaled, Encrypted)" format instead.

  6. Install macOS.

    Note: If you are installing High Sierra (macOS 10.13.x) to a SSD, this drive will probably be converted use the APFS format.

  7. Restart to the newly installed macOS.

  8. If the installed macOS is not the current macOS, then download and install the current macOS from the Apps Store.
0

In order to install the operating system you'll need to boot into Internet Recovery by holding down Command + Option/Alt + R.

You will need a decent internet connection and a power supply for the duration of this process.

From here you can select your language, then use Disk Utility to Erase the new internal drive.

After you've Erased the drive you can close Disk Utility and follow the instructions to Install macOS. It is likely you'll be given an older installation of macOS and need to immediately do various system updates.

Not the answer you're looking for? Browse other questions tagged .