Mac, Tools, Tutorials

How to put an ISO image on a USB drive on OSX

DiskUtility doesn’t let you restore a volume using an ISO image, only DMGs are accepted, otherwise it prompts you an error.


Here’s a workaround using osx hdiutil and unix dd command :

  1. open your terminal and cd to the directory where your .iso file is
  2. convert your iso to a dmg by typing “hdiutil convert -format UDRW -o myoutput.img mysource.iso”, depending on how large is your file it may take different amounts of time and print out the path to the created dmg (in this case “/path/to/myoutput.img.dmg”)
  3. once done you’ve to list your mounted disks with “diskutil list” and unmount the usb volume (not the device!!!) with “diskutil unmountDisk /dev/disk1”
    NOTE: change disk1 with whatever disk number your destination drive is
  4. now restore the dmg image to your usb drive with the dd command by typing “sudo dd if=myoutput.img.dmg of=/dev/rdisk1 bs=8m”
    NOTE: change rdisk1 with whatever disk number your destination drive is, if it was disk2 use rdisk2 and so on…
    NOTE2: 8m means “8Megabites per second”, feel free to edit this param according to your needs
  5. when the command ends it prints out a stats report including total bytes transferred and time elapsed.

Hope this helps


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s