Friday, May 23, 2014

How to enable trim for SSDs in the OS X Terminal (OS X Mavericks) - 10.9.x

NOTE: These methods (except Trim Enabler ) stopped working with the 10.9.4 update. Trim Enabler still works as expected. I will refresh this post when the situation changes. I expect an update to both Chameleon SSD Optimizer and the terminal commands will be coming shortly.

Many people are having issues trying to enable trim for their non-Apple SSDs since the release of Mavericks. It's pretty straight forward though, you can either download and install Trim Enabler, download and install Chameleon SSD Optimizer, or open up a command line terminal and paste the following code.First:

sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage


sudo touch /System/Library/Extensions/

I personally like the Chameleon SSD Optimizer because once you run it, it doesn't load anything up on startup ever. I like that. Many people like Trim Enabler specifically because it does load a helper too on every reboot that stays in your upper tool bar. If Trim becomes disabled for any reason, it will instantly notify you and prompt you to re-enable Trim.I've not personally had a problem where Trim gets disabled (except after an OS X system update, which is to be expected). However if you are setting up a system for an uninformed user, I would recommend Trim Enabler.Also, don't be a cheapskate! If you use one of the Apps rather than the terminal command, please donate something to the developer or make a purchase where applicable. We need them to keep on developing great tools like these.-OUT




No comments: