Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APFS Container Resize error code is 49153 [closed]

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?

like image 621
Spidersaw Avatar asked Sep 26 '17 11:09

Spidersaw


4 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

like image 178
Yifan Avatar answered Nov 14 '22 23:11

Yifan


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.

like image 33
delcas Avatar answered Nov 14 '22 23:11

delcas


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
like image 5
konfusius Avatar answered Nov 14 '22 23:11

konfusius


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.

like image 3
user3637713 Avatar answered Nov 14 '22 21:11

user3637713