Skip to content

Instantly share code, notes, and snippets.

@andrusha
Last active October 9, 2016 22:34

Revisions

  1. andrusha revised this gist Apr 16, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions iso_to_usb.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    hdiutil convert -format UDRW -o destination_file.img source_file.iso

    # Or re-partition it with Disk Utility
    # Or re-partition it with Disk Utility with 1 Free Space Partition
    diskutil partitionDisk /dev/disk2 1 "Free Space" "unused" "100%"

    # Or copy the image through Disk Utility
    # Or copy the image through Disk Utility in Restore menu
    dd if=destination_file.img.dmg of=/dev/disk2 bs=1m

    # Or eject manually
  2. andrusha created this gist Apr 16, 2014.
    10 changes: 10 additions & 0 deletions iso_to_usb.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    hdiutil convert -format UDRW -o destination_file.img source_file.iso

    # Or re-partition it with Disk Utility
    diskutil partitionDisk /dev/disk2 1 "Free Space" "unused" "100%"

    # Or copy the image through Disk Utility
    dd if=destination_file.img.dmg of=/dev/disk2 bs=1m

    # Or eject manually
    diskutil eject /dev/disk2