Computers, Laptops & Tablets Apple 34 34 people found this article helpful How to Manage an APFS Formatted Drive Learn to format and create containers, plus more! by Tom Nelson Writer Tom Nelson is an engineer, programmer, network manager, and computer network and systems designer who has written for Other World Computing,and others. our editorial process Facebook Twitter Tom Nelson Updated on May 15, 2020 Apple Macs iPad Tweet Share Email APFS (Apple File System) brings with it some new concepts for formatting and managing your Mac's drives. Chief among these is working with containers that can dynamically share free space with any volumes contained within them. To get the most out of the new file system, and learn a few new tricks for managing your Mac's storage system, learn how to format drives with APFS, create, resize, and delete containers, and create APFS volumes that have no size specified. In this guide, we teach you how to manage and alter APFS formatted drives through the use of Disk Utility. It is not intended as a general-purpose Disk Utility guide. If you need to work with HFS+ (Hierarchical File System Plus) formatted drives, take a look at the article, How to Use Disk Utility in macOS. If you're curious about APFS and how extensively it can or should be used, you can also read the article, Should APFS Be Used On All Disk Types? Format a Drive With APFS Using APFS as a disk format has a few restrictions you should be aware of: Time Machine drives must be formatted as HFS+. This may change in the future, but for now, do not format or convert a Time Machine drive to APFS.Apple does not recommend using APFS on standard rotational hard drives. APFS is best used on solid-state drives.If you encrypt a drive using macOS High Sierra or later, the drive will be converted to APFS encrypted format. Be careful when doing this, as some apps and utilities such as Time Machine will not work with the APFS format. With that list of don'ts out of the way, let's take a look at how to format a drive to use APFS. Formatting a drive will result in the loss of all data contained on the disk. Be sure you have a current backup. Launch Disk Utility located in /Applications/Utilities/. From the Disk Utility toolbar, select the view button, then select the option to Show All Devices. In the sidebar, select the drive you wish to format with APFS. The sidebar shows all drives, containers, and volumes. The drive is the first entry at the top of each hierarchal tree. In the Disk Utility toolbar, select Erase. A sheet will drop down allowing you to choose the type of format. Use the Format drop-down menu to select one of the available APFS formats. Use the Format drop-down menu to select one of the available APFS formats. Select GUID Partition Map as the formatting Scheme to use. You can select other schemes for use with Windows or older Macs. Provide a name. The name will be used for the single volume that is always created when formatting a drive. You can add additional volumes or delete this volume later on using the Create, Resize, and Delete Volumes instructions in this guide. When you have made your choices, select Erase. A sheet will drop down displaying a progress bar. Once the formatting is complete, select Done. Notice in the sidebar that an APFS container and a volume have been created. Converting an HFS+ Drive to APFS Without Losing Data You can convert an existing volume to use the APFS format without losing information already present. We recommend that you have a backup of the data before converting. It is possible that if something goes wrong while converting to APFS you could lose the data. In the Disk Utility sidebar select the HFS+ volume you wish to convert. Remember the volume is the last item in the drive's hierarchal tree. From the Edit menu select Convert to APFS. A sheet will display a warning that you are about to change to volumes format and that the change to APFS can’t be undone without losing data. If this is OK, select Convert. Creating Containers for an APFS Formatted Drive APFS brings a new concept to the format architecture of a drive. One of the many features included in APFS is its ability to change the size of a volume dynamically to meet the user's needs. With the older HFS+ file system, you formatted a drive into one or more volumes. Each volume had a set size determined at the time of its creation. While it was true that under certain conditions a volume could be resized without losing information, those conditions often did not apply to the volume you actually needed to enlarge. APFS does away with most of those old resizing restrictions by allowing volumes to acquire any of the unused space available on an APFS formatted drive. The shared unused space can be assigned to any volume where it is needed without worry about where the free space is physically stored — with one minor exception. The volumes and any free space must be within the same container. Apple calls this feature Space Sharing. It allows multiple volumes, regardless of the file system they may be using, to share the available free space within the container. Of course, you can also pre-assign volume sizes and specify minimum or maximum volume sizes as well. We will cover how to set volume limits later when we discuss creating volumes. Create an APFS Container Remember, Containers can only be created on APFS formatted drives if you need to change a drive's format, see the section Create an APFS Formatted Drive. Launch Disk Utility located in /Applications/Utilities/. In the Disk Utility window that opens, select View, then select Show All Devices from the drop-down list. The Disk Utility sidebar will change to show physical drives, containers, and volumes. The default for Disk Utility is to only show volumes in the sidebar. Select the drive you wish to add a container too. In the sidebar, the physical drive occupies the top of the hierarchical tree. Below the drive, you will see containers and volumes listed (if present). Remember, an APFS formatted drive will already have at least one container. This process will add an additional container. With the drive selected, select Partition from the Disk Utility toolbar. A sheet will drop down asking if you want to add a volume to the current container or partition the device. Select Partition. The Partition map will appear displaying a pie chart of the current partitions. To add an additional container select the plus icon (+). You can now give the new container a name, select a format, and give the container a size. Because Disk Utility uses the same partition map interface for creating volumes as well as containers it can be a bit confusing. Remember the name will apply to a volume that is automatically created within the new container, the format type refers to the volume, and the size you select will be the size of the new container. Make your choice, then select Apply. A drop-down sheet will appear listing the changes that will occur. If it looks OK, select Partition. At this point, you have created a new container that includes a single volume taking up most of the space within. You can now use the Create Volumes section to modify, add, or remove volumes within a container. Deleting a Container To delete a container, follow steps 1 through 6 above. You will be presented with the selected drive's partition map. Select the partition/container you wish to remove. Remember any volumes within the container will also be deleted. Select the minus icon (-), then select Apply. A drop-down sheet will list what is about to happen. Select Partition if everything looks OK. Create, Resize, and Delete Volumes Containers share their space with one or more volumes contained within. When you create, resize, or delete a volume it is always referenced to a specific container. Here's how to create a Volume: With Disk Utility open (Follow steps 1 through 3 of Creating Containers for an APFS Formatted Drive), select from the sidebar the container you would like to create a new volume within. From the Disk Utility toolbar, select Add Volume or Add APFS Volume from the Edit menu. A sheet will drop down letting you give the new volume a name and to specify the volume's format. Once you have a name and format selected, select Size Options. Size options allow you to set a reserve Size; this is the minimum size the volume will have. Enter the Reserve Size. The Quota Size is used to set the maximum size the volume is allowed to expand to. Both values are optional, if no reserve size is set, the volume will only be as large as the amount of data it contains. If no quota size is set the volume only size limit will be based on the container size and the amount of space taken up by other volumes within the same container. Remember, the free space in a container is shared by all volumes within. Make your choices and select OK, then select Add. Select the volume you wish to remove from the Disk Utility sidebar. From the Disk Utility toolbar, select the minus icon (-) or choose Delete APFS Volume from the Edit menu. A sheet will drop down warning you what is about to occur. Select Delete to continue the removal process. Because any free space within a container is automatically shared with all APFS volumes within the container, there is no need to force the resizing of a volume as was done with HFS+ volumes. Simply deleting data from one volume within a container will make that newly freed up space available to all volumes within. At the moment there is no method available to change the reserve size or quota size options that are available when an APFS volume is originally created. It is likely the needed commands will be added to diskutil, the command line tool used with Terminal, at some point in a future macOS release.