Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiangenco/8534230 to your computer and use it in GitHub Desktop.
Save christiangenco/8534230 to your computer and use it in GitHub Desktop.
# download this: http://www.ubuntu.com/download/desktop
# convert it to an img
hdiutil convert -format UDRW -o ~/Downloads/ubuntu.img ~/Downloads/ubuntu-12.04.3-desktop-amd64.iso
# remove .dmg extension
mv ~/Downloads/ubuntu.img.dmg ~/Downloads/ubuntu.img
# figure out which drive your usb stick is
diskutil list
# plug drive in
diskutil list
# note the number of the drive that wasn't there before
# in this case: /dev/disk1
# unmount the usb stick
diskutil unmountDisk /dev/disk1
# copy over ubuntu
sudo dd if=/Users/cgenco/Downloads/ubuntu.img of=/dev/rdisk1 bs=1m
# eject drive
diskutil eject /dev/disk1
# reboot, holding down "option"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment