Created
February 3, 2013 16:44
-
-
Save ngsw/4702485 to your computer and use it in GitHub Desktop.
Raspberry Pi イメージを Mac で作成
This file contains hidden or 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
| # すでに Raspberry Pi がインストールされているSDカードなので | |
| # /Volumes/Untitled と変名されている、という前提があります。 | |
| write_target=`df -h | | |
| grep 'Untitled$' | | |
| awk -F' ' '{print $1}' | | |
| sed -e 's/[a-z][0-9]$//g' -e 's/disk/rdisk/g'` | |
| diskutil unmount `df -h | | |
| grep 'Untitled$' | | |
| awk -F' ' '{print $1}'` | |
| sudo time dd bs=1m \ | |
| if=2012-12-16-wheezy-raspbian.img \ | |
| of=${write_target} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment