script: #!/bin/bash d="$1"; n="${2:-10000}" s=$(blockdev --getsz "$d") for ((i=0; i