Format USB Drive via Command Line

1. Insert USB drive
2. Run the command

$ df -h

3. Look for the drive you want to format, usually at the bottom like /dev/sdaN, where N is a number.
4. Unmount the drive using the command
$ sudo umount /dev/sdaN

5. Run df -h again to verify that the drive did in fact unmount
6. Run the command
$ sudo mkdosfs -F 32 -I /dev/sda

To burn the FreeBSD iso onto the USB drive, run the following command:

$ sudo dd if=FreeBSD-10.2-RELEASE-i386-memstick.img of=/dev/sdb bs=1M conv=sync
**Note**:  You need to download the memstick.img image for FreeBSD.  Also, do NOT include the partition number when burning the iso.

See this page of the PC-BSD handbook for more details.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License