Tuesday, March 28, 2017

How to Reinstall macOS

Apple:

macOS Recovery installs different versions of macOS depending on the key combination you press while starting up. Hold down one of these combinations immediately after pressing the power button to turn on your Mac. Release when you see the Apple logo or a spinning globe.

This seems to be new in macOS 10.12.4, and it came in handy for me today. As with the last several updates, the 10.12.4 update completed on my main Mac but then the Mac got stuck near the end of the boot process. (I had recently done a clean install in the hope that it would clear out whatever was causing the update problems, but alas it did not.) Unlike prior updates, rebooting and safe booting didn’t help. The Mac just wouldn’t boot into my main account or even a guest account. It looked like I’d need a fresh macOS install.

The new Option-Command-R keyboard shortcut lets you do an Internet recovery of latest macOS that is compatible with your Mac. So, rather than boot from a slow hard drive, wrangle the Mac App Store, download the installer, and then launch it, I just held down the keys and let it download and install all at once. The time estimate was way off (under), but other than that it worked smoothly and got my Mac booting again.

I’ve now got a folder at /.PKInstallSandboxManager-SystemSoftware, presumably left behind by the incremental update. sudo rm doesn’t seem to be able to delete it. It looks like I would need to turn off System Integrity Protection to do that.

Update (2017-03-30): Thomas Brand:

Internet Recovery is now a convenient time-saver, skipping the unpatched versions of system software and restoring the latest Mac OS. I am a fan just as long restoring older versions of Mac OS are still an option. One of my least favorite aspects of iOS is that you cannot install the version of system software that originally shipped with your device.

5 Comments RSS · Twitter

Does the upgrade hang with one minute left? That happens to me on some machines and I finally found the cause. Use command+L to look at the install log. I found the installer was moving thousands of tiny TexLive files. I think it happens whenever you have lots of files under /usr/local. It does finally finish. References: https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips and http://apple.stackexchange.com/questions/151093.

@SSteve Thanks for the links. In this case, it hung after the upgrade (black screen), right before showing the desktop. With previous upgrades, it has hung earlier, but I have forgotten to view the live log. I do have TeX installed, but I have also let it run for 10+ hours with no apparent progress.

[…]  この変更によってユーザーは脆弱性を含んでいる古いmacOSを再インストールし、その後パッチを当てるといった手順を踏まず、最も新しいmacOSを自動的にインストールできるため、EagleFilerを開発しているMichael Tsaiさんら[1, 2]は時間の節約にもなると予想していますが、 […]

Leave a Comment