Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created April 9, 2017 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/25bf58ee385c11e1c511af6d3cefd572 to your computer and use it in GitHub Desktop.
Save rtrouton/25bf58ee385c11e1c511af6d3cefd572 to your computer and use it in GitHub Desktop.
diskutil resizeVolume error on ESXi-hosted macOS VM
computername:~ username$ diskutil resizeVolume / R
Note: Your partition map does not use the entire space of your whole-disk. You should use "diskutil repairDisk" and then repeat this command.
Resizing to full size (fit to fill)
Started partitioning on disk0s2 Macintosh HD
Verifying the disk
Verifying file system
Using live mode
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
File system check exit code is 0
Resizing
Error: -5341: MediaKit reports partition (map) too small; if you recently grew your whole-disk, you should run whole-disk repair
computername:~ username$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment