Last active
August 29, 2015 14:19
-
-
Save selahssea-zz/fb6eed0782d3ae9cdf27 to your computer and use it in GitHub Desktop.
Write disk image in OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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