Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

Resolved How to Update the Recovery Partition in High Sierra

RobK88

macrumors member
Original poster
Apr 6, 2012
33
11
Unfortunately, most of the High Sierra Security Updates will fail when attempting to install them on unsupported Macs since they unsucessfully attempt to update the Recovery Partition.

The fix is simple. First update the Recovery Partition using my method below then install the High Sierra Security Update via the App Store. (Or you can download the Security Update from Apple's website, hack it as described here
https://forums.macrumors.com/threads/macos-high-sierra-10-13-unsupported-macs-thread.2048478/
and then run the hacked installer for the Security Update).

The method below should also probably work on Macs that natively support High Sierra but I would just download the Security Update from the Apple website and run it first before trying the method below.


Method for Updating the High Sierra Recovery Partition:

1. Download the Lion Recovery Update from https://support.apple.com/kb/dl1464?locale=en_US . Put it into the downloads folder if it is not there already.

2. Download the latest Security Update for High Sierra from Apple's website (https://support.apple.com/downloads). It will be a file ending in .dmg.

Double click on the .dmg file to mount it.

Move the update.pkg to Desktop.

Open Terminal.

Type "pkgutil --expand" (without the quotes)
Now drag and drop the .pkg from the Desktop into the Terminal window and type after a space Then type "~/Desktop/Expanded" (without the quotes) and hit Return.
Wait, this takes a little while.

Open folder named "Expanded" on your Desktop.
Right click on the file named "EmbeddedOSFirmware.pkg" and click Show Package Contents.
Copy RecoveryHDMeta.dmg into your Downloads folder.

3. Copy and paste the following code using TextEdit or Xcode etc and save the file as HSrecovery.sh into your Downloads folder:

Code:
#
# Script to Update the High Sierra Recovery Partition
#
# License:  GNU GPL2
#
#
read -p "Ensure "RecoveryHDUpdate.dmg" and "RecoveryHDMeta.dmg" are in your Downloads folder and press [Enter]"

#access dmtest from RecoveryHDUpdate.pkg
rm -rf /private/tmp/RecoveryHDUpdate
echo "Expanding RecoveryHDUpdate.pkg"
hdiutil attach -nobrowse ~/Downloads/RecoveryHDUpdate.dmg
pkgutil --expand /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update/RecoveryHDUpdate.pkg /tmp/RecoveryHDUpdate

#access BaseSystem.dmg and BaseSystem.chunklist
echo "Expanding RecoveryHDMeta.dmg"
hdiutil attach -nobrowse ~/Downloads/RecoveryHDMeta.dmg

#build Recovery partition
echo "Building Recovery Partition. Please Wait"
/tmp/RecoveryHDUpdate/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest ensureRecoveryPartition / /Volumes/RecoveryHDMeta/BaseSystem.dmg 0 0 /Volumes/RecoveryHDMeta/BaseSystem.chunklist

#cleanup
echo "Cleaning up"
hdiutil eject /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update
hdiutil eject /Volumes/RecoveryHDMeta
sudo touch /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
sudo kextcache -f -u /
exit 0


4. Open Terminal and type the following commands:

chmod +x ~/Downloads/HSrecovery.sh

sudo ~/Downloads/HSrecovery.sh

5. Wait a few minutes for it to finish and return back to a prompt.

6. To make your updated High Sierra Recovery Partition bootable, you will need to boot off Dosdude1's High Sierra installer on a USB memory stick and choose POST INSTALL. Make sure the Recovery Partition Patch is selected before running the patches.

OPTIONAL:

It is also a good idea to update Dosdude1's installer on the USB stick with the most updated High Sierra Recovery Partition data if you ever need to reinstall High Sierra on an unsupported Mac using the following steps:

1. Follow Step 2 above. At the end, you should have a file named "RecoveryHDMeta.dmg" into your Downloads folder.

2. Double click on to mount it.

3. Insert Dosdude1's High Sierra installer into a USB port. It should automatically mount.

4. Using Finder, copy the following four files from the mounted "RecoveryHDMeta.dmg" to the root of Dosdude1's High Sierra installer:

AppleDiagnostics.chunklist
AppleDiagnostics.dmg
BaseSystem.chunklist
BaseSystem.dmg

5. In Finder, unmount "RecoveryHDMeta.dmg"

6. In Finder. unmount or eject Dosdude1's High Sierra installer and unplug the USB memory stick from the USB port.

You are done!
 

Attachments

  • HSrecovery.sh.zip
    1 KB · Views: 408

RobK88

macrumors member
Original poster
Apr 6, 2012
33
11
I forgot to mention in the Optional Section above that if when you reinstall High Sierra from scratch and want to be able to boot off the Recovery Partition, you must select the patch for the Recovery Partition in the Post Install tool from DosDude1's USB Installer. If you do not do that, you will not be able to boot off the Recovery Partition.

Unfortunately, the patch for the Recovery Partition in Dosdude1's Post Install tool is not selected by default. You must check it yourself. If you forget, you can always boot of Dosdude1's installer at a later time and run the patch for the Recovery Partition.
 
