Sitemap

macOS X .iso to Bootable USB

1 min readJul 3, 2024

--

This is a quick cheat sheat to make a bootable USB drive from an .iso file using the terminal in macOS X.

Press enter or click to view image in full size

Elevate your privelegs to root: (be careful with root — you have been warned)

sudo -s

Convert the .iso to .dmg:

hdiutil convert -format UDRW -o ubuntu-server-24.04.img ~/Downloads/ubuntu-24.04-live-server-amd64.iso

Without your USB drive plugged in, see what drives you have.

diskutil list

Make note of the /dev/disk* listing.

Plug in your USB drive.

diskutil list

Note what /dev/disk* was added. You’ll use this in the next dd command.

Write the .dmg file to the USB device. (note: we add an “r” to the device name: /dev/disk6 becomes /dev/rdisk6)

dd if=./ubuntu-server-24.04.img.dmg of=/dev/rdisk6 bs=1m status=progress

When that finishes, you should have a bootable USB drive. Eject and enjoy!

If that fails with `dd: /dev/rdisk6: Resource busy` then open “Applications” -> ”Utilities” -> “Disk Utility” and click the eject button for that disk — it won’t let you write to a mounted disk for very good reason!

--

--

Anders Brownworth
Anders Brownworth

Written by Anders Brownworth

I write about money and technology. Founder of Radius and Senior Research Advisor at the MIT DCI. Previously, Federal Reserve and helped create USDC at Circle.