Extend disk with diskutils

Delete partition “Free Space” to extend disk to current macos partition.

Fixed Error “The new size must be different than the existing size”

#repair (internal, disk0 - in your case)
diskutil repairdisk disk0

#resize (synthesized, disk1 - in your case with HS)
diskutil apfs resizeContainer disk1 0

Reference


  1. Cannot resize APFS partition - “The new size must be different than the existing size”