Created
September 25, 2021 22:16
-
-
Save jarrpa/9e65d9afedb588a0abdc156a70588498 to your computer and use it in GitHub Desktop.
a good dd cmd
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
#!/bin/bash | |
# e.g. ~500GB = 500107862016 | |
BYTES="${1}" | |
dd if=/dev/sdb | pv -pterbas "${BYTES}" | dd of=/dev/dsf bs=4096 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment