Erase data very slow compared to standard dd wipe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-crypto (Debian) |
Fix Released
|
Unknown
|
|||
partman-crypto (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
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/
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
tags: | added: oneiric |
Changed in partman-crypto (Ubuntu): | |
importance: | Undecided → Low |
Changed in partman-crypto (Debian): | |
status: | Unknown → New |
Changed in partman-crypto (Debian): | |
status: | New → Confirmed |
Changed in partman-crypto (Debian): | |
status: | Confirmed → Fix Released |
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.