

You can use this file to create a bootable USB stick or install macOS Mojave on virtualization servers like VMWare or VirtualBox.Īlso, clean up the temporary virtual disk image to save spaces if needed.Ĭredits go to author of this post on Reddit.DMG is the disc image that is mostly used on macOS computers.

Okay, after this you have the file ~/Downloads/Mojave.iso. Step 6: Change file extension to ISO mv ~/Downloads/Mojave.cdr ~/Downloads/Mojave.iso Step 5: Save DMG info ISO format hdiutil convert /tmp/Mojave.dmg -format UDTO -o ~/Downloads/MojaveĪfter this command, you will see this file ~/Downloads/Mojave.cdr. Step 4: Unmount the installer appĪfter executing command at step 3, it will automatically mount the app file, so now you need to eject it for step 5 below. Make sure to use correct path and execute command with sudo like above.

The createinstallmedia is the tool packed into the Install macOS Mojave.app file that we’ve downloaded from all above. Step 3: Write the installer into mount point sudo /Downloads/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia -volume /Volumes/install_build The virtual disk image is attached to mount into /Volumes/install_build. Step 2: Mount the disk hdiutil attach /tmp/Mojave.dmg -noverify -mountpoint /Volumes/install_build It will create a virtual disk image at tmp/Mojave. Step 1: Create a virtual disk for installation media (DMG file) hdiutil create -o /tmp/Mojave -size 8000m -layout SPUD -fs HFS+J

This part requires you know how to execute commands from Terminal. Make sure to follow the instructions on that page to get the final macOS Mojave Installer.app file, putting it somewhere, for example: ~/Downloads/Install macOS Mojave.app 2. You don’t need to do that manually, some guys has created a tool for us to work on this automatically.ĭownload this macOS Mojave Installer Patch Tool.
