Created
January 25, 2015 18:55
-
-
Save leosuncin/cb3c8ff33ca5d03ac11a to your computer and use it in GitHub Desktop.
show dd progress
This file contains hidden or 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
dd if=<origen> of=<destino> | |
watch -n 10 kill -USR1 $(pgrep -l '^dd$' | tr -d [:alpha:]) | |
pv -ptre <origen> | dd of=<destino> | |
(pv -n /dev/sda | dd of=/dev/sdb bs=128M conv=notrunc,noerror) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment