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
I had Time Machine enabled/one listing for
tmutil listlocalsnapshots /
so I removed it with
tmutil thinlocalsnapshots / 10000000000
then entered Time Machine preferences, told it to Stop Automatic Backups, removed the two disks I had been backing up to then went back into Disk Utility to try the resize ... and it worked this time.
MacOS High Sierra 10.13.1 Beta with 458GB partition now reduced to 428GB and am about to increase the Bootcamp partition in Windows by 30GB :-). Big thanks to Yifan.
I also had the problem that TimeMachine interferes with creating new Snapshots. So this seems still to be an issue on OS X 10.13.1. Here is the sequence I used in the terminal for the whole process:
sudo tmutil disable
tmutil thinlocalsnapshots / 9999999999999999
sudo diskutil apfs resizeContainer disk0s2 300g ExFAT Photos 200g
sudo tmutil enable
I could not solve the problem with this. What helped in my case was using the terminal as described here: https://www.macobserver.com/tips/deep-dive/resize-your-apfs-container/
For me the progressbar stopped at 47% for quite some time, but you can check that it is making progress in the disk utility. You will see the size of the new partition increase there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With