by kyleabaker | July 22, 2012 7:11 pm
A couple of days ago I decided to reinstall my operating system since it was failing. I quickly realized that the only functional system that I had at the time was my MacBook Pro. After a bit of Googling, I came up with a pretty straightforward guide[1], but they really could have formated it to make it easier to follow.
I’m going to run you through the same steps and you should be able to use this guide to create a bootable USB stick for Windows, Ubuntu, Fedora, etc.
The Guide
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
Note: OS X tends to put the .dmg ending on the output file automatically, creating the file target.img.dmg. I’ve always removed the .dmg extension.
diskutil list
diskutil list
diskutil unmountDisk /dev/diskN
sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
Using /dev/rdisk instead of /dev/disk may be faster
If you see the error dd: Invalid number ’1m’, you are using GNU dd. Use the same command but replace bs=1m with bs=1M
If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the ‘Disk Utility.app’ and unmount (don’t eject) the drive.
diskutil eject /dev/diskN
If you’ve made it this far, then you should be well on your way to installing a new operating system. Good luck!
Related posts:
Source URL: http://kyleabaker.com/2012/07/22/how-to-create-a-bootable-usb-stick-on-os-x/
Copyright ©2013 kyleabaker.com unless otherwise noted.