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

Heinz Diehl htd at fancy-poultry.org
Sat May 31 10:32:28 CEST 2014


On 30.05.2014, Thomas Bastiani wrote: 

> > 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.

I think so. At least mkfs.xfs, mkfs.ext4 and mkfs.btrfs are discarding blocks
while creating the fs. Don't know about other fs.



More information about the dm-crypt mailing list