Adafruit made that process a bit simpler.

Head over to Adafruit for the full guide.

Using an External Drive as a Raspberry Pi Root Filesystem| Adafruit