# Making the installer in macOS
While you don’t need a fresh install of macOS to use OpenCore, some users prefer having a fresh slate with their boot manager upgrades.
To start we’ll want to grab ourselves a copy of macOS. You can skip this and head to formatting the USB if you’re just making a bootable OpenCore stick and not an installer. For everyone else, you can either download macOS from the App Store or with Munki’s script.
# Downloading macOS: Modern OS
This method allows you to download macOS 10.13 and newer, for 10.12 and older see Downloading macOS: Legacy OS.
-
macOS 12 and above note: As recent macOS versions introduce changes to the USB stack, it is highly advisable that you map your USB ports (with USBToolBox) before installing macOS.
- Note: We recommend to move the Install macOS.app into the /Applications folder, as we’ll be executing commands from there.
- Note 2: Running Cmd+Shift+G in Finder will allow you to easily jump to
- 10.7 — 10.12 supported, excluding 10.9
- 10.7 — 11 supported
- 10.4 — 10.6 supported
- Note 1: The EFI partition created by formatting the USB is hidden until you mount it. This will be mounted later when Setting up OpenCore’s EFI environment
- Note 2: By default, Disk Utility only shows partitions – press Cmd/Win+2 to show all devices (alternatively you can press the View button)
- Note 3: Users following "Legacy macOS: Online Method" section can skip to Setting up OpenCore’s EFI environment
- BootInstall_IA32.tool or BootInstall_X64.tool
- This can be found in OpenCorePkg under /Utilties/LegacyBoot/
Within your OpenCore build folder, navigate to Utilities/LegacyBoot . Here you’ll find a file called BootInstall_ARCH.tool . What this does is install DuetPkg to your desired drive.

Now run this tool in terminal with sudo(This tool will likely fail otherwise):

This will give you a list of available disks, choose yours and you will be prompted to write a new MBR. Choose yes [y] and you’ll be finished.


This will provide you with an EFI partition with either a bootia32 or bootx64 file
# Setting up OpenCore’s EFI environment
Setting up OpenCore’s EFI environment is simple – all you need to do is mount our EFI system partition. This is automatically made when we format with GUID but is unmounted by default, this is where our friend MountEFI

