Re: Re: instead of wiping the data, filling an encrypted volume with zeros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dick Middleton wrote:
Andreas Grassl wrote:

i encrypted a partition with

cryptsetup -c aes-cbc-essiv:sha256 -y -s 256 luksFormat /dev/sda6

but forgot to wipe the data first :-)

now i thought to write simply a zero-file on the encrypted partition to
fill the whole space.

Why not just fill the file system with data - copy files from somewhere, anywhere, until it's full. Then delete them again. That way just about all of the partition will be rewritten with encrypted data.
Better yet, get it from the kind-of random number generator:
   dd if=/dev/urandom of=/mountpoint/delme.dat

(/dev/random will work too, but it's a lot slower.)

-Luke

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux