Skip to content

Instantly share code, notes, and snippets.

@Esya
Last active September 22, 2018 06:34
Show Gist options
  • Save Esya/6031099 to your computer and use it in GitHub Desktop.
Save Esya/6031099 to your computer and use it in GitHub Desktop.
Partition/Dual Boot a recent Mac (2012/2013) having FusionDrive/CoreStorage Logical Volume groups

#Partitioning / Setting up Dualboot on a Mac (2012+) having a FusionDrive

It was hard for me to find some info about this, since the CoreStorage commands are not documented in man diskutil, so I thought I'd share all this.

This is how I split my main volume in order to have a Windows Dual Boot. First of all, list your CoreStorage logical volumes using

diskutil cs list

Then, find the Logical Volume you want to shrink, the line should be something like :

Logical Volume XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

Get that identifier, and simply do

sudo diskutil cs resizeStack XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX 215g NTFS-3G WINDOWS 35g

Where :

  • XXXXX.... is the identifier for the volume to shrink
  • 215g is the size of that volume after being shrinked
  • NTFS-3G is the file system of the new volume being created
  • 35g is the size you wish to allocate to your new volume

You're now good to go!

References

resizeStack hidden documentation :

Resize both a logical volume and its underlying physical volume in a single
operation. The setup must be simple: Exactly one logical volume and one
related physical volume can, and must, exist.
If this is a shrink operation, you can optionally request that new partitions
be created in the newly-formed free space gap.

This awesome blog post : "Undocumented corestorage commands"

This gist : "OS X Lion diskutil commands (documented and hidden).sh"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment