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:
1 |
$ sudo diskutil apfs resizeContainer disk0s2 0 |
disk0s2 is the existing macOS IDENTIFIER as shown in diskutil list Continue reading