Skip to content

dd

  • Simple
Bash
dd if=/dev/sda1 of=partition_backup.img
  • Use to backup disk
Bash
sudo dd if=/dev/sda bs=1M | gzip -c -9 > sda.dd.gz

Create bootable usb

Bash
dd if=/path/linux_distro.iso of=/dev/sdX bs=4M status=progress

Test read performance

Bash
sudo dd if=/dev/sda of=/dev/null bs=1M status=progress

dd to remote machine

Bash
dd if=/dev/sda bs=5M conv=fsync status=progress | gzip -c -9 | ssh user@DestinationIP 'gzip -d | dd of=/dev/sda bs=5M'