Created
October 30, 2013 20:32
-
-
Save marcosvidolin/7239713 to your computer and use it in GitHub Desktop.
How to make a SD card image using command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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