Git Product home page Git Product logo

create_macos_recovery's Introduction

create_macos_recovery

Tool for repairing the Recovery volume (APFS) or partition (HFS+) on Macs running macOS 10.13.x or later.

This script uses a macOS 10.13 and later installer application to repair the Recovery volume (APFS) or partition (HFS+).

Pre-requisites

  1. This script
  2. An installer from Apple's Mac App Store for one of the following versions of macOS:
  • 10.13.x
  • 10.14.x
  • 10.15.x

Running the script

Run the create_macos_recovery.sh script with one argument: the path to an "Install macOS.app".

/path/to/create_macos_recovery.sh "/path/to/Install macOS [Name].app"

Example usage:

If you have a macOS Catalina 10.15.x installer available, run this command:

sudo /path/to/create_macos_recovery.sh "/Applications/Install macOS Catalina.app"

This should replace the existing Recovery volume or partition with a fresh install, using the Recovery installation tools available from the macOS installer app.

What the script does:

  1. Downloads the following installer package from Apple's Software Update service: SecUpd2019-005HighSierra.RecoveryHDUpdate.pkg

  2. Expands SecUpd2019-005HighSierra.RecoveryHDUpdate.pkg into a directory in /private/tmp in order to get access to the dm tool included with this installer package.

  3. Uses the dm tool and the Recovery installation tools available from the macOS installer app to rebuild the Recovery volume or partition.

  4. Cleans up by removing the downloaded SecUpd2019-005HighSierra.RecoveryHDUpdate.pkg and expanded package contents.

This script has been tested with the following OS installers from the Mac App Store:

  • macOS 10.13.6
  • macOS 10.14.6
  • macOS 10.15.0

create_macos_recovery's People

Contributors

rtrouton avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.