DEV Community

Discussion on: How to setup Full Disk Encryption on a secondary HDD in Linux

Collapse
 
dsanchezseco profile image
dsanchezseco

For security it's better to write the disk with /dev/urandom as with zeroing it can be recoverable, at least HDDs in which the bit retains partially the orientation.

Collapse
 
lobo_tuerto profile image
Víctor Adrián

You are right, but I wanted to provide a compromise between security and time spent formatting the drive.

You can use /dev/urandom but need to be prepared to spent ~3 days waiting for the drive to be filled with random bits.

Collapse
 
dsanchezseco profile image
dsanchezseco

That's true, but its always worthy leaving a brick when resigning hahahahaha