So, I uninstall Windows 10 using Bootcamp, but now I got this 'free storage' space that I cannot merge back again, I've tried everything that's already answered in this forum for this type of questions, since booting in recovery mode to running the sudo diskutil apfs resizeContainer /dev/disk0s2 0 command on the terminal

If I tried to do it in diskutility I got the following error enter image description here

And if I try to run the command to resize my partition I got the following error: enter image description here

Here's an extra pic of my diskutil list command: enter image description here

And my diskutil enter image description here

Any suggestion ? I'm running High Sierra Version 10.13.6

  • If you reissue the resize command and have it work on disk0s1 instead of disk0s2 do you still get the same error? It might be a typo in the text above or it might be the solution. – bmike Jan 17 at 2:44

You want to grow the APFS container, not the physical drive that it's on (as this would be impossible, obviously). This can't be disk0, and it looks like it's disk1 in your screenshots, so diskutil ap resizeContainer disk0s1 0 should do what you want.

There is no disk0s2 to operate on, so that should error based on your excellent details in the question.

It’s safe to do a live resize of the container.

  • Got the following error from running diskuti ap resizeContainer disk1 0 imgur.com/a/QlsXcbK, this is a screenshot from the diskutil ap list imgur.com/a/1b5Ev0I – Brian Polanco Jan 17 at 2:40
  • I think you’re close. I wouldn’t try to grow disk1 but what about resizing disk0s1 container - that seems the correct call here. +1 for the answer. – bmike Jan 17 at 2:45
  • Are you sure you ran diskutil ap resizeContainer disk1 and not diskutil ap resizeContainer disk1s0 ...? – user3052786 Jan 17 at 2:45
  • Forget about all the synthesized sizes in disk1 none of those are hard limits. That shows how much space is allocated, not how much free space is left. Let’s get back to operating on disk0 which is the actual container. See my edit to your answer. – bmike Jan 17 at 2:47
  • Yes, I'm totally sure @user3052786 – Brian Polanco Jan 17 at 2:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .