http://support.apple.com/kb/HT5856?viewlocale=en_US&locale=en_US
-
Download the macOS installer from the Mac App Store and make sure it's in your main Applications folder.
-
Connect a properly formatted 8GB (or larger) drive. Rename the drive to
Untitled
. (The command in the next step assumes the drive is namedUntitled
.) -
Run command in terminal:
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled