Recover missing empty space after removing bootcamp on macOS

Today I tried to remove the unused bootcamp partition on macOS to get more space but unfortunately it turned out to be not so simple.

After deleting the bootcamp partition from Disk Utility, I was greeted with an error that says the bootcamp partition cannot be merged into the main partition.

I then run First Aid and found some corruptions. Following the guide on Internet I booted into Recovery mode and fixed those errors, but the empty space was still not given to me.

Until I found this answer on the Internet and turns out the magic is just one command:

disk0s2 is the existing macOS IDENTIFIER as shown in diskutil list

Here is the full 3-step terminal log for anyone interested in my recovery process:

 

Leave a Reply