APFS Container Resize error code is 49153

Viewed 33990

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?

9 Answers

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 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.

I worked through this with Apple Care (thanks, Samuel!):

  1. Open Time Machine preferences
  2. Control click on the Time Machine icon and remove the selected disk
  3. Reboot
  4. Open Terminal and use sudo tmutil thinlocalsnapshots / 99999999999
  5. Enter password
  6. Open Disk Utility and try partitioning again

Note: create the partition in the container (in Disk Utility, go to View > Show all devices)

This worked for me, and now I'm going to see if Bootcamp will play. Good luck!

This worked for me: Cleared out the local snapshots, stopped time machine, and did the resize, all via the Terminal.

When nothing works, as was my case, wipe the whole disk and let to the disk utility create a new partition table and all the required stuff. It worked for me. I used the same name ("APPLE SSD SM0128...blah"). After the OS installation the partition was named with the same name ("APPLE SSD SM0128...blah"), so I renamed to "Macintosh HD" and installed Windows 8.1 using basecamp normally. Hope it helps, bye!

Don't partition the drive in half. Adjust the size and change the format to Mac OS Extended (Journaled).

Related