Show Table of Contents
C.4.2. Optional: Fill the Device with Random Data
Filling <device> (eg:
/dev/sda3) with random data before encrypting it greatly increases the strength of the encryption. The downside is that it can take a very long time.
Warning
The commands below will destroy any existing data on the device.
- The best way, which provides high quality random data but takes a long time (several minutes per gigabyte on most systems):
dd if=/dev/urandom of=<device>
- Fastest way, which provides lower quality random data:
badblocks -c 10240 -s -w -t random -v <device>

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.