Recently I have found the command that can generate random file in linux environment where non empty (thin provisioned) files are required for testing:
for i in {1..90}; do openssl enc -aes-256-ctr -pbkdf2 -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero 2>/dev/null | gead -c5G > "random_${i}.img"; done

todo: combine that command with parallel command (or parallel that in python).

No Comments