Creating a bootable USB stick on OS X

Here’s a simple way to create a bootable USB stick from a downloaded .ISO file on OS X.

Convert ISO to IMG

Open the terminal and type the following command:

hdiutil convert -format UDRW -o target.img source.iso

Remember to replace the paths in the previous example.

Transfer to USB stick

Warning: This will erase all data on your USB stick.

First, find the correct device node:

diskutil list

After you have successfully identified your USB stick, unmount the disk (replace N with the disk number):

diskutil unmountDisk /dev/diskN

Finally, transfer the image to the USB stick (again, replace N with the disk number):

sudo dd if=target.img of=/dev/rdiskN bs=1m

After a short while, depending on the image size, your USB stick will be ready to use as a bootable media.


Receive a weekly update in your inbox

I'd very much appreciate it if you'd be interested in getting an email delivered directly to your inbox every Sunday morning at 9AM with a summary of my tech related blog posts from the last week. I will not in any way use your email address for anything else. That's a promise.

Leave a Comment