How to Resize APFS Container on MacOS High Sierra

With the introduction of the macOS 10.13 High Sierra, we have seen a major update in Mac’s file system. It has replaced the existing HFS/HFS+ with a new and advanced Apple File System (APFS). Since APFS creates a container for the logical drives, it is of vital importance to know how to alter it. For instance, users might wish to resize APFS container to optimize their file storage. In this post, we will help you do the same in a hassle-free way.

MacOS High Sierra: Apple File System

The Apple File System (APFS) has been included in Mac with the release of High Sierra. Though, it is also compatible with iOS devices, tvOS, and watchOS as well. It has replaced the age-old HFS file system that has been supporting Apple devices for decades. The new file system makes everyday tasks faster and smoother. Additionally, it has an advanced encryption technology. Here are some of its other features.

Resize APFS Container on MacOS High Sierra-apple new file system

You can simply go to Apple’s website and update your macOS to High Sierra. This will automatically convert your file system to APFS. Now when you know the basics of the file system, let’s learn how to resize APFS container in the next section.

How to Resize Your APFS Container

As you know, APFS maintains a container for other drives and provides a logical bifurcation of the space. Therefore, in order to make the most of your Mac storage, you need to resize APFS container. Since it is a newer file system, you would have to take the assistance of Terminal (instead of Disk Utility) to resize APFS container. It can be achieved by following these steps:

  1. Firstly, you need to launch Terminal on your system. To do this, simply go to Utilities and launch the Terminal interface on the screen.
  2. resize APFS container

  3. Now, in order to view the disk for APFS container, you need to run the command “diskutil list”. This will provide a list of all the connected disks (internal and external).
  4. From here, you need to note the identifier for the APFS container and the container scheme (that is, where APFS resides). Kindly note the identifier as it will be needed in the next commands. You can view from the screenshot that our container’s identifier is disk 1 and it is residing at disk0s2.
  5. Resize APFS Container on MacOS High Sierra-screenshot

  6. Now, in order to resize APFS container, you might be required to shrink the partition beforehand. This is done by reducing the size of the partition. To do this, we will use the “resizeContainer” command and write the name of the disk identifier where APFS resides. For instance, if we need to resize a 1 TB APFS to 750 GB, then we will give a command like "sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Extra 250g".
  7. This will shrink the APFS container to 750 GB, which was originally of 1 TB. So what will happen to the remaining space? The 250 GB will be allocated as a free space to the HFS+ partition. Now, you can simply provide the "sudo" ad "diskutil" command to complete the process. It will be similar to something like “sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Media 0b”. You will get something like this as an output for the command.
  8. Resize APFS Container on MacOS High Sierra-shrink the partition

  9. You can also reclaim space by giving the command “sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0s3” in order to resize APFS container. Later, you can give a command like “diskutil apfs resizeContainer disk0s2 0” to make it work.

It might seem a little complicated in the beginning, but you can easily resize APFS container by following these simple steps. If you are unsure, then you can also wait for a while for the Disk Utility tool to support various operations related to APFS containers. In this way, you would be able to resize APF container without facing any unwanted setback.

The Safe & Reliable Mac Recovery Software

Recoverit - The Safe & Reliable Mac Recovery Software

  • Recover lost or deleted files, photos, audio, music, emails from any storage device effectively, safely and completely.
  • Supports data recovery from recycle bin, hard drive, memory card, flash drive, digital camera and camcorders.
  • Supports to recover data for sudden deletion, formatting, lost partition, virus attack, system crash under different situations.

Note: Recover Lost Mac Data under Mac OS X 10.13 (High Sierra)

Due to macOS High Sierra (macOS 10.13) requirement, Mac users are not allowed an access to the built-in system drive from any apps. Therefore, if you need to restore lost data from the system disk under macOS 10.13, please "disable System Integrity Protection" first.

How to disable "System Integrity protection"? Please follow the steps below.

Step 1Reboot the Mac and hold down"Command + R" keys simultaneously after you hear the startup chime, this will boot OS X into Recovery Mode.

Step 2When the "OS X Utilities" screen appears, pull down the "Utilities" menu at the top of the screen instead, and choose "Terminal".

Step 3In the "Terminal" window, type in "csrutil disable" and press "Enter" then restart your Mac.

Hot Articles
See MoreSee Less
Home | Resources | Mac Data Recovery | How to Resize APFS Container on MacOS High Sierra