Trim for third party Solid State Drives in Mac OSX.
Trim is a command that is executed in the background by the operative system when you delete files, informing the SSD that the blocks are no longer in use and can be deleted. By doing this, the SSD can avoid slowing down future write operations to those blocks. Below are the terminal commands used to do this. If that fails you can download software called Trim Enabler, the link is below. It’s free but I would ask that you donate to the developer.
TRIM can be enabled by using the following Terminal commands. Copy these commands and run them in Terminal:
Backup the file that you’re about to patch:
Patch the file to enable TRIM support:
Clear the kext caches:
Important: reboot your Mac!
To disable TRIM support in the future:
Finally, if this does not work as expected, or if something goes wrong, simply restore the backup:
This patch simply edits a file called IOAHCIBlockStoage, removing a string that makes TRIM work for only Apple SSDs.