Bootable USB Installers for OS X Mavericks, Yosemite, El Capitan, and Sierra
Expand the Command Line Tools row with appropriate MacOS Version (we can always view the macOS version from Top Bar Click on Apple icon About This Mac view Version) Download the.dmg file for that Command Line Tools (Screenshot attached) Once the.dmg file is downloaded, we can double click it and install it. Now, press Shift and make a right click together on the folder where you have extracted the files to open the command prompt window. Click dmg2img.exe file and type the following command line on the command prompt window and press Enter.
First, review this introductory article: Create a bootable installer for macOS. Second, see this How To outline for creating a bootable El Capitan installer. Simply replace the Terminal command with the one from the preceding article by copying it into the Terminal window. You will need an 8GB or larger USB flash drive that has been partitioned and formatted for use with OS X.
Drive Partition and Format
Open Disk Utility in the Utilities' folder.
After Disk Utility loads select the drive (out-dented entry with the mfg.'s ID and size) from the side list.
Click on the Erase tab in the Disk Utility toolbar. Name the drive, 'MyVolume'. <---- IMPORTANT!
In the drop down panel set the partition scheme to GUID. Set the Format type to Mac OS Extended (Journaled.)
Click on the Apply button and wait for the Done button to activate. When it does click on it.
Quit Disk Utility.
Create Installer
Open the Terminal in the Utilities' folder. Choose the appropriate command line (in red) depending upon what OS X installer you want. Paste that entire command line from below at the Terminal's prompt:
Command for macOS High Sierra:
sudo /Applications/Install macOS High Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install macOS High Sierra.app
sudo /Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X El Capitan.app
Run Dmg Command Line
Command for Yosemite:
How To Run Dmg File On Mac From Command Line
sudo /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X Yosemite.app
Run Dmg On Command Line Windows 10
Command for Mavericks:
sudo /Applications/Install OS X Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X Mavericks.app
Press RETURN. You will be asked for your admin password. It will not echo to the Terminal window. Then press RETURN again. Wait for the return of the Terminal prompt signifying the process has completed. It takes quite some time to finish. Be patient.