Sub topic 4
Preparing the backup disk
This chapter covers getting a disk ready for Time Machine: choosing a file system, erasing and formatting the disk in Disk Utility or Terminal, and sizing it. It assumes you can use Finder and System Settings, know the difference between an external drive and a network share, and can run simple Terminal commands. You already have a destination in mind from the previous chapter. Here you make it usable.
Why the format matters
Time Machine stores its backups in a file system layout it controls. A disk that has the wrong format will either be refused or be offered back to you with an "Erase" button. If you pick that button on a disk that still holds files, those files are gone. Preparing the disk on purpose means you decide what gets erased and when.
The common formats you will meet:
| Format | Disk Utility name | Works with Time Machine? | Notes |
|---|---|---|---|
| APFS | APFS | Yes, on macOS 11 Big Sur and later | Recommended default. Backups are stored as APFS snapshots. |
| HFS+ | Mac OS Extended (Journaled) | Yes | Used by older backups and by Macs before Big Sur. |
| exFAT | ExFAT | No | Meant for sharing with Windows. Must be erased. |
| FAT32 | MS-DOS (FAT) | No | Same. Also has a 4 GB file size limit. |
| NTFS | Not offered | No | macOS can read it but not write it by default. |
Two compatibility points matter for planning:
- A backup made on APFS can only be restored by a Mac running macOS 11 or later. If you may need to restore onto an older Mac, use Mac OS Extended (Journaled).
- Time Machine does not convert an existing backup disk from HFS+ to APFS. If an older backup disk is HFS+, Time Machine keeps using it as it is. Moving to APFS means starting a new backup history on an erased disk, so keep the old disk until the new history is long enough for you.
Choosing a disk to prepare
Before erasing anything, check the following.
- Capacity. A common rule is a disk at least twice the size of the data you back up. The first backup is a full copy. Later backups add every change, and the older versions are kept until space runs low. To see what you have, open Apple menu > About This Mac > More Info > Storage Settings, or look at the used space of your startup disk in Disk Utility.
- Dedicated or shared. Time Machine fills any free space on its volume with older backups. If you store personal files on the same volume, the backups will compete with them for space. A dedicated disk is simplest. If you must share one disk, put the backups on their own volume (see the volume section below).
- Connection and speed. A disk connected by USB-C, Thunderbolt, or USB 3 gives a reasonable first backup. A first backup of several hundred gigabytes over a slow connection can take many hours. A spinning hard disk works but is slower than an SSD, particularly when you later browse and restore.
- Reliability. Backup disks are written to constantly and sit connected for months. Use a drive you trust, and do not choose the oldest disk in the drawer for your only backup.
The decision in one picture
Erasing the disk with Disk Utility
Disk Utility is in Applications > Utilities. Follow these steps on the disk you have decided to erase.
- Connect the disk. If it holds anything you need, copy it to another place first. Erasing cannot be undone.
- Open Disk Utility. From the View menu choose Show All Devices. This shows the physical disk above its volumes, which you need for choosing the partition scheme.
- Select the top-level physical disk in the sidebar, not the volume indented under it.
- Click Erase.
- Enter a name, for example
Time Machine Backup. - Choose APFS as the format. If you want encryption from the start, choose APFS (Encrypted) and set a password. The next chapters cover encryption and what happens if you lose the password.
- Choose GUID Partition Map as the scheme.
- Click Erase, and wait for it to finish.
If the Scheme menu is missing, you selected a volume instead of the physical disk. Go back to step 3.
Leave the format set to the plain APFS option, which is case-insensitive. The case-sensitive variant is for special cases and gives no benefit for backups.
Erasing the disk with diskutil
The same job can be done in Terminal. This is useful on a Mac you manage remotely. First find the disk identifier of the external disk:
diskutil list external physicalThe output shows entries such as /dev/disk4 (external, physical). Check the size and the volume names to be certain it is the disk you mean. Then erase it, replacing disk4 with your identifier:
diskutil eraseDisk APFS "Time Machine Backup" GPT /dev/disk4After the command finishes, confirm the result:
diskutil info "Time Machine Backup"Look for File System Personality: APFS and Mounted: Yes in the output.
Keeping other files on the same disk
If you want the disk to hold both backups and ordinary files, give the backups their own volume. An APFS container (the pool of space on the disk) can hold several volumes that share free space. That sharing is a risk, because Time Machine will use whatever is free. To limit it, you can add a volume with a quota, which caps how large that volume may grow:
diskutil apfs addVolume disk4 APFS "Backups" -quota 500gHere disk4 is the identifier of the APFS container, which you can read from diskutil apfs list. This example caps the backup volume at 500 GB, so the other volumes keep the rest of the space. A quota is a ceiling, not a reservation. If you want space set aside, use -reserve as well.
The alternative is an old-style partition split in Disk Utility with the Partition button. That sets fixed sizes in advance and is harder to change later. APFS volumes with a quota are more flexible.
Disks Time Machine will not like
- Disks with Boot Camp or Windows partitions. Do not erase a disk that holds an operating system unless you mean to.
- Disks that unmount often. Hubs without enough power and loose cables cause failed backups. Connect the disk directly to the Mac when you first set it up.
- Network shares. For a NAS, you do not format anything on the Mac. The share must be set up on the NAS as a Time Machine target (usually over SMB), and the NAS manages its own file system. A Time Machine backup on a share is stored in a sparse bundle, a disk image made of many small band files. Prepare those on the NAS side as the previous chapter described.
Checking before you move on
Before opening Time Machine settings, confirm three things:
- The disk shows in Finder or in
diskutil listwith the format you chose. - Its free space is at least the size of the data you plan to back up, and preferably double.
- Nothing on it is something you still need.
Then continue to the next chapter, where you select the disk in System Settings and start the first backup.
Exercise
You plug in a new external drive that was formatted by the maker as exFAT. You want to use it for Time Machine, and you may later need to restore onto a Mac running macOS 10.15. Which format do you choose when you erase it, and what do you select in Disk Utility to see the partition scheme option?
Show answer
Choose Mac OS Extended (Journaled), because backups on APFS can only be restored by macOS 11 or later. In Disk Utility, use View > Show All Devices and select the top-level physical disk, not the volume under it. Then choose the GUID Partition Map scheme and click Erase.
Exercise
You run diskutil list external physical and see that the disk you meant is /dev/disk5, 2.0 TB. You want a 1 TB cap on the backup volume while keeping the rest for other files. Which diskutil verb and option do you use, and what does the cap mean?
Show answer
Use diskutil apfs addVolume with the container identifier and the -quota 1t option. The quota is a ceiling on how large that volume can grow, so Time Machine cannot take more than 1 TB of the shared container. It does not set that space aside in advance.