I frequently hack around with live images of other OSs and install them on my Acer Aspire One netbook (I still haven't located a distro that I like). Instead of burning CD images, I have found that bootable USB drives are faster and more reliable. Here's how to create a bootable USB drive using OS X and a couple of terminal commands (WARNING: Performing these steps will completely erase the contents of your USB drive). Remember, you need a USB drive large enough to hold the image contents. Let's burn an image using the following steps found after the click:
Download an image to your Desktop
:: Locate an a disk image you want boot from USB
:: If you're experimenting, Google these distros: Moblin, Fedora 10, Ubuntu, CentOS, Mandriva - remember, you are looking for live bootable images usually in the .img format
Partition the USB drive
Note: Not all USB drives are created equally. Some will function as bootable drives and some will not. You may have to experiment with different brands before you find one that works. I have found that often cheaper, no-brand drives work the best. My trusty Kodak 2Gb USB Drive works for most applications, but I make no guarantees for your application.
:: Fire up the Disk Utility application
:: Select the options in order and as shown in the image below (click for larger view)
:: Click the Apply button (READ WARNING AGAIN!!!) - the disk will be partitioned as free space and with no file format
Determine the USB drive device name
:: Insert the USB drive into one of the USB slots
:: Fire up the Terminal (I prefer the free iTerm)
:: In ther Terminal type:
:: A list of all devices will be displayed as shown in the image belowdiskutil list
:: Locate the USB drive inserted and jot this info to paper or brain - in this example, highlighted below, the USB drive inserted is /dev/disk2 and was identified by the USB drive name
Unmount the USB drive
:: In the Terminal, type the following command
:: Enter the system password and press Returnsudo umount /dev/disk2
:: DO NOT PHYSICALLY REMOVE THE DRIVE!
Burn the image to the USB drive
:: In the Terminal, use the dd command using the following format:
:: In this example the command was formatted as follows:sudo dd if=location/name.img of=/dev/disk2
:: OS X will begin burning the image to the USB drive (as indicated by the flashing USB drive light) - this operation can take several minutes depending on the .img size and the write speed of the USB drive - once complete, the light will stop flashing the the terminal prompt will reappearsudo dd if=/Users/stevencombs/Desktop/karmic-netbook-remix-i386.img of=/dev/disk2
:: Remove the USB drive
The USB drive is now ready for booting on a laptop or desktop using the USB boot option. This same process can be used for most linux distributions. What I have not determined is how to easily do this with an .iso file on a Mac. So if you have a tip for me regarding this process, drop me a comment and add to these notes.
Technorati Tags: dd, linux, apple, osx, terminal, img, image, usb, drive, boot, docstechnotes


12 Folk(s) added to this Tech Note.:
you don't need to choose GUID from the options menu first?
This is the best explanation of the process I've seen, thanks
Thanks Anonymous. That's what I try and do...make sense out of all of this so anyone can figure it out.
----------
:: Steven "Doc" Combs, Ph.D.
:: http://www.docstechnotes.com
:: http://feeds2.feedburner.com/DocsTechNotes
:: steven@docstechnotes.com
What it it's in .iso format instead of .img ?
I agree with the above poster: this is the best article on this topic that I have found.
Thanks, Steve!
@Ivan, works well with .iso as good as .img :)
You should eject the disk before removing it:
diskutil eject /dev/disk2
If your having trouble with the path of your iso or img file - using finder you can drag and drop the file into terminal. This can be a time saver...
Nice post!!! Thanks, btw this one looks even better: http://www.youtube.com/watch?v=yet-7pmdwUQ
@Riki
We got your link the first time but thanks anyway.
Thanks Anonymous for keeping an eye on the comments. I’ve deleted the first reference to the link to keep things cleaned up. - Doc
Post a Comment