I installed an SSD but I can’t verify TRIM is functioning.
MY SSD is working but TRIM may not be.
I’m running Fedora 36 with BTRFS. I installed a Samsung SSD 980 PRO 2TB SSD firmware version 5B2QGXA7 as a secondary drive that does not auto mount, as intended. I have the drive set as LUKS Encrypted. Everything appears to work, unlock, mount, unmount, lock, as intended.
Running fstrim produces:
the discard operation is not supported
I tried using hdparm to verify the NVME drive supports TRIM but got odd results. I’ve been told that hdparm does not support NVME devices.
mount shows:
/dev/mapper/luks-ffb768b8-144c-4250-8eb7-17f11cc7367c on /run/media/xxxxx/SSD-1 type btrfs (rw,nosuid,nodev,relatime,seclabel,ssd,space_cache=v2,subvolid=5,subvol=/,x-gvfs-show)
See the linked article on how to make the allow-discards flag permanent for your LUKS device, so that you can continue unlocking from gnome-disks, if desired.