Skip to content

Instantly share code, notes, and snippets.

@oklahomer
Last active August 29, 2015 14:04
Show Gist options
  • Save oklahomer/7583ca984856f0e0d179 to your computer and use it in GitHub Desktop.
Save oklahomer/7583ca984856f0e0d179 to your computer and use it in GitHub Desktop.
Oklahomer@Oklahomers ~ » df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 931Gi 556Gi 375Gi 60% 145733311 98247431 60% /
devfs 186Ki 186Ki 0Bi 100% 644 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
Oklahomer@Oklahomers ~ » cd ~/Downloads
Oklahomer@Oklahomers ~/Downloads » unzip 2014-06-20-wheezy-raspbian.zip
Archive: 2014-06-20-wheezy-raspbian.zip
inflating: 2014-06-20-wheezy-raspbian.img
Oklahomer@Oklahomers ~ » sudo dd bs=1m if=/Users/Oklahomer/Downloads/2014-06-20-wheezy-raspbian.img of=/dev/rdisk1
Password:
2825+0 records in
2825+0 records out
2962227200 bytes transferred in 273.245411 secs (10840904 bytes/sec)
Oklahomer@Oklahomers ~ » df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 931Gi 558Gi 372Gi 61% 146458697 97522045 60% /
devfs 187Ki 187Ki 0Bi 100% 646 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
/dev/disk1s1 56Mi 9.5Mi 46Mi 17% 512 0 100% /Volumes/boot
@oklahomer
Copy link
Author

Since I unmounted the volume on previous step, the first df command doesn't show the inserted SD card. dd command doesn't give visual feedback to indicate progress, so we just have to wait for several minutes. The second df command, right after flushing disk image, shows /Volumes/boot.

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