Saturday, January 5, 2013

Bootable USB Stick from OS X

Today I got an awesome new toy, a shiny Samsung 840 Pro SSD drive for my super cheap laptop. I decided to do a fresh install of Ubuntu since that is what I had been running. I essentially use my laptop as a stateless device so there was no data to backup. My thinking was that I would shutdown laptop and swap the drive while I created a new bootable USB drive on my Mac desktop.

 Canonical has a nice set of instructions linked off the download page that tell you how to create said USB boot stick from the image. These can be found:

 http://www.ubuntu.com/download/help/create-a-usb-stick-on-mac-osx

These instructions are absolutely 100% correct, but there is a subtlety that caused me to waste an hour. I  kept using the partition and not the disk:

 /dev/disk4s1 instead of /dev/disk4

I had looked at: df /Volumes/<Mounted partition>

and of course that showed the slice. So I write this:

1. So I won't forget =D
2. Someone else might stumble upon it and find it helpful.

Also, the instructions say "using rdisk might be faster" I have found it to be significantly faster.