Cloning an ISO to a USB flash drive (or anywhere) using DD in Snow Leopard 10.6 with a progress-ish meter

Stamped: 2009-08-31 00:00:00 -0400 | Show comments

Oh, and Leopard too.

What a title. I recently needed to use G-Parted, but didn't have any blank disc's laying around, and the method they describe on the gparted wiki to do this with a USB disk doesn't work on OSX. So, I used DD.

Open up terminal (from Applications/Utilities or use Spotlight) and type what follows substituting as necessary. My USB device was located at /dev/disk3. You can find the device name in Disk Utility by right-clicking on the device, and choosing 'information'.


sudo dd if=/path/to/iso.iso.dmg.img of=/dev/disk3 bs=1024

And voila, you have a read-only replica of the iso on your usb device. Please note the emphasis on read-only in the case of an ISO.

To see a progress bar (of sorts), open up a new terminal window and type the following

ps auxww | grep " dd " | grep -v grep | awk '{print $2}' | while read pid; do kill -SIGINFO $pid; done

I originally got the progress bit from here, but changed it to work with OSX.

tags: dd, snow leopard, leopard, terminal, unix
recent entries
Rails — A faster way for next and previous links on a post, article, or any model
The awkward things Siri says
Node.js — Getting oAuth Up and Running Using Express.js and Mongoose
Node.js — Getting oAuth Up and Running Using Express.js, Railway.js and Mongoose
Migrating from Rails 3.1 RC4 to RC5 using Heroku's Cedar Stack (also compass, unicorn, and sendgrid)
Random Freeze Fix for GTX 460 in 10.6 (osx86)
Wasted on Steam - an analytic tool for the Steam platform
Rails 3.1 — SQL logging to STDOUT during testing (with rspec, test::unit, or cucumber)
Rails 3.1 — Using ERB/HAML/etc within a Coffeescript JS file
Rails 3.1 — 'load_missing_contant': Expected ... to define ... (LoadError)
View the entire archive of articles