Skip to content

Instantly share code, notes, and snippets.

@ngsw
Created February 3, 2013 16:44
Show Gist options
  • Select an option

  • Save ngsw/4702485 to your computer and use it in GitHub Desktop.

Select an option

Save ngsw/4702485 to your computer and use it in GitHub Desktop.
Raspberry Pi イメージを Mac で作成
# すでに 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