Skip to content

Instantly share code, notes, and snippets.

@blissini
Created February 27, 2018 12:18
Show Gist options
  • Save blissini/4352f83bbbea67503bb7c84f89e41956 to your computer and use it in GitHub Desktop.
Save blissini/4352f83bbbea67503bb7c84f89e41956 to your computer and use it in GitHub Desktop.
root@grml ~ # blockdev --getsize64 /dev/sda
999653638144
root@grml ~ # blockdev --getsize64 /dev/sdb
299506860032
root@grml ~ # blockdev --getsize64 /dev/sdc
500107862016
openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt </dev/zero | pv -bartpes <DISK_SIZE> | dd bs=64K of=/dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment