I had Windows 10 Bootcamp on my MacBook Pro 15" 2015. I just tried to remove the Bootcamp with Bootcamp assistant by clicking "restore" and it gave me an error saying "The disk cannot be partitioned or restored to a single partition."
So I followed instructions given by this answer and I deleted the Bootcamp partition using Disk Utility.
The partition was successfully deleted and there was 200GB of unused space. I tried to merge it with my OSX partition and it gave me an error. Forgot what type of error exactly, something about one of partitions being broken (wrong amount of blocks or something?)
Now the problem is that the 200GB of unused space (previously used by Bootcamp) just disappeared. Nowhere to be seen.
What can I do to fix this? How can I get my OSX partition back to the original 500GB?
diskutil list
diskutil cs list
No CoreStorage logical volume groups found
sudo fdisk /dev/disk0
sudo gpt -r show /dev/disk0
diskutil list
,diskutil cs list
,sudo fdisk /dev/disk0
andsudo gpt -r show /dev/disk0
. These commands will not change your computer. Some may ask for your login password. This is normal.