macOS downloads
where the program we used downloaded macOS recovery image for your macOS version. For this part of the setup. I'll be separating it to the 3 main OSes and how to make it.MakeInstall.bat
, double click it, accept UAC admin user, you'll be greeted by a CMD screen. The software will download software needed (dd
port for windows and 7-zip). Then you'll be greeted with a list of drives:macOS downloads
and explore its folders, until you get to a file with .pkg
in the end, named either RecoveryHDMetaDmg
or RecoveryHDUpdate
(depending on your macOS version).Shift
+ Right click on the file, then select Copy as Path
as shown heremacOS downloads
> publicrelease
(if you used another channel, go to that channel) <your macOS version folder>
) and the script will look for the pkg.gdisk
fdisk
parted
gparted
or gnome-disks
. I will focus on gdisk
as it's nice ¯\(ツ)\/¯ and can change the partition type later on, as we need it so that macOS Recovery HD can boot. [the distro used here is Ubuntu 18.04, other versions or distros may work]lsblk
and determine your USB device blocksudo gdisk /dev/<your USB block>
p
to print your block's partitions (and verify it's the one needed)o
to clear the partition table and make a new GPT oney
n
+200M
to create a 200MB partition that will be named later on CLOVER0700
for Microsoft basic data partition typen
+3G
if you want to partition further the rest of the USB)af00
for Apple HFS/HFS+ partition typew
y
gdisk
by sending q
lsblk
again to determine the 200MB drive and the other partitionmkfs.vfat -F 32 -n "CLOVER" /dev/<your 200MB partition block>
to format the 200MB partition to FAT32, named CLOVERcd
to macOS downloads
and keep going until you get to a pkg
filep7zip-full
(depending on your distro tools)sudo apt install p7zip-full
sudo pacman -S p7zip
7z e -txar *.pkg *.dmg; 7z e *.dmg */Base*; 7z e -tdmg Base*.dmg *.hfs
this will extract the recovery from the pkg through extracting the recovery update package then extracting the recovery dmg then the hfs image from it.4.hfs
or 3.hfs
(depending on the macOS version used) run dd if=*.hfs of=/dev/<your USB's second partition block> bs=8M --progress
(you may change the input file if
and the block size to match your needsmacOS downloads/.../...
until you find RecoveryHDUpdate.pkg or RecoveryHDMetaDmg.pkg (enable file name extensions in Finder under Finder > Preferences > Advanced)..pkg
to .dmg
Basesystem.dmg
Disk Utility
application (Launchpad > Other >)