How to clean install OS X El Capitan on iMac Retina

Greetings,


I would like to do a clean install of OS X El Capitan on my iMac Retina. I don't want to do an upgrade as I have multiple software installed on my iMac that will not be compatible with El Capitan, and I don't want to remove them all. I simply want to start fresh. The issue I have found elsewhere on the internet is that because of the Fusion Drive, users who attempted to do a clean install of OS X (any version), they have ran to issues with properly setting up fusion correctly. In doing so, many have experienced that their iMacs were running slower than usual. Does anyone know how to properly do a clean install of OS X on a Fusion Drive? Will using a USB drive using the "createinstallmedia" from the OS X app properly configure the Fusion Drive for a clean install without having to resort to using the Disk Utility?


Thank you for your time.

iMac with Retina 5K display, OS X Yosemite (10.10.4)

Posted on Oct 2, 2015 9:51 AM

Reply
15 replies

Jun 4, 2018 3:04 PM in response to Jamulligan13

Try the following revised steps to recreate your Fusion Drive:

(Note: Use the following commands using the Terminal from the Recovery Drive partition. To boot into the Recovery Drive partition shut down your Mac completely and then turn it on and immediately hold down the CMD + R keys on the keyboard.)


Step 1: Unmount disks

Launch Terminal by clicking on Utilities and then click on Terminal.

Then type the following command to unmount the SSD and HDD:


diskutil unmountDisk disk0
diskutil unmountDisk disk1


Step 2: Erase Unmounted Disks


diskutil eraseDisk JHFS+ Untitled disk0
diskutil eraseDisk JHFS+ Untitled disk1


Step 3: Create Fusion Drive


diskutil coreStorage create Fusion\ Drive disk0 disk1


Step 4: Create Volume

Note that with step above you will get output of: ' Discovered new Logical Volume Group "11111111-2222-3333-4444-555555555555" '. Use the numbers/letters in parenthesis for following command (you can copy and paste using Control+Left Click to bring up context sensitive menu and click on copy):


diskutil coreStorage createVolume 11111111-2222-3333-4444-555555555555 JHFS+ Macintosh\ HD 100%

Once you have completed the above steps, you will have a newly re-created Fusion Drive and a Macintosh HD partition to do a clean install of Mac OS X.

Oct 2, 2015 12:23 PM in response to Apple Cider

Mac mini (Late 2012 and later), iMac (Late 2012 and later): About Fusion Drive - Apple Support


In the Learn More - Troubleshooting part of this article, it states that the version of Disk Utility that comes on a computer with a Fusion Drive is unique. Other version of DU won't work with a Fusion Drive. So that leads me to assume that if you erase it with DU that came with the computer (as opposed to using another computers DU) it should work fine.


You could call AppleCare and find out. They generally provide free support if you are upgrading your OS.

Oct 10, 2015 2:39 PM in response to Apple Cider

I have managed to do a clean install of OS X El Capitan on a Mac with a Fusion Drive.


Creating a Bootable OS X El Capitan USB Drive

1. Download the OS X El Capitan App from the Mac App Store.

2. Using an empty 8GB or larger thumb drive, plug in the thumb drive into an unused USB drive on your Mac.

3. Open up Terminal by pressing cmd + space bar on your keyboard and type Terminal and hit return on your keyboard.

4. At this step, make sure that you don't have anything important on the thumb drive as the next step will reformat it. Also, make note of the name of your thumb drive by looking at your thumb drive on your Desktop. In my example, I will use the name UNTITLED for my thumb drive.

5. In Terminal, type the following command, all one line:

sudo "/Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia" --volume "/Volumes/UNTITLED" -- applicationpath "/Applications/Install OS X El Capitan.app"


6. You will be prompted to enter your password.


Erasing your Macintosh HD Logical Volume

1. Now that you have your OS X El Capitan install media, you will need to reboot your into the Recovery partition and NOT your OS X El Capitan thumb drive. To boot into your Recovery partition, reboot your Mac and hold down the cmd + R key on the keyboard. Keep holding cmd + R until you see the Apple logo.

2. You will see the OS X Utilities window, in there, click on Disk Utility.


3. On the left side of the Disk Utility window, click on Macintosh HD, and click on Erase, and then on Erase again to begin the process.


Erasing your Macintosh HD Logical Volume (Alternate Method)

1. Now, if you, like me, made the mistake of directly booting into the OS X El Capitan thumb drive, and tried to use the Disk Utility from El Capitan to erase your Macintosh HD, you will notice that it will error out. So perhaps you decided to boot back to the Recovery Drive and tried to erase the disk again and still nothing. Well you can use the Terminal, to bring back your Macintosh HD. (Note: I performed the following steps in the Recovery partition using the Terminal there. I do not know if this will work in the Terminal in the OS X El Capitan thumb drive media. But the commands are identical to try and erase the Macintosh HD and bring it back up.)

2. Launch Terminal by clicking on Utilities and then click on Terminal.

3. In Terminal type the following command to list your disks:


diskutil coreStorage list


4. From here look for the UUID for Logical Volume Family. The UUID is a universally unique identifier that is randomly generated when the Fusion Drive is created. This is the combination of the solid state drive and the hard disk drive on your Mac. The Logical Family Volume is the representation of these two physical drives combined as one logical disk known as the Fusion Drive. From this logical disk, your Fusion Drive, we will need to create a logical volume to which you will install OS X El Capitan. To do that, in Terminal, type the following command to re-create your Macintosh HD using the UUID for the Logical Volume Family. In the example below, I will use de305d54-75b4-431b-adb2-eb6b9e546014 as my UUID, this will be different from yours:


diskutil coreStorate createVolume de305d54-75b4-431b-adb2-eb6b9e546014 jhfs+ "Macintosh HD" 100%


4. Now wait for this to complete. Once done, if you are in the Recovery partition, reboot your Mac and hold down the option key on your keyboard and wait for the screen to show the drives, and simply click on your OS X El Capitan thumb drive and install OS X El Capitan on a clean Fusion Drive.

Oct 22, 2015 12:39 AM in response to Apple Cider

Hi,


thanks for the detailed reply, I wanted to ask same and I guess Im pretty much there, but my problem is that I already did format my fusion drive and installed OSX El Capitan, but while installation, I was shown two drives 1TB and other was 120GB SD, I selected 1TB and installed, my system is very slow now in compare to previous performance, then I realized that I did wrong formatting which separated both SSD and HDD, which were working under an umbrella of Fusion Drive, now what should I do to make it right, please help me.

Jan 12, 2016 7:40 PM in response to mrsly25

You are getting an error because Terminal cannot find a file simply named as "Install". The app file name contains spaces, so if you simply type it in as is, Terminal cannot read in spaces in file names or directory names. You need to ensure that if you are using spaces in a terminal command, you either:


1. Insert a backslash (\) before the space in a file name:


sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia

OR


2. You simply wrap the entire command in quotation marks:


sudo "/Application/Install OS X El Capitan.app"/Contents/Resources/createinstallmedia"

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to clean install OS X El Capitan on iMac Retina

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.