macOS downloadswhere 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 (
ddport for windows and 7-zip). Then you'll be greeted with a list of drives:
macOS downloadsand explore its folders, until you get to a file with
.pkgin the end, named either
RecoveryHDUpdate(depending on your macOS version).
Shift+ Right click on the file, then select
Copy as Pathas shown here
publicrelease(if you used another channel, go to that channel)
<your macOS version folder>) and the script will look for the pkg.
gnome-disks. I will focus on
gdiskas 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]
lsblkand determine your USB device block
sudo gdisk /dev/<your USB block>
pto print your block's partitions (and verify it's the one needed)
oto clear the partition table and make a new GPT one
+200Mto create a 200MB partition that will be named later on CLOVER
0700for Microsoft basic data partition type
+3Gif you want to partition further the rest of the USB)
af00for Apple HFS/HFS+ partition type
lsblkagain to determine the 200MB drive and the other partition
mkfs.vfat -F 32 -n "CLOVER" /dev/<your 200MB partition block>to format the 200MB partition to FAT32, named CLOVER
macOS downloadsand keep going until you get to a
p7zip-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 *.hfsthis will extract the recovery from the pkg through extracting the recovery update package then extracting the recovery dmg then the hfs image from it.
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
ifand the block size to match your needs
macOS downloads/.../...until you find RecoveryHDUpdate.pkg or RecoveryHDMetaDmg.pkg (enable file name extensions in Finder under Finder > Preferences > Advanced).
Disk Utilityapplication (Launchpad > Other >)