Skip to content

Instantly share code, notes, and snippets.

@guillaumevincent
Created July 5, 2015 18:44
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 guillaumevincent/1a2380797078d5f8eb7e to your computer and use it in GitHub Desktop.
Save guillaumevincent/1a2380797078d5f8eb7e to your computer and use it in GitHub Desktop.
Copy img to usb on Mac OS X
~ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage 120.5 GB disk0s2
3: Apple_Boot Recovery HD 650.1 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD *120.1 GB disk1
Logical Volume on disk0s2
06991E42-B94A-4A5A-BBF2-CDD355447A51
Unlocked Encrypted
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *7.8 GB disk2
1: FreeBSD 293.6 MB disk2s4
~ diskutil unmountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
~ sudo dd if=/Users/gvincent/Downloads/FreeBSD-10.1-RELEASE-amd64-memstick.img of=/dev/rdisk2 bs=64k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment