Clone a disk with progress

Copy a whole disk block by block. conv=noerror,sync keeps going past bad sectors and fills them with zeros

dd if=/dev/sda of=/dev/sdb bs=64M conv=noerror,sync status=progress

tool
dd2 commands
tags
dddisktroubleshootingperformance

More dd commands

  • dd if=/dev/zero of=/data/ddtest bs=1M count=1024 oflag=direct,dsync status=progress; rm /data/ddtest

    Worst-case durable write speed: no cache, sync after each block. Note: this is not an IOPS test

all 2 dd commands