Build an iso file from a cd/dv/usb key/directory

  1. check the mounted medias : diskutil list
  2. unmount the media : diskutil unmountDisk /dev/disk1
  3. extract the iso file : dd if=/dev/disk1 of=my_file.iso bs=2048

Burn the iso file on a cd/dvd :

hdiutil burn my_file.iso
Usb key / SD card : diskutil list to identify where the key is
Go to the disk utility in Apps -> Utilities and unmount all partitions of this usb key dd if=myiso.iso of=/dev/dikSomething Done...