How To Download MacOS Mojave Installer And Convert To ISO File

This article will tell you how to download MacOS moJave installer file to your Mac, and how to convert the installer file to an iso file. Then you can use the iso file to install MacOS on a virtual machine.

1. Download MacOS MoJave.

  1. Open mac app store on a mac machine.
  2. Then search mojave in left search text box.
    mac app store search mojave
  3. Click the download icon ( cloud icon ) in right panel to download macOS Mojave installer.
  4. After download, the macOS Mojave installer dialog will be prompt, just click menu item Install macOS Mojave —> Quit Install macOS to quit the install dialog.
    install macos mojave quit install macos
  5. The installer file will be saved in Applications folder, and the installer name is Install macOS Mojave.
    macos applications install macos mojave show package contents
  6. Right click Install macOS Mojave application in Finder, then click Show Package Contents menu item in the popup menu list to list the Contents folder of Install macOS Mojave application. You will also see SharedSupport folder and BaseSystem.dmg file. This file will be used to create the iso file later.
    install macos mojave contents sharedsupport basesystem dmg
  7. You can also goto above directory in a terminal use cd command to verify the folder is exist.
    $ cd /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport/
    $ pwd
    /Applications/Install macOS Mojave.app/Contents/SharedSupport

2. Create MacOS Mojave Installer ISO File.

After download the MacOS Mojave installer, it is time to create the iso file for it.

  1. Open a terminal and use hdiutil create command to create a blank temporary disk image.
    $ hdiutil create -o /tmp/MoJave.cdr -size 7316m -layout SPUD -fs HFS+J
    created: /tmp/MoJave.cdr.dmg
  2. Mount above blank temporary image to the installer volume use hdiutil attach command.
    $ hdiutil attach /tmp/MoJave.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
    /dev/disk3          	Apple_partition_scheme         	
    /dev/disk3s1        	Apple_partition_map
  3. Restore the installer’s BaseSystem.dmg to above mounted image use asr restore command.
    $ asr restore -source /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
      Validating target...done
      Validating source...done
      Retrieving scan information...done
      Validating sizes...done
      Restoring  ....10....20....30....40....50....60....70....80....90....100
      Restored target device is /dev/disk3s2.
      Remounting target volume...done
  4. Unmount the temporary image use hdiutil detach command.
    $ hdiutil detach /Volumes/macOS\ Base\ System/
    "disk3" ejected.
  5. Now you can use hdiutil convert command to convert above image to the iso file that you want.
    $ hdiutil convert /tmp/MoJave.cdr.dmg -format UDTO -o /tmp/MoJave.iso
    Reading Driver Descriptor Map (DDM : 0)…
    Reading Apple (Apple_partition_map : 1)…
    Reading disk image (Apple_HFS : 2)…
    ....................................................................................................................................................................................
    Elapsed Time: 33.626s
    Speed: 217.6Mbytes/sec
    Savings: 0.0%
    created: /tmp/MoJave.iso.cdr
    
  6. Rename the created MoJave.iso.cdr file to MoJave.iso and move it to the desktop.
    $ mv /tmp/MoJave.iso.cdr ~/Desktop/MoJave.iso
  7. Now you can copy the iso file to a usb disk.
READ :   How To Install Swig On MacOS, Linux And Windows

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.