I'm trying to resize my Mac Partition, however I always get this error:
APFS Container Resize error code is 49153 Error: -69606: A problem occurred while resizing APFS Container structures
using the Disk Utility app or terminal with the command diskutil:
sudo diskutil apfs resizeContainer disk0s2 400g jhfs+ Windows 100g
the result is the same. I noticed that if I create a partition < 1gb with disk utility, it does the job, how is this possible?
If you have Time Machine enabled, it might be making snapshots that prevent you from resizing the APFS container. You can list them with
tmutil listlocalsnapshots /
and delete them with tmutil deletelocalsnapshots
or you can delete all of them with
tmutil thinlocalsnapshots / 9999999999999999