# if (input file) of (output file)
dd if=/dev/sda of=/dev/sdc
# 或克隆到 文件
dd if=/dev/sda of=/opt/x/openwrt.img
while (ps | grep " dd " | grep -v grep |awk '{print $1}' | while read pid; do kill -USR1 $pid; done) ; do sleep 5; done
注意:需要额外打开一个控制台执行。
qemu-img convert -O vmdk openwrt.img openwrt.vmdk