Skip to content

Instantly share code, notes, and snippets.

@lamlion
Last active January 10, 2018 13:13
Show Gist options
  • Save lamlion/56839fd79b6706443b8896a792951e2a to your computer and use it in GitHub Desktop.
Save lamlion/56839fd79b6706443b8896a792951e2a to your computer and use it in GitHub Desktop.
Make and extract an image using dd
sudo dd if=/dev/rdisk1 bs=1m | gzip > ~/Desktop/pi.gz
gzip -dc ~/Desktop/pi.gz | sudo dd of=/dev/rdisk1 bs=1m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment