1 |
dd bs=512 count=[fdisk命令中最大的end数+1] if=/dev/sda | gzip -6 > /ghost.img.gz |
还原时,可以执行下列命令:
1 |
# gzip -dc /ghost.img.gz.gz | dd of=/dev/sda |
烧录树莓派时可用:
1 2 3 4 5 |
sudo umount /dev/sdb1 sudo umount /dev/sdb2 sudo dd bs=4M if=xxx.img of=/dev/sdb |
或:
1 |
sudo pv -cN source < xxx.img |sudo dd of=/dev/rdisk3 |
查看进度:
linux:
1 |
sudo pkill -USR1 -n -x dd |
maxos:
1 |
sudo killall -29 dd |
1 |
iostat -w 2 disk3 |
退出U盘:
1 |
diskutil eject /dev/disk3 |
http://blog.csdn.net/shendl/article/details/7384755
http://blog.longwin.com.tw/2013/10/dd-sd-card-backup-os-2013/
http://magiclen.org/linux-dd-rar/
(转)
insert the original sd card, check the name of the device (usually mmcblkX or sdcX)
sudo fdisk -l
In my case the sd card is /dev/mmsbkl0. Now you have to unmount the device
sudo umount /dev/mmcblk0
Create image of the device
sudo dd if=/dev/mmcblk0 of=~/sd-card-copy.img
It will take some time ….
Once finished, insert the empty sd card. If the device is different (USB or other type of sd card reader) verify its name and be sure to unmount it:
sudo fdisk -l
sudo umount /dev/mmcblk0
Write the image to the device
sudo dd if=~/sd-card-copy.img of=/dev/mmcblk0
The write operation is much slower (~X10)
转自:http://askubuntu.com/questions/227924/sd-card-cloning-using-the-dd-command