@acdha Yeah, this is an empty drive that I’m about to encrypt. Filling it with random data is the first step, which I may be cargo culting, but IIRC the idea is that it prevents leaking the amount of data on the drive or something.
@cnx @acdha Yes, but the way it works is that you create a dm-crypt partition seeded from /dev/urandom
, then you mount it and fill it with 0s. The encryption translates the 0s into random bytes.
Here are the instructions I usually use: https://wiki.archlinux.org/title/Dm-crypt/Drive_preparation