On Thu, 20 Feb 2025 14:48:21 -0500 gene heskett <ghesk...@shentel.net> wrote:
> Generally speaking, all file systems know exactly whats in use, > they have to, otherwise they would randomly overwrite another file, > The encryption is only for the data in that allocated space. The file > system knows nothing about that data Well, one could look to see what fstrim actually does. root@hawk:/crc/backs/myob/scripts# journalctl -b | grep -i fstrim Feb 09 14:36:02 hawk systemd[1]: Started fstrim.timer - Discard unused blocks once a week. Feb 10 01:02:41 hawk systemd[1]: Starting fstrim.service - Discard unused blocks on filesystems from /etc/fstab... Feb 10 01:02:50 hawk fstrim[16063]: /home: 13.9 GiB (14947983360 bytes) trimmed on /dev/mapper/hawk2021vg-hawk2021home Feb 10 01:02:50 hawk fstrim[16063]: /boot/efi: 483.2 MiB (506621952 bytes) trimmed on /dev/sdb1 Feb 10 01:02:50 hawk fstrim[16063]: /boot: 323.8 MiB (339523584 bytes) trimmed on /dev/sdb2 Feb 10 01:02:50 hawk fstrim[16063]: /: 31.6 GiB (33911214080 bytes) trimmed on /dev/mapper/hawk2021vg-hawk2021root Feb 10 01:02:50 hawk systemd[1]: fstrim.service: Deactivated successfully. Feb 10 01:02:50 hawk systemd[1]: Finished fstrim.service - Discard unused blocks on filesystems from /etc/fstab. Feb 17 01:13:30 hawk systemd[1]: Starting fstrim.service - Discard unused blocks on filesystems from /etc/fstab... Feb 17 01:13:43 hawk fstrim[171705]: /home: 12 GiB (12930596864 bytes) trimmed on /dev/mapper/hawk2021vg-hawk2021home Feb 17 01:13:43 hawk fstrim[171705]: /boot/efi: 483.2 MiB (506621952 bytes) trimmed on /dev/sdb1 Feb 17 01:13:43 hawk fstrim[171705]: /boot: 0 B (0 bytes) trimmed on /dev/sdb2 Feb 17 01:13:43 hawk fstrim[171705]: /: 31.9 GiB (34215677952 bytes) trimmed on /dev/mapper/hawk2021vg-hawk2021root Feb 17 01:13:43 hawk systemd[1]: fstrim.service: Deactivated successfully. Feb 17 01:13:43 hawk systemd[1]: Finished fstrim.service - Discard unused blocks on filesystems from /etc/fstab. root@hawk:/crc/backs/myob/scripts# It looks like fstrim operates on non-LUKS partitions (/, /boot/efi, and /boot) and logical volumes in a LUKS volume groups which is encrypted (/home). -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/