Reading view

There are new articles available, click to refresh the page.

How to erase your Apple silicon Mac

Erasing the contents of the internal SSD in an Apple silicon Mac might seem a simple task, until you consider what’s on it in addition to the user files in its Data volume. Not only is that paired with the System volume, a mounted snapshot, but there are two additional containers that you don’t normally see.

This article explains how you can erase the following:

  • the Data volume, shown in blue
  • the Boot Volume Group, consisting of the Data and System (pink), and their accessory volumes (green)
  • all volumes in the Apple_APFS container (red)
  • the entire SSD, including the other two containers (pale yellow).

Assuming that you’re going to install something in their place, it’s up to you to choose, and that will in turn determine how you can install macOS and anything else required to allow your Mac to start up and run again.

Before you try any of these, you should de-authorise that computer in one of Apple’s media apps, and ensure you have a thorough and reliable backup of all the user files.

Data volume

Erase the Data volume by destroying its encryption key using EACAS, Erase All Content and Settings. This doesn’t so much delete anything, as render it inaccessible, so is most economical on SSD use, and quickest without compromising on security. This affects all user accounts with Home folders stored on the internal SSD.

Open System Settings, General, Transfer or Reset, and click Erase All Content and Settings.

eacas

If you continue, you should see one final warning before the contents of the Data volume are blown away into the great bit-bucket in the sky.

When that has completed, your Mac will start up for personalisation, configuration, and creation of its new primary admin user, just as it did when it was new. However, it will still be running the same macOS installation as before you used EACAS.

Boot Volume Group

Erase the current Boot Volume Group using Disk Utility in Recovery. Put your Mac into Recovery by starting it up with the Power button held, select Options, select a user and authenticate as that user to display the Recovery window. There select Disk Utility and click Continue.

Select Macintosh HD at the left and click the Erase tool at the top of the window. Enter a name for the volume such as Macintosh HD, select APFS as the format, and click the Erase or Erase Volume Group button.

You might be asked to Erase and Restart, which will lead to a restart and following that your Mac will try to activate over a network.

On completion, quit Disk Utility, select Reinstall macOS if necessary, click Continue and follow the instructions to download and install fresh macOS. Note this procedure doesn’t wipe and reinstall the Preboot or Recovery volumes in the Boot Volume Group.

Some instead select the disk at the top of the list at the left, here named Apple Inc. VirtIO Block Media because it’s running in a VM. In theory that should completely reformat the internal SSD, wiping all three of its containers, and so require a more extensive reinstallation. In many cases, it’s preferable to Restore in DFU mode, to ensure the whole of the firmware is replaced at the same time.

Apple_APFS container

Erase the whole of the Apple_APFS container using Erase Mac in Recovery, which should erase all Boot Volume Groups within that container.

Enter Recovery as normal using the Power button, select Options, and click Continue. Then instead of selecting a known user, use the Erase Mac command in the Recovery Assistant menu. This completely erases all Boot Volume Groups in the Mac’s internal SSD, ready to reinstall macOS, for which it requires an internet connection.

This has the advantage that it can be performed when you don’t know the password to unlock the Data volume (FileVault).

Entire SSD

Erase the entire contents of the internal SSD by formatting it and installing its contents afresh from another Mac, using Restore in DFU mode.

This is described here. Apple has improved that from Sonoma onwards, as it’s no longer necessary to use Apple Configurator 2 on the Mac that’s performing this, but it can all be done in the Finder. To do that, you’ll need another Mac to perform the restore process, and a USB-C data cable to connect the two of them. Don’t try using a Thunderbolt cable, though, as it won’t work. Another secret for success is to plug that cable into the target Mac’s DFU port, that designated to support DFU connections, as detailed here.

Restoring in DFU mode replaces the Mac’s firmware, erases the boot volume group, and installs the bundled version of macOS, leaving that Mac in the same condition in which it was delivered to its first user, with a fresh copy of macOS ready to be personalised and set up. Although that part of the process is fairly quick, full migration is then required before user applications and documents are available. The great advantage of restoring is that you can pick which version of macOS and its firmware are installed.

Which version of macOS will be installed?

When restoring in DFU mode, you can choose which version of macOS will be installed according to the IPSW image you use, making it the method of choice when you intend downgrading that Mac to an older version of macOS.

Methods that obtain new macOS from Apple should install:

  • the current version of the most recently installed major version of macOS
  • if you have just upgraded macOS, then erased the Boot Volume Group in Recovery, Apple warns that “you may get” the version of macOS that was running before that upgrade.

Clean install macOS

Back in the days when macOS had just a single volume containing both the system and user data, clean installing (or re-installing) macOS was popular, and often performed when upgrading to the next major version of macOS. Since then we’ve been given separate but firmlinked System and Data volumes, and in Apple silicon Macs two extra hidden containers. This article explains how you can make the best use of your Mac’s features to perform a clean install.

What do you want to ‘clean’?

Before going any further, you have to decide exactly what you want to ‘clean’ when installing. Choose one or more of the following:

  • Data volume
  • System volume (SSV)
  • firmware (Apple silicon).

