0

So I removed bootcamp and now there is a partition called "free space" that I can't remove.

Here is my output from diskutil list:

enter image description here

Here is the screenshot from disk utility showing the partitions:

enter image description here

And here is the error I get when I try to remove "free space":

enter image description here

Heres the output when I run

sudo diskutil apfs resizeContainer disk0s2 0

enter image description here

2

This is a very common question. Once again, the answer is given below.

sudo diskutil apfs resizeContainer disk0s2 0
  • None of the solutions I found online worked. When I tried to run this line, it said "storage system verify or repair failed". The output is above – Victor Yin May 4 at 20:44
  • Yes, if there is something wrong with the APFS container, then the software will not expand the partition to reclaim the free space. You can try the command diskutil repairvolume disk0s2, but you probably will have to first boot to macOS Recovery. If that does not work, then you probably should backup your files and reinstall macOS. – David Anderson May 4 at 22:46
  • Thanks, after that command I was able to remove the "free space". – Victor Yin 2 days ago

You must log in to answer this question.

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