[dm-crypt] Is erasing hard disk drive mandatory?

Thomas Bastiani thom at codehawks.eu
Fri May 30 19:57:17 CEST 2014

On 05/30/14 18:47, Heinz Diehl wrote:
> On 30.05.2014, Thomas Bastiani wrote: 
>> It may be that files that you create and then delete will trigger 
>> a TRIM operation if dm-crypt (and
>> eventually LVM) are configured to pass TRIM through. But the rest of
>> your "securely erased" drive is still not TRIM-ed.
> As far as I know, mkfs discards blocks while creating the filesystem.
> So your device should be "overwritten" at that stage of the process?

Oh cool. I had no idea. So then it would make the whole dd operation
useless if you pass --allow-discards to cryptsetup.


More information about the dm-crypt mailing list