-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I use this bash code (script) to image partitions - I arrived there with help here: function hacer() { echo echo "Doing partition $1 ($2) on $3" echo "copying, compressing, and calculating md5..." mkfifo mdpipe dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz > $3.gz & # Try using "--fast" next time md5sum -b mdpipe | tee -a md5checksum_expanded wait rm mdpipe echo "$3" >> md5checksum_expanded echo "Verifying..." pigz --test $3.gz echo echo "·········" } Used this way: time hacer sda1 "5S" "sda1_WINBOOT" time hacer sda2 "250M" "sda2_WINDOWS" (the current directory is on the destination disk, external rotating rust via USB2) This works fine. Now, I noticed something. On gkrellmn I observe, as the script runs, that the reads on the source disk (ssd, in this case) and the writes to the destination disk alternate, are not simultaneous. And it took 5 hours to image perhaps 300gigs; of course, the destination is on USB2, and the CPU is old, but that alternation doesn't help. Could that be improved somehow? Short of writing my own binary code to implement it all... Never coded with parallelization, so that would not be trivial. - -- Cheers Carlos E. R. (from 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYccnxxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV+DEAn0qKBQv/D0k/pGQFYl6a w5+FjD23AJ0fsJs7A+zehwK0a5S/nHEJuP3bMw== =+rL4 -----END PGP SIGNATURE-----