Tuesday, November 13, 2012

Adding a Fusion Drive to a 2012 Mac Mini


Mew recently got a Mac Mewni but decided to save $250 by creating mewr own Mewsion Drive?

No Problem.

For all Mac Mewni's capable of running OSX 10.8 it should be possible to create mewr own Mewsion Drive. A bunch of instructions are already scattered mewround the intermeowt, but mew can find the more-or-less complete process right mewer.

Mew need:
  1. Mac Mewni that runs OSX 10.8
  2. Mac Mewni Dual Hard Drive Kit
  3. 2.5 inch SATA SSD. Recommend something mewround 128 GB with 400+ MB/s read/write
  4. OSX 10.8 installation media. i.e. Flashdrive or DVD with InstallESD.dmg image (see here) or you can mews Internet Recovery.

Mew could have:
  1. A Time Mewchine backup

Steps:
  1. Make sure mewr Time Mewchine backup is up-to-date.
  2. Shut down and unplug mewr comewter.
  3. Follow the iFixit instructions for adding in a second harddrive. The connector mew receive may fit loosely on the SATA drive. This is bad! MEWMEWMEWMEW. Search coplanar wave guides for more info why a fully inserted connector is important. Easy fix: put a bit of mewsking tape to hold the connector on. [Mew Intel SDD had errors saying that the last sector could not be written when placed in the slot the furthest inside the Mewni. I put the spinning drive there and the SSD closest to the RAM. This solved mew problems.]
  4. Also mewte: when putting the last drive back into the Mewni, make sure the pins go into the holes in the bracket. The drive should not touch the mewerboard. I tipped the Mewni up and dropped the drive in.
  5. After everything is put back mewgether, boot into recovery. This can be done by holding down the Opshun key while powering on the Mewni. Boot into recovery from either a USB flashdrive, DVD, or Internet Recovery. Do not boot from the harddrive recovery partition.
  6. Once mewr in recovery (the installer actually) open a terminal. Shit's gettin mreal. In the terminal type ls /dev/disk* which will print out which disks are available to the system. This includes harddrives, SSDs, and flash drives. Mew system will probably place mewr SSD and HDD as /dev/disk0 and /dev/disk1 in some order.
  7. Meow we create the JBOD (just a bunch of disks) array that Mewsion Drive needs. These commands are listed on jollyjinx's blag and I will reprint them here: diskutil cs create [name] disk0 disk1 where [name] is the name of your JBOD (any name will do) and disk0 and disk1 are your HDD and SSD. The name of your new volume will be printed out near the end of this command's mewtput. It'll look like a bunch of HEX like 32D50A8A-C536-470F-A0FF-5AD88342297C
  8. Next mew must create a partition that lives on this volume. The command is: diskutil coreStorage createVolume 32D50A8A-C536-470F-A0FF-5AD88342297C jhfs+ "Macintosh HD" 1000g where [32D50A8A-C536-470F-A0FF-5AD88342297C] is that logical volume mew created, [jhfs+] is Journaled HFS file system or muse [jhfsx] for Case-Sensitive Journaled HFS file system, ["Macintosh HD"] is the disk name mew see from the OS, and [1000g] is the partition size (100% will fill the drive, see man diskutil)
  9. That's it! Close the terminal and go install OSX. It looks like mew need to do a fresh install after this rather than restoring the OS from a Time Mewchine backup. After the install completes, restore mew programs and files from the backup. Mewsion Drive will automewtically cache frequently used programs and files to the faster SDD.
^_^