I want to create a partition with a different filesystem but in order to do that I need to resize my APFS container.
This container has 292,4 GB used space. Its minimum size is 500,07 GB.
This container cannot be split because the resulting containers would
be too small.
What I tried
From "How to Resize Your APFS Container on macOS High Sierra"
diskutil list
Output:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 500.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +500.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 288.3 GB disk1s1
2: APFS Volume Preboot 43.9 MB disk1s2
3: APFS Volume Recovery 512.3 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +1.9 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Time Machine Backups 1.9 TB disk2s2
Then:
sudo diskutil apfs resizeContainer disk0s2 450g
Or:
sudo diskutil apfs resizeContainer disk0s2 450g jhfs+ Extra 50g
Output:
Aligning shrink delta to 50.068.037.632 bytes and targeting a new physical store size of 449.999.998.976 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 500.068.036.608 bytes
Error: -69521: Your APFS Container resize request is below the APFS-system-imposed minimal container size (perhaps caused by APFS Snapshot usage by Time Machine)
(perhaps caused by APFS Snapshot usage by Time Machine)
I have removed all local time machine snapshots but I am still getting the same output.
How do I change a APFS container's minimum size?
Best Answer
Again, yes, you have deleted all the local snapshots. But you clearly have an external Time Machine drive. And Time Machine snapshots (local or remote) place certain requirements on the source drive. From
man tmutil
:--
Remember the error?
E.g., (perhaps caused by APFS Snapshot usage by Time Machine)?
Read this one:
A. The error:
Error: -69521: Your APFS Container resize request is below the APFS-system-imposed minimal container size (perhaps caused by APFS Snapshot usage by Time Machine)
B. Your response:
C. The documentation:
The word "snapshot", in most contexts, is a generic term and is not to be confused with a "local Time Machine snapshot".
Capisce?
Yes, you have deleted all your local snapshots. But you also have another backup drive. In the example you linked, there was no such drive.
You need to remove all Time Machine backups stores, disable all destinations, etc. You can reassociate your backups later. But following this, you should be fine; worst case, decrypt your drive too (APFS encryption is complicated and has a lot of overhead due to the drive-key/user-key system).