Yes, You Can Resize Your APFS Container on a Live Filesystemīefore you ask, yes, I’ve verified this process works even when you’re booted into High Sierra on that APFS volume.
How to resize mac disk image free#
In this case, diskutil automatically claims all available free space on the physical storage device, but you can also replace 0 with a size value. Next, resize your APFS container: diskutil apfs resizeContainer disk0s2 0 sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0s3 This command will do the trick, assuming your volume is named disk0s3. First, though, you have to delete the JHFS+ or other partition and set it as free space on your hard drive. If you decide you want to reclaim that space into your APFS container, you can do that using diskutil as well. Shrinking Your APFS Partition to Reclaim Space The diskutil command automatically locates the physical store for my APFS container, and resizes things accordingly. Note that in my case, I could replace disk0s2 with disk1 for either command, since my APFS container is located at disk1. I could also create multiple partitions, using a command like this: sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Media 200g FAT32 Windows 50g The output of the command will look something like this: Resize you APFS container from Terminal I could have also issued the command like this, and diskutil would automatically determine the size for my new partition: sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Media 0b We need to use sudo here, to take administrative privileges over the Terminal session. That command would resize the APFS container from 1TB to 750GB, also creating a 250GB journaled HFS+ partition with the freed space. To shrink my 1TB APFS container to 750GB, I’d issue the following command in Terminal: sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Extra 250g
How to resize mac disk image install#
You use the same command for both processes, but you might be likely to want to reduce the size of your APFS partition first, perhaps to install another operating system on your Mac. Let’s talk about shrinking the APFS partition, or container, first. Locating your APFS container prior to resizing it Resizd Your APFS Container (the Hard Way) Note that my APFS container is named /dev/disk1, and resides at /dev/disk0s2. Once there, issue this command to find out where your APFS container lives: diskutil list To do this, you’ll need to open Terminal from Applications -> Utilities.