You’ll notice that once we open the EFI partition, it’s empty. This is where the fun begins.
Easy way to use your USB drive with El Capitan
This write up is basically made to assist the users to help creating a USB drive on the El Capitan OS. Before going through the process, you need some things. Let us check on the essential things that you need. first you have to Download El capitan 10.11.
You will need a USB drive of 8 GB, bigger USB drives also applicable.
The OS X 10.11 El Capitan installer app. You have to put this app, in the folder of applications. You can download the installer easily.
Then you will be needing the special software of diskmaker.
Method 1: How to make the USB as an installer from DiskMaker X
As the first step, you have to run the software of DiskMaker. Choose for the El Capitan OS, when you need to choose for the Apple OS version. So you can make the bootable USB disk from that.
As the second step, you have to select the installation file.
Select the installer of the El Capitan file from the applications folder, and locate it.
Click on the USB drive with the space of 8 GB.
So now you have to click for the correct USB drive, and then you can choose for the disk.
Click on the Erase button, and then press on the button of create disk.
Chose the continue button, then you have to fill the password section regarding the administrative password.
Be patient until the creation process is completed.
So now you can have the El Capitan Download bootable installer, in the USB drive that you have created.
Method 2: make the El Capitan Installer with a USB drive using the terminal.
Making a bootable USB by formatting.
First, you have to connect the USB drive with your Mac device (MacBook), you have to run the Disk Utility. Then, you can select the particular USB drive.
Click the erase button, choose for the Mac OS extended (Journaled) format, now apply.
Navigate to the partition tab, then select for the 1 partition which is in the partition layout.
Now, change the specific name to the ElCapInstaller, now click the option tab.
Choose for the GUID Partition Table, then click OK.
Now, click on the Apply button to format the USB drive, now press end the process of the particular disk Utility at the completion of the process.
Using the terminal command lines.
Launch the terminal (check the terminal in applications, then utilities). Now, copy and then paste the code below. You should enter your USB name in the section of ElCapInstaller.
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia –volume /Volumes/ElCapInstaller –applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app –nointeraction
Type for the administrative password. So that when it is completed, you can see the word Done. So now you can install El Capitan with ease.
Инструкция Создаем загрузочную флешку с El Capitan
В закладки
Можно просто обновиться до El Capitan, запустив установщик. Или установить его начисто, предварительно сделав резервную копию. Мне ближе второй способ, для этого и понадобится загрузочная флешка.
Нам нужен любой внешний накопитель объемом не менее 8GB, компьютер на базе OS X и установочный пакет OS X El Capitan (можно скачать в App Store).
Первый шаг
Форматируем накопитель в формате Mac OS Extended (журнальный) со схемой разделов GUID:
Примечание: в El Capitan формат называется OS X Extended (журналируемый).1. Открываем дисковую утилиту, выбираем накопитель (флешку).
2. Выбираем вкладку «Раздел диска», в списке разделов выбираем «Раздел 1».
3. Открываем «Параметры», выбираем схему разделов GUID.
4. В графе «Формат» выбираем Mac OS Extended (журнальный).
5. «Имя» – любое, подойдет ElCapitan. Нажимаем «Применить».
Примечание: в El Capitan достаточно выбрать диск, нажать «Стереть», во всплывающем окне выбрать имя, формат и схему разделов.
Второй шаг
1. Запускаем терминал, вводим команду sudo, после нее ставим пробел.
2. Переходим в папку «Программы», нажимаем правой кнопкой на OS X El Capitan и выбираем «Показать содержимое пакета». Нужно найти файл createinstallmedia (можно через стандартный поиск Finder) и перетянуть его в терминал.
3. Вводим команду —volume , ставим пробел. Перетягиваем в окно терминала значок нашего накопителя (обычно он на рабочем столе).
4. Вводим команду —applicationpath , ставим пробел, перетягиваем в терминал весь пакет с OS X El Capitan, который находится в «Программах».
5. Нажимаем enter. Потребовался пароль – вводим, снова нажимаем enter. Потребовалось подтверждение действия – вводим букву Y, enter.
Это – более развернутый и гарантированный способ. Если хочется побыстрее, можно открыть Терминал и сразу ввести следующую команду:
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia —volume /Volumes/ElCapitan —applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app
Если получилось – отлично, нет – возвращаемся к пошаговой инструкции. Не хочется возиться с терминалом – можно воспользоваться сторонней утилитой DiskMaker X.
Готово. Устанавливаем
Если сделаны все необходимые резервные копии, можно приступать к чистой установке. Перезагружаем компьютер, удерживая alt (Option) при запуске. Выбираем нашу флешку, в запустившемся окне переходим в Дисковую утилиту, стираем накопитель нашего Mac (ни в коем случае не перепутать с флешкой) и приступаем к установке.
В закладкиЧистая установка OS X El Capitan на Mac при помощи USB-флешки или через Интернет
Большинство пользователей Mac обновляются на новое поколение операционной системы простым нажатием кнопки «Обновить» в Mac App Store, хотя, считается, что чистая установка OS X является наиболее надёжным способом. В этом материале мы расскажем как это сделать.
Как сделать чистую установку OS X El Capitan на Mac с предварительным форматированием диска?
1. Перезагрузите Mac и во время включения компьютера зажмите клавиши ⌘ Cmd и R.
2. В загрузившемся приложении Утилиты OS X выберите пункт меню «Дисковая утилита» и нажмите кнопку «Продолжить».

