Bug#1064624: Hard to short-stroke an encrypted drive
On Mon, Feb 26, 2024 at 12:34:50AM +0100, Pascal Hambourg wrote:
> Not if you do not write anything to them, or if you TRIM them.
You can stop explaining to me how TRIM works.
commit 0c659b82d11e
Author: Matthew Wilcox <willy@infradead.org>
Date: Thu Apr 2 10:37:25 2009 -0400
ata: Add TRIM infrastructure
> You may either
> - tell the installer not to erase (=write) the encrypted partition (if
> guided partitioning prompts it, not sure)
> or
> - enable "discard" in /etc/crypttab (should be the default)
> - create a logical volume in the free VG space
> - blkdiscard the logical volume
Last time I checked, dm-crypt did not pass DISCARD requests through to
the underlying device because it's a security hazard.
Reply to: