Skip to content

Instantly share code, notes, and snippets.

@marcosvidolin
Created October 30, 2013 20:32
Show Gist options
  • Save marcosvidolin/7239713 to your computer and use it in GitHub Desktop.
Save marcosvidolin/7239713 to your computer and use it in GitHub Desktop.
How to make a SD card image using command line
dd if=/dev/sdb of=imagem.img bs=1MB
of = output
if = input
bs = Block Size
example (tested):
# to make an image
sudo dd if=/dev/mmcblk0 of=~/Desktop/image.iso bs=1MB
# to write the image to the sd card
unmount all partitions (mmcblk0p*) and:
sudo dd of=/dev/mmcblk0 if=~/Desktop/image.iso bs=1MB
# ps.: To view all mounted partition type:
df -h
# for further explanation see:
http://elinux.org/RPi_Easy_SD_Card_Setup
https://plus.google.com/u/0/109827810255694125753/posts/Xddvy9T5kqt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment