Recovery Partition Creator v2.0.5
August 21, 2012 by Christopher Silvertooth
UPDATE to 3.0 – Check this out first.
UPDATED to 2.0.5 – THIS SCRIPT DOES NOT WORK WITH FUSION DRIVES… YET
Alright folks, here is the latest version. Please be sure to read this entire post before running the script. I have added an addition that will now check your hard disk for errors. If it fails the script will stop and prompt you to fix the problem.
If you don’t know what this script is for then make sure you read the whole article carefully. Here is a quick summary so you don’t have to waste much time. If you need or are missing the recovery partition or need/can’t enable file vault 2 or back to my mac then you probably have a problem with your recovery partition. One way to get it back or rebuild the recovery partition is to re-install OS X. This is time consuming and would seem a bit like overkill. This script will re-deploy a recovery partition without the need of re-installing the OS. I have also seen people use this script to build a recovery partition on a Hackintosh. Though that wasn’t the intent of my script I am glad that others have found another use for it 😉
1. I haven’t been able to test it as thoroughly as I would like but it has worked in my test environment. That said, please, please, please backup your Mac before running this. Either use Time Machine or I also recommend Carbon Copy Cloner from Mike Bombich to make an exact duplicate of your computer as it stands today.
2. For Lion computers, all you need is this script and it will download all the components that are needed in order to recreate the recovery partition. The exception is the new 2012 Macbook Pro’s (Retina included) as well as the new 2012 Macbook Airs. For those computers I recommend upgrading to Mountain Lion.
3. For Mountain Lion users, you will need the Mountain Lion Installer, a.k.a. “Install OS X Mountain Lion.app”, in order to recreate the recovery partition. I wish there was another way around it but the components that are needed are inside of that installer and can’t be found anywhere else as of yet. I hope that they become available like they did for Lion at which point I will modify this script to take advantage of that.
4. Lastly, it would be wise to run disk utility and validate that your hard drive is in good shape. If any errors come up you will need to get those fixed before you can use this script.
5. The way this script creates the recovery partition may or may not create the icon for the recovery partition when you hold the option key at boot. In other words, you may have successfully created the recovery partition but it may not appear in the boot picker menu after holding the option key. Use the Command-R option on boot to access the recovery partition.
Alright, now for the script. You can download the script here.
Mountain Lion users!!! You need to have the “Install OS X Mountain Lion.app” in your Applications folder. If you don’t have this you will need to re-download it from the app store.
To run it just double click the file and it should open a terminal window. The terminal window will prompt you so make sure you read the questions it asks.
Please provide feedback so that I can make this script better.
# 2.0.1 added verify disk check
# 2.0.2 added Retina Macbook Pro and 2012 Air check
# 2.0.3 Fixed bug in OS detection. Reported by Steve Silvertooth.
# 2.0.4 Fixed diskutil check so that it doesn’t break with multiple drives.
# 2.0.5 Cleaned up Mountain Lion issues.
# Lost Missing Gone Recovery Restore Volume Partition – Poof!