Você pode usar fsck_ffs -E
:
Clear unallocated blocks, notifying the underlying device that they are not used and that their contents may be discarded. This is useful for filesystems which have been mounted on systems without TRIM support, or with TRIM support disabled, as well as filesystems which have been copied from one device to another.
See the
-E
and-t
flags ofnewfs(8)
, and the-t
flag oftunefs(8)
.
Também verificará o sistema de arquivos, portanto, o desempenho será muito pior do que fstrim
no Linux.