Comment

Polarmuppet

macrumors newbie
May 18, 2019
2
0
This is great work - thank you. I've now been able to install the latest High Sierra updates on my 2008 Mac Pro and I now have a working recovery partition, which I didn't before. The install of the security update from the App Store was a bit shaky - it hung at one point and I had to recycle the power, but it completed and I've checked the build number, and it installed.
 
Comment

ATC

macrumors 65816
Apr 25, 2008
1,165
369
Canada
Unfortunately, most of the High Sierra Security Updates will fail when attempting to install them on unsupported Macs since they unsucessfully attempt to update the Recovery Partition.

The fix is simple. First update the Recovery Partition using my method below then install the High Sierra Security Update via the App Store. (Or you can download the Security Update from Apple's website, hack it as described here
https://forums.macrumors.com/threads/macos-high-sierra-10-13-unsupported-macs-thread.2048478/
and then run the hacked installer for the Security Update).

The method below should also probably work on Macs that natively support High Sierra but I would just download the Security Update from the Apple website and run it first before trying the method below.


OPTIONAL:

It is also a good idea to update Dosdude1's installer on the USB stick with the most updated High Sierra Recovery Partition data if you ever need to reinstall High Sierra on an unsupported Mac using the following steps:

1. Follow Step 2 above. At the end, you should have a file named "RecoveryHDMeta.dmg" into your Downloads folder.

2. Double click on to mount it.

3. Insert Dosdude1's High Sierra installer into a USB port. It should automatically mount.

4. Using Finder, copy the following four files from the mounted "RecoveryHDMeta.dmg" to the root of Dosdude1's High Sierra installer:

AppleDiagnostics.chunklist
AppleDiagnostics.dmg
BaseSystem.chunklist
BaseSystem.dmg

5. In Finder, unmount "RecoveryHDMeta.dmg"

6. In Finder. unmount or eject Dosdude1's High Sierra installer and unplug the USB memory stick from the USB port.

You are done!
I just wanted to say thanks again for posting this, the OPTIONAL part in particular.

I've had nothing but headaches in the past. All security and point updates through the MAS to my HS install on my iMac 9,1 have always hung and failed. I tried various workarounds posted here and elsewhere without much luck. I used this OPTIONAL method to mod the HS USB flash drive made with Dosdude's tools and then clean installed 10.13.6 last night, all subsequent updates through the MAS (including SU2019-003) have installed flawlessly after that.

Great work!
 
Comment

philk34

macrumors newbie
Mar 28, 2019
28
10
Hello,
this command do not work for me
chmod + x ~ / Téléchargements / HSrecovery.sh

sudo ~ / Téléchargements / HSrecovery.sh

i have this message error : command not found
 
Comment

jbarley

Contributor
Jul 1, 2006
3,976
1,843
Vancouver Island
You need to get rid of all the "spaces" so your command looks more like "chmod +x ~/Téléchargements/HSrecovery.sh"
same goes for the second command.
 
Comment

Oadbylad

macrumors newbie
Sep 9, 2011
15
2
Here at me Mac
Unfortunately, most of the High Sierra Security Updates will fail when attempting to install them on unsupported Macs since they unsucessfully attempt to update the Recovery Partition.

The fix is simple. First update the Recovery Partition using my method below then install the High Sierra Security Update via the App Store. (Or you can download the Security Update from Apple's website, hack it as described here
https://forums.macrumors.com/threads/macos-high-sierra-10-13-unsupported-macs-thread.2048478/
and then run the hacked installer for the Security Update).

The method below should also probably work on Macs that natively support High Sierra but I would just download the Security Update from the Apple website and run it first before trying the method below.


Method for Updating the High Sierra Recovery Partition:

1. Download the Lion Recovery Update from https://support.apple.com/kb/dl1464?locale=en_US . Put it into the downloads folder if it is not there already.

2. Download the latest Security Update for High Sierra from Apple's website (https://support.apple.com/downloads). It will be a file ending in .dmg.

Double click on the .dmg file to mount it.

Move the update.pkg to Desktop.

Open Terminal.

Type "pkgutil --expand" (without the quotes)
Now drag and drop the .pkg from the Desktop into the Terminal window and type after a space Then type "~/Desktop/Expanded" (without the quotes) and hit Return.
Wait, this takes a little while.

Open folder named "Expanded" on your Desktop.
Right click on the file named "EmbeddedOSFirmware.pkg" and click Show Package Contents.
Copy RecoveryHDMeta.dmg into your Downloads folder.

3. Copy and paste the following code using TextEdit or Xcode etc and save the file as HSrecovery.sh into your Downloads folder:

Code:
#
# Script to Update the High Sierra Recovery Partition
#
# License:  GNU GPL2
#
#
read -p "Ensure "RecoveryHDUpdate.dmg" and "RecoveryHDMeta.dmg" are in your Downloads folder and press [Enter]"

#access dmtest from RecoveryHDUpdate.pkg
rm -rf /private/tmp/RecoveryHDUpdate
echo "Expanding RecoveryHDUpdate.pkg"
hdiutil attach -nobrowse ~/Downloads/RecoveryHDUpdate.dmg
pkgutil --expand /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update/RecoveryHDUpdate.pkg /tmp/RecoveryHDUpdate

#access BaseSystem.dmg and BaseSystem.chunklist
echo "Expanding RecoveryHDMeta.dmg"
hdiutil attach -nobrowse ~/Downloads/RecoveryHDMeta.dmg

#build Recovery partition
echo "Building Recovery Partition. Please Wait"
/tmp/RecoveryHDUpdate/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest ensureRecoveryPartition / /Volumes/RecoveryHDMeta/BaseSystem.dmg 0 0 /Volumes/RecoveryHDMeta/BaseSystem.chunklist

#cleanup
echo "Cleaning up"
hdiutil eject /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update
hdiutil eject /Volumes/RecoveryHDMeta
sudo touch /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
sudo kextcache -f -u /
exit 0


4. Open Terminal and type the following commands:

chmod +x ~/Downloads/HSrecovery.sh

sudo ~/Downloads/HSrecovery.sh

5. Wait a few minutes for it to finish and return back to a prompt.

6. To make your updated High Sierra Recovery Partition bootable, you will need to boot off Dosdude1's High Sierra installer on a USB memory stick and choose POST INSTALL. Make sure the Recovery Partition Patch is selected before running the patches.

OPTIONAL:

It is also a good idea to update Dosdude1's installer on the USB stick with the most updated High Sierra Recovery Partition data if you ever need to reinstall High Sierra on an unsupported Mac using the following steps:

1. Follow Step 2 above. At the end, you should have a file named "RecoveryHDMeta.dmg" into your Downloads folder.

2. Double click on to mount it.

3. Insert Dosdude1's High Sierra installer into a USB port. It should automatically mount.

4. Using Finder, copy the following four files from the mounted "RecoveryHDMeta.dmg" to the root of Dosdude1's High Sierra installer:

AppleDiagnostics.chunklist
AppleDiagnostics.dmg
BaseSystem.chunklist
BaseSystem.dmg

5. In Finder, unmount "RecoveryHDMeta.dmg"

6. In Finder. unmount or eject Dosdude1's High Sierra installer and unplug the USB memory stick from the USB port.

You are done!
Hi is this still viable with the latest Security update dated 2020-003 as i keep getting

pkgutil --expand/Volumes/Security\ Update\ 2020-003 ~/Desktop/Expanded


pkgutil: unrecognized option `--expand/Volumes/Security Update 2020-003'
 
Comment

Oadbylad

macrumors newbie
Sep 9, 2011
15
2
Here at me Mac
I forgot to mention in the Optional Section above that if when you reinstall High Sierra from scratch and want to be able to boot off the Recovery Partition, you must select the patch for the Recovery Partition in the Post Install tool from DosDude1's USB Installer. If you do not do that, you will not be able to boot off the Recovery Partition.

Unfortunately, the patch for the Recovery Partition in Dosdude1's Post Install tool is not selected by default. You must check it yourself. If you forget, you can always boot of Dosdude1's installer at a later time and run the patch for the Recovery Partition.
Is this in itself argumentative? this post purports to help get OS recovery back, but the above post states that to use dosdud1's High Sierra patcher but he sates that a prerequisite for it to work is you must have SIP disabled and yet you can only achieve this through Terminal in recovery??????????
 
Comment

jorgk

macrumors regular
Mar 20, 2013
104
23
Many thanks to the original poster RobK88 !

Your instruction worked flawless for me for a MacBook5,1 (late 2008 Unibody/Aluminium). Both the instruction for the MB HDD recovery partition as well as for the Dosdude1's High Sierra installer on an USB. Admittedly, I did not test their functionality as a bootable recovery partition - was just too lazy.
However, the Security Update 2020-003 for HS ran through without any hickup - very different to earlier updates that always reported errors (where people here suggested to ignore them as it would be caused by a non-updated recovery partition).
Thanks!
 
Comment

LegacyUser12

macrumors member
Nov 27, 2016
41
3
Many thanks to the original poster RobK88 !

Your instruction worked flawless for me for a MacBook5,1 (late 2008 Unibody/Aluminium). Both the instruction for the MB HDD recovery partition as well as for the Dosdude1's High Sierra installer on an USB. Admittedly, I did not test their functionality as a bootable recovery partition - was just too lazy.
However, the Security Update 2020-003 for HS ran through without any hickup - very different to earlier updates that always reported errors (where people here suggested to ignore them as it would be caused by a non-updated recovery partition).
Thanks!

Do yourself a favor and go test the recovery partition! I'm right where you are with the 5,1 late 08 C2D 2.0ghz Unibody using dosdude1's HS patch. I'm having kernel issues right now and can't get into safe mode.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.