OSX: Copy pfSense .img to USB

Posted on 2014/06/18


So everywhere that I’ve found on the Internet has the wrong directions for getting the pfSense .img file onto a USB stick using OSX Mavericks.

Start by getting yourself into your Downloads directory:
Macintosh:Downloads username$ cd ~/Downloads
Macintosh:Downloads username$ gunzip pfSense-memstick-2.1.3-RELEASE-amd64.img.gz

Plug in your USB stick, then get a list of all of your attached disks:
Macintosh:Downloads username$ diskutil list
((snipped))
/dev/disk6
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.1 GB disk6
1: DOS_FAT_32 UNTITLED 1 8.1 GB disk6s1

Unmount the USB stick so that you can do bad things to it:
Macintosh:Downloads username$ diskutil unmountDisk /dev/disk6
Unmount of all volumes on disk6 was successful

Then use ye olde “dd” command with the special device name /dev/rdisk# as the of=:
Macintosh:Downloads username$ sudo dd if=/Users/username/Downloads/pfSense-memstick-2.1.3-RELEASE-amd64.img of=/dev/rdisk6
461968+0 records in
461968+0 records out
236527616 bytes transferred in 156.556203 secs (1510816 bytes/sec)

Then you’re ready to pull the drive and get on with your pfSense installation.

Posted in: articles