Mac troubleshooting: Be prepared for hard-drive failure
When hard-drive disaster strikes, you need to start up your Mac from another drive to repair it. In days gone by, you would typically boot from the install CD or DVD that came with your Mac (assuming you could recall where you stashed it) and run Apple’s Disk Utility from there. But today’s Macs no longer ship with any optical disc–heck, most Macs ship without any optical drive. So what do you do instead? Your best bet is to prepare ahead.
Create an emergency flash drive
An emergency drive contains only the essential software you need to boot your Mac and run troubleshooting utilities (such as Apple’s Disk Utility). I recommend using a USB flash drive (8GB is sufficient) rather than an optical disc. Flash drives are superior because they work with Macs that no longer contain an optical drive, and you can update them as necessary.
The Recovery Disk Assistant method: One way to create your own emergency drive is via Apple’s Recovery Disk Assistant. This tool is simple to use, but requires that you already have a dedicated partition on your Mac’s hard drive called Recovery HD. If you installed Lion or Mountain Lion on a supported hard-drive configuration (your Mac must have an internal drive formatted with a GUID partition scheme), chances are good that it’s there.
You can check to see if you have the partition by restarting your Mac and then holding down Command-R. Or, restart while holding down the Option key. A screen should appear with Recovery HD as one of your options.
Why do you have to have a partition on your Mac to be able to create the emergency drive on an external device? It’s probably because Disk Assistant requires the data on the partition to create the external drive. If the partition is missing or corrupt, you’ll see an error.
Download the OS X Recovery Disk Assistant from Apple’s Support site. Connect your USB flash drive to your Mac, launch OS X Recovery Disk Assistant, select the drive, and then follow the on-screen prompts. This is a quick and easy process.
The do-it-yourself method: Lacking the Recovery HD partition on your startup drive isn’t the only reason you might skip using Apple’s Recovery Disk Assistant. In some cases, an Assistant-created drive will work only with the Mac that made it. Luckily, you have another way to create an emergency flash drive.
First, you need a copy of the Install OS X Mountain Lion app. (Check in your Applications folder.) Even if you previously had this utility, it may no longer be on your drive, because OS X unhelpfully deletes it after you use it. If it’s missing, redownload it from the App Store by selecting Apple menu > App Store. You may need to hold down the Option key when you choose Purchases to make the app show up.
Next, you have to extract the InstallESD.dmg file from the app’s package; this is the file you’ll use to create the install drive. Right-click (or Control-click) the Install OS X Mountain Lion app and choose Show Package Contents from the contextual menu that appears. A folder will appear. Open Contents and then open Shared Support. Inside you’ll see the file InstallESD.dmg.
Go here to read the rest: Mac troubleshooting: Be prepared for hard-drive failure