3. В левом боковом меню выберите системный диск (по умолчанию он называется «Macintosh HD») и в основном окне перейдите во вкладку «Стереть» и отформатируйте его, указав формат «Mac OS Extended (журнальный)».
Внимание! Все данные будут удалены с Mac.

4. После окончания процесса форматирования закройте «Дисковую утилиту».
5. Выберите пункт Установить OS X в окне «OS X Утилиты», в случае если необходима загрузка копии OS X El Capitan из интернета и нажмите кнопку «Продолжить».

6. Если же Вы планируете использовать загрузочную USB-флешку (наша инструкция по созданию), то закройте окно «OS X Утилиты».

7. В появившемся окне нажмите пункт Загрузочный диск…

8. В появившемся окне выберите заранее подключенный к компьютеру загрузочный USB-флеш накопитель с OS X El Capitan и нажмите Перезагрузить.

Компьютер перезагрузится и предложит установку системы с USB-флешки.
Стоит отметить, что запустить Mac с загрузкой с USB можно и путем нажатия кнопки ⌥Option (Alt) на клавиатуре в момент включения компьютера. При этом появится список доступных дисков из которых необходимо выбрать загрузочную USB-флешку.
-
CAUTION: With macOS 11.3 and newer, XhciPortLimit is broken resulting in boot loops
From a macOS machine that meets the requirements of the OS version you want to install, go directly to the App Store:
For machines that need a specific OS release or can’t download from the App Store:
# Using App Store
From a macOS machine that meets the requirements of the OS version you want to install, go directly to the App Store and download the desired OS release and continue to Setting up the installer.
# Command Line Software Update Utility
Open a terminal window then copy and paste the below command:

This gives you a list of available releases you can choose from. Once downloaded it will be saved in your Applications folder. You can continue to Setting up the installer.
# Munki’s InstallInstallMacOS utility
Starting from macOS Monterey 12.3, Apple removed support for python2.7 , so without it installinstallmacos.py will throw the following error:
To overcome the issue, we recommend to install Command Line Tools for Xcode by running xcode-select —install in a Terminal and then run pip3 install xattr
After that you can run the same command below but with python3 instead of just python :
In order to run it, just copy and paste the below command in a terminal window:

As you can see, we get a nice list of macOS installers. If you need a particular versions of macOS, you can select it by typing the number next to it. For this example we’ll choose 10:

This is going to take a while as we’re downloading the entire 8GB+ macOS installer, so it’s highly recommended to read the rest of the guide while you wait.
Once finished, you’ll find in your
/macOS-Installer/ folder a DMG containing the macOS Installer, called Install_macOS_11.1-20C69.dmg for example. Mount it and you’ll find the installer application.


From here, jump to Setting up the installer to finish your work. If you want to check the integrity of your download, you can check this repository of checksums
(opens new window) , although do note that these are crowdsourced checksums and may not be a reliable way to check for authenticity.
# Downloading macOS: Legacy OS
This method allows you to download much older versions of OS X, currently supporting all Intel versions of OS X(10.4 to current)
# Setting up the installer
Now we’ll be formatting the USB to prep for both the macOS installer and OpenCore. We’ll want to use macOS Extended (HFS+) with a GUID partition map. This will create two partitions: the main MyVolume and a second called EFI which is used as a boot partition where your firmware will check for boot files.

Next run the createinstallmedia command provided by Apple
(opens new window) . Note that the command is made for USB’s formatted with the name MyVolume :
If the createinstallmedia fails with zsh: killed or Killed: 9 then it’s most likely an issue with the installer’s code signature. To fix this, you can run the following command:
You will need the command line tools for Xcode installed:
This will take some time so you may want to grab a coffee or continue reading the guide (to be fair you really shouldn’t be following this guide step by step without reading the whole thing first).
You can also replace the createinstallmedia path with that of where your installer’s located (same idea with the drive name).
Legacy createinstallmedia Commands
# Legacy Setup
For systems not supporting UEFI boot, see below:
Setting up Legacy Boot
To start, you need the following: