Skip to content

Instantly share code, notes, and snippets.

@selahssea-zz
Last active August 29, 2015 14:19
Show Gist options
  • Save selahssea-zz/fb6eed0782d3ae9cdf27 to your computer and use it in GitHub Desktop.
Save selahssea-zz/fb6eed0782d3ae9cdf27 to your computer and use it in GitHub Desktop.
Write disk image in OS X
#find disk
$ diskutil list
#unmount it (check the number)
$ diskutil unmountDisk /dev/disk2
#format it (check the number)
$ sudo dd if=/dev/zero of=/dev/rdisk2 bs=1024 count=1
#write image to it (check .img name and disk number)
$ sudo dd if=OpenELEC-RPi2.arm-5.0.8.img of=/dev/rdisk2 bs=4m
#synchronize data on disk with memory
$ sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment