Resolved How to Update the Recovery Partition in High Sierra

Discussion in 'macOS High Sierra (10.13)' started by RobK88, May 15, 2019.

  1. RobK88 macrumors newbie

    Joined:
    Apr 6, 2012
    #1
    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!
     

    Attached Files:

  2. RobK88 thread starter macrumors newbie

    Joined:
    Apr 6, 2012
    #2
    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.
     
  3. Polarmuppet macrumors newbie

    Joined:
    May 18, 2019
    #3
    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.
     
  4. ATC macrumors 65816

    Joined:
    Apr 25, 2008
    Location:
    Canada
    #4
    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!
     
  5. philk34 macrumors newbie

    Joined:
    Mar 28, 2019
    #5
    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
     
  6. jbarley macrumors 68040

    jbarley

    Joined:
    Jul 1, 2006
    Location:
    Vancouver Island
    #6
    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.
     

Share This Page

5 May 15, 2019