If there are problems with user data or settings, then the first may well suffice. If you also want to return to a fresh copy of macOS, which might be an older version, then you’ll need to perform the first two. If you want to go the whole hog, then on Apple silicon Macs you can also install a fresh set of firmware. You also need to take into account whether the new version of macOS will be the same major version, or you want to revert to an older version of macOS, in a downgrade.

As each of these methods will wipe all your user data, prepare by making at least one full backup, then de-authorising that Mac for Apple media in one of the media apps like Music or TV. When you’re happy you’ve got everything you need to restore your documents and data, proceed as described below.

Data volume alone

Provided your Mac has a T2 or Apple silicon chip, destroying the current data volume is both quick and simple using EACAS. Open System Settings > General > Transfer or Reset and Erase All Content and Settings. That works by destroying the volume encryption key for the Data volume, so occurs almost instantly, and without adding many erase-write cycles to age your Mac’s SSD. Once that’s complete, starting your Mac up will take you through personalisation and setup, as if it were new, and the opportunity to migrate your user data from a backup or copy.

System and Data volumes

If this is an Apple silicon Mac, and you have a second Mac and a suitable cable, first consider performing a Restore in DFU mode (below), as that often proves quicker and simpler.

If it’s an Intel Mac, or you can’t, or don’t want to, restore in DFU mode, then you can still erase the System and Data volumes of the boot volume group in Recovery mode. Erasing those volumes is straightforward in Disk Utility: select the volume group, normally named Macintosh HD, and click on the Erase tool.

cleaninstall1

You’ll then be warned that you’re about to erase a volume group, and invited to set its new name and format. Once that has completed, the procedure differs according to whether this is an Intel or Apple silicon model. For Intel Macs with T2 chips, you should proceed to install macOS in Recovery mode. Apple recommends a slightly different procedure for Apple silicon Macs, where you should be invited to Erase and Restart. Once it has restarted, the Mac will try to activate itself over its Wi-Fi with Apple, then you should return to Recovery Utilities where you can install macOS.

Note this procedure doesn’t wipe and reinstall the Preboot or Recovery volumes in the boot volume group; to do that, you’ll need to restore in DFU mode.

You should never try to erase either the System or Data volume alone, because of their mutual firmlinks. If you want to install a fresh System, then start your Mac up in Recovery mode and use the Reinstall macOS feature there to install a fresh copy. However, that will be bit-for-bit identical to any other copy of that version of macOS, whether it has been installed using the Installer app, updated from a previous version, or installed as part of a restore in DFU mode. That’s guaranteed by its signature, and checked every time your Mac starts up.

System downgrade

Installing the same major version of macOS that was installed previously can be performed directly. In the case of the current release of macOS, that’s readily available in Recovery mode. Apple provides the following rules for the version that should then be installed.

For Apple silicon Macs,

  • the current version of the most recently installed major version of macOS
  • if you have just upgraded macOS, then erased the boot volume group in Recovery, “you may get” the version of macOS that was running before that upgrade.

For Intel Macs,

  • if you entered Recovery using Command-R, the current version of the most recently installed major version of macOS
  • if you entered using Command-Option-R, “you may get” the latest version of macOS compatible with that Mac
  • if you entered using Command-Option-Shift-R, “you may get” the version of macOS installed when your Mac was new, or the closest version now available.

Installer apps for previous major versions of macOS often can’t be run from within a more recent version. The way to work around that is to create a bootable installer disk, most commonly a ‘thumb’ drive, although a partition on a hard disk or SSD may be more convenient. That still needs to be formatted as an HFS+ volume, and Apple provides detailed instructions in this article. Before trying that with an Intel Mac with a T2 chip you’ll need to start it up in Recovery, open Startup Security Utility, and enable it to start up from external disks.

External bootable installers work differently with Apple silicon Macs, as they don’t actually perform a full boot from them, but will run and install them from Recovery mode.

Deep clean

On an Apple silicon Mac, you can install fresh firmware and wipe and replace both System and Data volumes using a DFU Restore, described here. Apple has improved that from Sonoma onwards, as it’s no longer necessary to use Apple Configurator 2 on the Mac that’s performing this, but it can all be done in the Finder. To do that, you’ll need another Mac to perform the restore process, and a USB-C data cable to connect the two of them. Don’t try using a Thunderbolt cable, though, as it won’t work. Another secret for success is to plug that cable into the target Mac’s DFU port, that designated to support DFU connections.

Restoring in DFU mode replaces the Mac’s firmware, erases the boot volume group, and installs the bundled version of macOS, leaving that Mac in the same condition in which it was delivered to its first user, with a fresh copy of macOS ready to be personalised and set up. Although that part of the process is fairly quick, full migration is then required before user applications and documents are available. The great advantage of restoring is that you can pick which version of macOS and its firmware are installed from the list provided by Mr. Macintosh, and elsewhere.

Summary

  • Decide how extensive the cleaning should be, Data or System volumes, or firmware.
  • When possible, use EACAS to wipe the Data volume.
  • On an Apple silicon Mac, if you want to clean deeper, consider restoring in DFU mode.
  • In other cases, erase the System and Data volumes in Recovery mode.
  • If downgrading macOS to an older major version, you may need to install that from an external bootable installer.

❌