{"id":1116,"date":"2012-06-01T14:34:27","date_gmt":"2012-06-01T14:34:27","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1116"},"modified":"2012-06-11T09:09:14","modified_gmt":"2012-06-11T09:09:14","slug":"remove-and-remake-10-7-recovery-hd","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1116","title":{"rendered":"Remove and Remake 10.7 Recovery HD"},"content":{"rendered":"<p>When updating to 10.7.2, there\u2019s a\u00a0<a href=\"http:\/\/support.apple.com\/kb\/DL1464\">Lion Recovery Update<\/a>\u00a0that goes along with it. This is meant to update your Recover HD recovery partition to 10.7.2 along with your Mac. However, when I tried updating, I could see from the logs that for whatever reason, my Recovery HD was staying at 10.7.1 and was not being successfully updated. As the new Find My Mac functionality in iCloud relies on Recovery HD being updated to 10.7.2, I wanted to be able to fix this problem without having to reinstall or reimage my Mac. Fortunately,\u00a0<a href=\"https:\/\/plus.google.com\/108724035107725322855\/posts\/Y33cF3cJR9o\">thanks to the work of Clay Caviness at Google<\/a>, there\u2019s a way to rebuild your recovery partition (at least for 10.7.2) on a Mac that doesn\u2019t have one. I did have one, but I knew how to fix that. See below the jump for the procedure.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Note<\/strong>: All commands shown are single lines.<\/p>\n<p>Step One: Make a full backup of your boot drive.<\/p>\n<p>This is absolutely the most important step of this process. Any time you\u2019re moving partitions around, stuff can go wrong. Making a backup beforehand can turn a later \u201cSomething went wrong\u201d moment from a crisis into a less-bad inconvenience.<\/p>\n<p>Step Two: Remove the existing\u00a0<strong>Recovery HD<\/strong>\u00a0recovery partition<\/p>\n<p>1. Get the disk identifier of your recovery partition by running the following command:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">diskutil list<\/div><\/div>\n<p>2. Once you\u2019ve identified the entry, then remove it by running the following command. (In this case, I\u2019ll be using\u00a0<strong>disk0s4<\/strong>\u00a0for the recovery partition and\u00a0<strong>disk0s3<\/strong>\u00a0for the main boot partition.):<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">diskutil eraseVolume HFS+ ErasedDisk \/dev\/disk0s4<\/div><\/div>\n<p>3. Next, merge the recovery and boot partitions together to create one partition (the\u00a0<strong>MacHD<\/strong>identifier is to give the partition a new name; your existing boot drive name shouldn\u2019t be changed by this process):<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">diskutil mergePartitions HFS+ MacHD disk0s3 disk0s4<\/div><\/div>\n<p>Step Three: Rebuilding the recovery partition:<\/p>\n<p>1.\u00a0<a href=\"http:\/\/support.apple.com\/kb\/DL1464\">Download the Lion Recovery Update from http:\/\/support.apple.com\/kb\/DL1464<\/a><\/p>\n<p>2. Run the following commands to attach the correct disk image and rebuild the recovery partition:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">hdiutil attach RecoveryHDUpdate.dmg<\/div><\/div>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">pkgutil --expand \/Volumes\/Mac\\ OS\\ X\\ Lion\\ Recovery\\ HD\\ Update\/RecoveryHDUpdate.pkg \/tmp\/RecoveryHDUpdate<\/div><\/div>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">hdiutil attach \/tmp\/RecoveryHDUpdate\/RecoveryHDUpdate.pkg\/RecoveryHDMeta.dmg<\/div><\/div>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/tmp\/RecoveryHDUpdate\/RecoveryHDUpdate.pkg\/Scripts\/Tools\/dmtest ensureRecoveryPartition \/ \/Volumes\/Recovery\\ HD\\ Update\/BaseSystem.dmg 0 0 \/Volumes\/Recovery\\ HD\\ Update\/BaseSystem.chunklist<\/div><\/div>\n<p>At this point, you will see a large amount of code fly by as the recovery partition is rebuilt. It should end with\u00a0<strong>Creating recovery partition: finished<\/strong><\/p>\n<p>The next set of commands is clean-up and making the system recognize the updated recovery partition.<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">hdiutil eject \/Volumes\/Recovery\\ HD\\ Update<br \/>\nhdiutil eject \/Volumes\/Mac\\ OS\\ X\\ Lion\\ Recovery\\ HD\\ Update<br \/>\nsudo touch \/Library\/Preferences\/SystemConfiguration\/com.apple.Boot.plist<br \/>\nsudo kextcache -f -u \/<\/div><\/div>\n<p>Once finished, restart your Mac and verify that you can boot to Recovery HD. To verify that your Recovery HD is now on 10.7.2, open the Terminal (available from the\u00a0<strong>Utilities<\/strong>\u00a0menu when booted from the Recovery HD partition,) and run the following command:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">sw_vers<\/div><\/div>\n<p>The following information should be displayed:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">ProductName: Mac OS X<br \/>\nProductVersion: 10.7.2<br \/>\nBuildVersion: 11C74<\/div><\/div>\n<p>Or have a look here\u00a0<a title=\"Make Restore HD\" href=\"http:\/\/www.brunerd.com\/blog\/2012\/03\/21\/update-create-lion-recoveryhd-partition-quickly-without-reinstalling\/\">http:\/\/www.brunerd.com\/blog\/2012\/03\/21\/update-create-lion-recoveryhd-partition-quickly-without-reinstalling\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When updating to 10.7.2, there\u2019s a\u00a0Lion Recovery Update\u00a0that goes along with it. This is meant to update your Recover HD recovery partition [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1116","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1116"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1116\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}