Before you start
You will need the following:
Prepare a USB disk of 8GB+ to receive the Mac OS Mavericks installation (the compressed download from the App Store is 5.3GB, so it will expand somewhat on our disk). Insert it into a USB slot and launch the Disk Utility. Erase all data and rename the drive to a specific name: the script that we will use later will erase the data again, but it does need the correct name for the USB drive.
Format the drive using “Mac OS Extended (Journaled)” and use a new name. I’m using mavericksinstall. If you already have a volume using that name, pick another name and change the script below accordingly).
Before doing this, verify that there is nothing that you need on this USB drive – data from it will be lost.
As you download it, the Mac Store will point out that you are already running on Mavericks, but click on Continue and it will download the file.
Open a Terminal Window and copy or type the following command:
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia –volume /Volumes/mavericksinstall –applicationpath /Applications/Install\ OS\ X\ Mavericks.app –nointeraction
This command will basically delete data on the USB drive, and it will make it bootable using the update file downloaded from the store, and named Mavericks.app. It will also install a recovery partition on the USB drive, so don’t be surprised to see it later. Thanks to forum user tywebb13 for sharing this command.
The process will take a while, and you will see something like:
Erasing Disk: 0%… 10%… 20%… 100%…
Copying installer files to disk…
Copy complete.
Making disk bootable…
Copying boot files…
Copy complete.
Done.
Go into the settings, and select the boot drive. Pick the newly built USB drive with the installer for Mavericks and restart.
You can also reboot your Mac and hold the “Options” key to enter the boot menu. Pick the USB drive to boot on it and start a clean Mac OS X Mavericks installation.
Hopefully, the installation should be easy and by now, you have a clean Mac with Mac OS X Mavericks. Enjoy!
If you know an easier way to do this, let me know and I’ll be happy to give it a try. If you can’t make it work, double-check that the USB drive volume name matches the name in the script.