Skip to content

Instantly share code, notes, and snippets.

@hx
Created October 26, 2015 10:04
Show Gist options
  • Save hx/48ad97d557b44d62fb71 to your computer and use it in GitHub Desktop.
Save hx/48ad97d557b44d62fb71 to your computer and use it in GitHub Desktop.
Rebuilding a Fusion drive when all else is hopeless

Today, a poorly-timed tick of the "enable FileVault" box on El Capitan (OS X 10.11.1) resulted in a very dead hard drive that Disk Utility was unable to repair. Here's the basic command-line solution:

Show your CoreStorage volumes:

diskutil cs list

Delete CoreStorage logical volumes:

diskutil cs deleteVolume UUID

Delete other CoreStorage volumes (groups):

diskutil cs delete UUID

When you have no more CoreStorage stuff, list your normal volumes:

diskutil list

Make a combined partition from your SSD (e.g. disk0s2) and your HDD (e.g. disk1s2), making sure they're in the right order:

diskutil cs create 'Macintosh HD' disk0s2 disk1s2

You'll be given the new logical volume's UUID. Use it to make a new volume:

diskutil cs CreateVolume [UUID] jhfs+ 'Macintosh HD' 100%

Bueno.

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