Here’s how to use the dd utility to write a disk image to media under Mac OS X. I tested this with 10.5.2 with both a USB to CompactFlash adaptor, and a USB Imation USB SuperDisk.
- Plug the media into your Mac.
- If you get a message saying that the media cannot be read, click Ignore.
- Open Disk Utility (Applications -> Utilities -> Disk Utility).
- On the left-hand column, find that disk that you plan to write to. Select any partitions on that disk that are mounted, and click the Unmount button (not the Eject button). Once unmounted, the partitions should grey out.
- On the left-hand column, find that disk that you plan to write to, click it, then click on the Info button.
- In the window that pops up, note the Disk Identifier. It should be something like disk2 or disk3.
- Open up Terminal (Applications -> Utilities -> Terminal).
- Type in the following command, replacing diskx with the Disk Identifier found earlier, and image.img with the name of the image file that you wish to read from.
sudo dd if=image.img of=/dev/diskx
Step 3) can be skipped by using the following command in Terminal/shell just before the sudo dd:
sudo diskutil unmount /dev/diskx
Comment by rschmutz — December 23, 2008 @ 3:20 pm
…sorry hit “submit” too early 🙂
if you are using the Terminal/shell anyway, you may skip steps 3, 4, 5 and 6… in Terminal/shell enter:
mount # check the output for target volume
sudo diskutil unmount /dev/diskx # use device-path as reported by mount
sudo dd if=image.img of=/dev/diskx bs=64k
dd… bs=64k:Â blocksize 64k speeds up things considerably (on most unixes, that is… experiment with other block-size if you encounter problems)
Comment by rschmutz — December 23, 2008 @ 3:27 pm