linux, osx

how to make a bootable Mac OS X installer USB using linux

  1. Make sure sdb is your USB drive:
    dmesg|grep sd
  2. Unmount it if neccessary:

    umount /dev/sdb*
  3. Remove dos and GPT partition tables:

    sgdisk -Z /dev/sdb
  4. Install dmg2img:

    apt-get install -y dmg2img
  5. Write the dmg to usb:

    dmg2img elcapitan.dmg /dev/sdb ; sync