I recently installed a new SSD on my old MacBook Pro – replacing the HDD. It's running El Capitan. After installing the new drive, I booted from my SuperDuper clone, formatted the new internal SSD to be Mac OS X Journaled, and restored the files from the backup to the new SSD using SuperDuper.
However – I just realized that the new SSD does not have a recovery partition. Is there a way to create a recovery partition without doing a full OS X El Capitan reinstall?
Best Answer
If you still have the Recovery partition, you can transfer the partition manually.
The example given below was generated using two sparse disk images and Yosemite (OS X 10.10.5). You may have to jump though hoops that I did not have too. Some of these hoops are:
sudo
.cd
command to navigate to the proper directory (folder).Below is the procedure for copying a Recovery partition from
/dev/disk1
to/dev/disk2
. This procedure requires the use of a third party command calledgdisk
. More information about this command can be found at the site "GPT fdisk Tutorial".The initial contents of
/dev/disk1
and/dev/disk2
are given below.Image the entire source partition. This partition is very small and normally is not mounted. Simply copy the partition to a file.
Make room of for the new Recovery partition.
Create the new Recovery partition on
/dev/disk2
. The new partition has to be exactly the same size as the existing Recover partition.Eject and reattach
/dev/disk2
. If you can not do this, then restart the Mac.Copy the saved image to the new Recovery partition. Since this is an exact copy, use the
hfs.util
command to generate a new UUID key for the HFS file system.Eject and reattach
/dev/disk2
. If you can not do this, then restart the Mac.Attempt to recover any leftover free space.
Below a is first attempt. The
diskutil resizevolume /dev/disk2s2 R
command fails.Note also that
diskutil resizevolume /dev/disk2s2 limits
command reports the wrong maximum size.Try again, but this time compute how large partition
/dev/disk2s2
should be.This attempt succeeded. In practice, you never recover all the free space. Note that the new Recovery partition
/dev/disk2s3
was relocated automatically.