How can I tell if a Linux block device is trimmable or not?
11
votes
3
answers
4921
views
fstrim
requires the Linux block device to be mounted, and it is not very verbose. blkdiscard
could tell, but also that would require a write operation.
Can I somehow tell if a block device supports trimming/discarding, without actually trying to trim/discard something on it?
Asked by peterh
(10459 rep)
Sep 9, 2021, 01:46 PM
Last activity: Sep 5, 2023, 02:23 PM
Last activity: Sep 5, 2023, 02:23 PM