Attached is a simple script which can TRIM a swap device. It just disables the swap device, TRIM's the whole thing, and re-enables the swap device. It supports encrypted swap devices as well as swap devices on LVM - see also https://sourceforge.net/tracker/?func=detail&aid=2997551&group_id=136732&atid=736684 . Usage is basically the same as for wiper.sh, except that you must always specify the swap device.
Log in to post a comment.