Skip to content

Instantly share code, notes, and snippets.

@deviationist
Created January 12, 2024 18:13
Show Gist options
  • Save deviationist/8f65e17c66ce9754847d7f3f2ae868bb to your computer and use it in GitHub Desktop.
Save deviationist/8f65e17c66ce9754847d7f3f2ae868bb to your computer and use it in GitHub Desktop.
Create macOS bootable USB on a M1 Macbook (High Sierra in this example)
You might need to format the USB-stick with Mac Extended (Journaled) before starting this process.
This guide is primarily based on Apple's own guide (https://support.apple.com/en-us/101578), but it solves other issues which is not adressed by Apple.
1. Download Mist: https://github.com/ninxsoft/Mist
Go the the release-page and download the latest "dmg"-file.
https://github.com/ninxsoft/Mist/releases
2. Extract the app-file and place it in your Applications-folder
3. Open the app-file (you might need to right click it and click "Open"), then click "Open" again to proceed.
4. Go to the Installers-tab, find the desired OS (in our case macOS High Sierra 10.13.6), and download it by clicking the green icon to the right. You might need to allow the app to make changes. You might get an error about "macOS Installer not compatible!" but just click "Continue" to proceed.
5. Select the "Application"-checkbox and select where you want the downloaded file to be stored.
6. When the download is completed then open the terminal. You can either find it in the /Applications/Utilities-folder or search for "terminal" in the Spotlight search.
7. When the terminal is open we need to navigate to the folder where you downloaded the file. Let's say that you stored it in the document folder, then the folder path would be /Users/your-username/Documents/. Type "cd /Users/your-username/Documents/" and click enter. Be sure to change to the your own username in the path.
8. Then you need to run the following command in the terminal: "codesign -s - -f ./Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia". Note that if you downloaded another OS than High Sierra you need to correct the path for it to work.
9. Insert the USB-stick and see what it's name is (the name of the folder that shows up on your desktop).
10. Then we need to craft the command that will place the OS onto the USB-stick:
sudo ./Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB\ Stick
11. Replace the "USB\ Stick" with the name of your USB-stick. Note that you need to add a "\" right before any space in the name for it to work properly. As mention earlier you might need to change the path if you downloaded another OS version than High Sierra.
12. Paste it into the terminal and click enter. You will be prompted to insert your password and then click enter.
13. Wait patiently, it might take 20 minutes +/-. You will get a message telling you when it's done.
14. When the process is done you can eject the USB-stick, insert it into the Mac you would like to reinstall. Turn the machine on, and when you hear the chime-sound hold down the option-button (the one with two lines on it, left of cmd/command). Select the USB stick in the menu. If the USB stick is not showing you need to debug further, it might be related to the USB stick not being signed properly. You might need to disable SIP for it to work.
Good luck!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment