Can't resize partition on VMWare Mac I have a mac running in a virtual machine and I expanded the hard drive in the settings, however when I go to resize the partition in the guest OS, it does not let me. There is only one partition now, the main one I want to expand, and then just "Free Space". 


It is a GUID partition map and PCI physical volume. 
Using Disk Utility I can't drag to resize the volume I want to modify
If I delete the "Free Space", I get this error: "An internal error has occurred and the disk for one of the specified operations could not be found. This may be a temporary issue, try again." 


This issue persists after a reboot and using recovery mode on High Sierra 10.13.5
Solved this by first going into the terminal and finding the disk identifier:

diskutil list


Then, with the identifier I used the following and it successfully reclaimed all of the disk free space:

diskutil resizeVolume /dev/disk0s2 0


Be sure to replace /dev/disk0s2 with the identifier of the partition you want to expand.