I recently got a Mac for some K8s commands which I couldn’t install on Windows. Even I still work mainly with my Windows machine it is much faster and easier to manage stuff, I think MacOS is really nice to install some Linux commands via brew and work with iOS apps.
But there are couple of issues, for example when I screwed up something, I don’t know how to fix it on a Mac. On a Windows things would be much easier with the centralized registry or dll files.
So I had to reset my Mac couple of times before it could be used. Here are the commands I use to reset my MacOS
Start up from macOS Recovery
To start up from macOS Recovery, turn on your Mac and immediately press and hold one of the following combinations on your keyboard. Release the keys when you see an Apple logo, spinning globe, or other startup screen.
Reinstall the latest macOS that was installed on your Mac (recommended).
Upgrade to the latest macOS that is compatible with your Mac.
Reinstall the macOS that came with your Mac, or the closest version still available.
You might be prompted to enter a password, such as a firmware password or the password of a user who is an administrator of this Mac. Enter the requested password to continue.
When you see the utilities window, you have started up from macOS Recovery.
2. Decide whether to erase (format) your disk
Since I dont want to store anything on this mac, just some software, I chose to erase everything.
3. Install macOS
When you’re ready to reinstall macOS, choose Reinstall macOS from the Utilities window. Then click Continue and follow the onscreen instructions. You will be asked to choose a disk on which to install.
- If the installer asks to unlock your disk, enter the password you use to log in to your Mac.
- If the installer doesn’t see your disk, or it says that it can’t install on your computer or volume, you might need to erase your disk first.
- If the installer is for a different version of macOS than you expected, learn about macOS Recovery exceptions.