Make a bootable pendrive macOS installer

Follow this instructions to put a bootable macOS installer on a memory stick:

1. Download the full size macOS installer


Download macOS from a Mac that is using macOS Sierra 10.12.5 or later, or El Capitan 10.11.6


Download mini installer: macOS Big Sur, macOS Catalina, macOS Mojave, or macOS High Sierra
These download to your Applications folder as "Install macOS -name-" app


Full size macOS download: OS X El Capitan
Open the disk image and run the installer within, named InstallMacOSX.pkg



To get the full version [of Install macOS Mojave.app] from Apple, start the mini installer that you get from the App Store and follow the prompts until you get to the point that it starts counting down to reboot your machine. Quickly CANCEL the reboot.

Once you quit the installation, you will have the full 6gb installer files. It will create a folder titled “macOS install Data” on the root of your primary hard drive.

You now have to make the installer package by running the following 3 commands in Terminal:

sudo -s

and enter password

mkdir /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport

cd /macOS\ Install\ Data

find . -mount | cpio -pvdm /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport

The installer in your Applications folder is now 6GB instead of 23mb


2. Plug a 16GB pendrive


Use the 'createinstallmedia' command in Terminal
Connect the USB flash drive or other volume that you're using for the bootable installer. 
Open Terminal, which is in the Utilities folder of your Applications folder.
Type or paste one of the following commands in Terminal. These assume that the installer is in your Applications folder, and MyVolume is the name of the USB flash drive or other volume you're using. If it has a different name, replace MyVolume in these commands with the name of your volume.

Big Sur:*
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

Catalina:*
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

Mojave:*
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

High Sierra:*
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

El Capitan:
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app

* If your Mac is using macOS Sierra or earlier, include the --applicationpath argument and installer path, similar to the way this is done in the command for El Capitan.

After typing the command:
Press Return to enter the command.
When prompted, type your administrator password and press Return again. Terminal doesn't show any characters as you type your password.
When prompted, type Y to confirm that you want to erase the volume, then press Return. Terminal shows the progress as the volume is erased.
After the volume is erased, you may see an alert that Terminal would like to access files on a removable volume. Click OK to allow the copy to proceed. 
When Terminal says that it's done, the volume will have the same name as the installer you downloaded, such as Install macOS Big Sur. You can now quit Terminal and eject the volume.






No comments:

Post a Comment