Skip to content

Instantly share code, notes, and snippets.

@fragtion
Last active February 11, 2021 14:05
Show Gist options
  • Save fragtion/03b94f4cc315a04eb1016b3a0272f9ef to your computer and use it in GitHub Desktop.
Save fragtion/03b94f4cc315a04eb1016b3a0272f9ef to your computer and use it in GitHub Desktop.
#Expand /tmp (if tmpfs)
mount -o remount,size=5G /tmp/
# Clone to multiple disks with progress
dd if=/dev/sda | pv -s $(blockdev --getsize64 /dev/sda) | tee >(dd of=/dev/sdb) | tee >(dd of=/dev/sdc) | dd of=/dev/sdd
# faster... and source can be image or device
pv /dev/sda | tee >(dd bs=64k of=/dev/sdb) >(dd bs=64k of=/dev/sdc) >(dd bs=64k of=/dev/sdd) | dd bs=64k of=/dev/sde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment