OS X USB Boot disk

From munkjensen.net/wiki

Requirements:

  • One empty USB disk of minimum 8 Gb size.
  • USB must be os x partitioned and named "Untitled"
  • The "Install OS X <codename>.app" located in the Applications folder.
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app