Can fstrim be used on unmounted file systems?

 No, fstrim can only be used on mounted file systems. To trim an unmounted file system, you would need to mount it first.