Currently, my SSD device supports TRIM, but the partition within the SSD does not. I manage this drive using LVM, without encryption or RAID.
However, for some reason, I cannot use fstrim at this partition’s mount point. I’m not sure what to do.
Can I use fstrim to trim the entire disk? I have an LVM volume group, and this disk is a physical volume within that LVM group. This LVM group has only one logical volume, but this logical volume cannot execute trim.
$ apropos fstrim
fstrim (8) - discard unused blocks on a mounted filesystem
While trimming must be supported by the block device the information which blocks are subject of trimming is gathered by examining the affected filesystems.
For filesystems hosted on USB devices trimming is often not supported resp. must be enabled first. See also
I have enabled TRIM support for my device through these steps, but under LVM, I am unable to perform TRIM operations on the partitions of this hard drive.
You have checked the USB device for unmap support using the sg_readcap and sg_vpd commands described in the ArchWiki article? According to the device ID the drive is a Samsung TP5 drive. For all my Samsung T7 devices the lsblk -D output looks similar. Based on the sg_readcap and sg_vpd output their unmap support is at least unsufficient for current kernel.