Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
Please note that the use of the dd
tool can overwrite any partition of your machine. If you specify the wrong device in the instructions below you could delete your primary Linux partition. Please be careful.
df -h
to see what devices are currently mounted.df -h
again. The new device that has appeared is your SD card. The left column gives the device name of your SD card; it will be listed as something like /dev/mmcblk0p1
or /dev/sdd1
. The last part (p1 or 1 respectively) is the partition number but you want to write to the whole SD card, not just one partition. Therefore you need to remove that part from the name (getting, for example, /dev/mmcblk0
or /dev/sdd
) as the device for the whole SD card. Note that the SD card can show up more than once in the output of df; it will do this if you have previously written a Raspberry Pi image to this SD card, because the Raspberry Pi SD images have more than one partition./dev/sdd1
, replacing sdd1 with whatever your SD card's device name is (including the partition number).df
due to having multiple partitions on the SD card, you should unmount all of these partitions.if=
argument with the path to your .img file, and the /dev/sdd
in the output file of= argument with the right device name. This is very important, as you will lose all data on the hard drive if you provide the wrong device name. Make sure the device name is the name of the whole SD card as described above, not just a partition of it; for example sdd
, not sdds1
or sddp1
; or mmcblk0
, not mmcblk0p1
.dd bs=4M if=2015-02-16-raspbian-wheezy.img of=/dev/sdd
sudo
.pkill -USR1 -n -x dd
in another terminal, prefixed with sudo
if you are not logged in as root. The progress will be displayed in the original window and not the window with the pkill
command; it may not display immediately, due to buffering.dd
you can use dcfldd
; it will give a progress report about how much has been written.dd
-ing from the card back to another imageon your hard disk, truncating the new imageto the same size as the original, and then running diff
(or md5sum
) on those two images.if=
argument with the right device name. diff
should report that the files are identical.dd bs=4M if=/dev/sdd of=from-sd-card.img truncate --reference 2015-02-16-raspbian-wheezy.img from-sd-card.img diff -s from-sd-card.img 2015-02-16-raspbian-wheezy.img
sync
; this will ensure the write cache is flushed and that it is safe to unmount your SD card.