Last active
February 11, 2021 14:05
-
-
Save fragtion/03b94f4cc315a04eb1016b3a0272f9ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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