Splitting a Fusion Drive

New Contributor III

We need to split our Fusion Drives because DeepFreeze doesn't work.

Has anyone had success using 'diskutil coreStorage' terminal while netbooted to Casper Imaging 8.7?

My goal is: netboot to Casper Imaging 8.7; launch the terminal app inside Casper Imaging; split the drive; image the machine.


Contributor II

Making any changes to the disks with Casper Imaging launched will most likely cause issues when trying to image subsequently. Imaging reads what drives are currently mounted during startup, and splitting the drive will likely change the location of the mounted disks. The safest route would be to run a script to split the drive before launching Imaging or relaunch Imaging after the split has been performed.

New Contributor III

Thanks Sam

New Contributor II
#Breaks the coreStorage volume and names the non-ssd drive "Macintosh HD"

CoreStorage=$(diskutil coreStorage list)

if [ "$CoreStorage" != "No CoreStorage logical volume groups found" ]; then
  diskutil coreStorage delete $(diskutil coreStorage list | grep "Logical Volume Group" | awk '{print $5}')
  diskutil eraseDisk JHFS+ temp /dev/disk0
  diskutil eraseDisk JHFS+ Macintosh HD /dev/disk1
  sleep 10

save as script, run as a startup script in your autocasper-netboot image.
this assumes only one disk in the machine.