{"id":398,"date":"2019-01-25T11:13:05","date_gmt":"2019-01-25T11:13:05","guid":{"rendered":"https:\/\/www.hi5software.com\/blog\/?p=398"},"modified":"2019-01-25T11:13:05","modified_gmt":"2019-01-25T11:13:05","slug":"how-to-create-apfs-containers-on-the-disk-for-space-sharing","status":"publish","type":"post","link":"https:\/\/www.hi5software.com\/blog\/how-to-create-apfs-containers-on-the-disk-for-space-sharing\/","title":{"rendered":"How to Create APFS Containers On the Disk for Space Sharing"},"content":{"rendered":"<h2><strong>Understanding partitions, volumes, and containers<\/strong><\/h2>\n<p>Before we begin the discussion about how to create APFS containers, let us understand the basic terms like partitions, volumes, and containers. The term \u2018partition\u2019 is defined as the logical division on the hard drive. These partitions need to be formatted and mounted before the OS can read\/write data into it.<\/p>\n<p>Once the partition is formatted with a file system, then it is referred to as a volume. When the OS recognizes the file system, it will be mounted, so data can be read and written. These 2 terms, you probably already understand even before reading this article, but what may new to you is the term \u2018container\u2019. The Container is a term introduced with the new APFS file system.<\/p>\n<p>A container is a space on the hard disk that contains one or more volumes. It is created in such a way that the container space is shared among all the volumes it holds. The size of the volume is not fixed in APFS. Although, while creating a volume, you assign a minimum and maximum amount of space, however the actual amount of space a volume uses changes dynamically. So, the volume can expand or shrink without the need for repartitioning.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-399 aligncenter\" src=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/Containers-in-mac-hard-drive.png\" alt=\"Containers-in-mac-hard-drive\" width=\"469\" height=\"277\" srcset=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/Containers-in-mac-hard-drive.png 592w, https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/Containers-in-mac-hard-drive-300x177.png 300w\" sizes=\"(max-width: 469px) 85vw, 469px\" \/><\/p>\n<p>Also, another thing to be noted is that the disk can be divided into one or multiple containers. And each container can have one or more volumes like said before.<\/p>\n<p>Next, let us see how to create a container in APFS file system.<\/p>\n<ul>\n<li>Go to <strong>Applications<\/strong> &gt; <strong>Utilities<\/strong> folder and open <strong>Disk Utility<\/strong><\/li>\n<li>In the <strong>Disk Utility<\/strong> window, click <strong>View<\/strong> &gt; <strong>Show All Devices<\/strong><\/li>\n<\/ul>\n<p>Now you will need to convert HFS to APFS file system. This conversion is automatic if using an SSD, otherwise, you will need to do it manually.<\/p>\n<ul>\n<li>From the list of all devices, choose the HFS+ volume and click <strong>Convert to APFS<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-400 aligncenter\" src=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/convert-to-apfs.jpg\" alt=\"convert-to-apfs\" width=\"640\" height=\"383\" srcset=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/convert-to-apfs.jpg 640w, https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/convert-to-apfs-300x180.jpg 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Next, to format the drive to APFS, first choose the drive and click <strong>Erase<\/strong><\/li>\n<li>Assign a name and select the APFS file system format from the menu<\/li>\n<li>Then click <strong>Erase<\/strong> to format the drive<\/li>\n<\/ul>\n<p>Now Disk Utility will create one container and one volume within that APFS container. But you can always add more containers according to your preference. By doing so, you can have groups of volumes. That way, one group of volumes is separated from the other and prevents sharing of disk space.<\/p>\n<h2><strong>How to add containers?<\/strong><\/h2>\n<p><em>Before you begin with this process, please make a backup of all data on your drive.<\/em><\/p>\n<ol>\n<li>Go to <strong>Disk Utility<\/strong> and select the APFS drive from the left menu bar<\/li>\n<li>Then click on <strong>Partition<\/strong> in the top menu<\/li>\n<li>Next, you will be asked if you want to add a volume or a partition. Click on the <strong>Partition<\/strong> button<\/li>\n<li>In the Partition window, click the <strong>\u2018+\u2019<\/strong> symbol<\/li>\n<li>Assign a name to the partition<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-401 aligncenter\" src=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/how-to-add-containers.jpg\" alt=\"how-to-add-containers\" width=\"601\" height=\"426\" srcset=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/how-to-add-containers.jpg 601w, https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/how-to-add-containers-300x213.jpg 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Similarly, you can add more partitions by clicking on the \u2018+\u2019 sign. If you want to alter the size of the partitions, you can use the pie chart or enter a value manually. Once the sizes are set, click <strong>Apply<\/strong> to save changes.<\/p>\n<p>Please note that although Disk Utility is referring to these as partitions, it is, in reality, a container because this is an APFS formatted drive.<\/p>\n<h2><strong>How to add volumes to a container?<\/strong><\/h2>\n<p>Each container in the APFS drive can have one or more volumes. To add volumes to the container, you can make use of Disk Utility.<\/p>\n<ol>\n<li>Open <strong>Disk Utility<\/strong> and on the left menu bar, select the APFS container<\/li>\n<li>From the <strong>Edit<\/strong> menu, select <strong>Add APFS volume<\/strong><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-402 aligncenter\" src=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/add-volumes-to-containers.jpg\" alt=\"add-volumes-to-containers\" width=\"640\" height=\"384\" srcset=\"https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/add-volumes-to-containers.jpg 640w, https:\/\/www.hi5software.com\/blog\/wp-content\/uploads\/2019\/01\/add-volumes-to-containers-300x180.jpg 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>In the next window, assign a name to the volume and set the size options. There are 2 sizing options called \u2018Reserve Size\u2019 and \u2018Quota Size\u2019. Reserve size is the minimum size the volume cannot go below and Quota size is the maximum size the volume can take. These size limits are useful when you don\u2019t want the volume to consume the entire space available in the container or when another volume shouldn\u2019t take all the space from a volume that needs a minimum amount of space.<\/p>\n<p>Once you have set these volume size limits, click Ok to save changes.<\/p>\n<h2><strong>Data recovery using Hi5 Software<\/strong><\/h2>\n<p>Using disk management tools like Disk Utility is extremely risky when you don\u2019t have a backup. It is always suggested that you make a backup first and then proceed with disk related operations. However, in the event that you don\u2019t have a backup and data is lost after partitioning or any other operations such as the one above, then you can use Hi5 data recovery software to your rescue.<\/p>\n<p>It is designed for <a href=\"https:\/\/www.hi5software.com\/mac\/partition-recovery-mac.html\">partition recovery in Mac<\/a> systems. All your partitions are recovered in original form and hierarchy along with the file names. Once files are recovered, just save them to any desired location.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding partitions, volumes, and containers Before we begin the discussion about how to create APFS containers, let us understand the basic terms like partitions, volumes, and containers. The term \u2018partition\u2019 is defined as the logical division on the hard drive. These partitions need to be formatted and mounted before the OS can read\/write data into &hellip; <a href=\"https:\/\/www.hi5software.com\/blog\/how-to-create-apfs-containers-on-the-disk-for-space-sharing\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Create APFS Containers On the Disk for Space Sharing&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/posts\/398"}],"collection":[{"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/comments?post=398"}],"version-history":[{"count":1,"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":403,"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/posts\/398\/revisions\/403"}],"wp:attachment":[{"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/media?parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/categories?post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hi5software.com\/blog\/wp-json\/wp\/v2\/tags?post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}