Skip to content

Instantly share code, notes, and snippets.

@ngsw
Created February 2, 2013 16:40
Show Gist options
  • Select an option

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

Select an option

Save ngsw/4698170 to your computer and use it in GitHub Desktop.
$ write_target=`df -h |
grep 'NO NAME$' |
awk -F' ' '{print $1}' |
sed -e 's/[a-z][0-9]$//g' -e 's/disk/rdisk/g'`
$ diskutil unmount `df -h |
grep 'NO NAME$' |
awk -F' ' '{print $1}'`
$ sudo time dd bs=1m \
if=2012-12-16-wheezy-raspbian.img \
of=${write_target}
#result#
1850+0 records in
1850+0 records out
1939865600 bytes transferred in 93.960787 secs (20645481 bytes/sec)
93.98 real 0.00 user 1.45 sys
#結構かかる
@ngsw
Copy link
Copy Markdown
Author

ngsw commented Feb 2, 2013

s/rapsberry/raspberry/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment