[Bug 945001] Re: Erase data very slow compared to standard dd wipe
hannes s
945001 at bugs.launchpad.net
Sat May 12 15:21:00 UTC 2012
I don't think the request makes much sense.
Overwriting the hard disk with random numbers (instead of zeros as proposed) is what takes time.
However, this is an essential part of hard drive encryption and should not be substituted by overwriting with zeros.
In short, well-encrypted data looks like random data and is therefore hard to make out in the sea of random numbers initially written. You are providing hints for decryption if you omit this step.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-crypto in Ubuntu.
https://bugs.launchpad.net/bugs/945001
Title:
Erase data very slow compared to standard dd wipe
Status in “partman-crypto” package in Ubuntu:
New
Bug description:
'Erase data' option is very slow on a newly created dm-crypt device.
On my 4k sector disk, it took approx. 4 hours to complete 10% of a
~700Gb device wipe. I cancelled the process, then opened a shell and
used a simple 'dd if=/dev/zero of=/dev/mapper/sda5_crypt bs=1M' and
wiped the device in around 2-3 hours (much more expected)!
It looks like blockdev-wipe is responsible for the device wipe. Not
sure if it's the block size the installer uses being too small - 65536
or the fact the device is opened with the 'O_SYNC' flag.
'Erase data' is disabled by default but for those of us who do wish to
use it, it'd be nice if you didn't have to exit the installer to a
temporary shell to issue a 'dd' wipe.
Ubuntu Release: Ubuntu 11.10 amd64 Alternate CD
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-crypto/+bug/945001/+subscriptions
More information about the foundations-bugs
mailing list