Skip to main content

Enable TRIM On Mac OS X

SSD-TRIM

If you’ve installed a Solid State Drive (SSD) in your laptop, there’s an important final step often missed; and that’s enabling TRIM.

WHY ENABLE TRIM?

When you simply “delete” a file on a traditional hard drive, it’s not really “erased.” Instead, its location on the drive is reported to the OS as “empty, even though the ones and zeroes are still there, ready to be overwritten. On SSDs, however, overwriting data can take a considerably longer time than writing to “unused” space.  As solid state drives became more affordable, the TRIM command was introduced to facilitate “garbage collection” of deleted data, allowing the SSD to reset those “unused” blocks back to an “empty” state. This allows for better performance for many SSDs.

ENABLING TRIM ON OS X 10.9 and 10.8

Backup the file we’re patching

“sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.backup”

Patch the file to enable TRIM support for any SSDs (from 10.8.3 to 10.9)

“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”

or patch the file for 10.7.5 to 10.8.2

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

Finalize the patch:

“sudo touch /System/Library/Extensions/”

Now reboot your system and verify that TRIM is enabled through the System Information.

 

Comments

Popular posts from this blog

Got A New Switch? Add These To Your Shopping List

Nintendo's Switch is a fun little console for the whole family. Not only does it connect to your TV as a console, it doubles as a portable gaming console as well. Unfortunately, once you purchase you Nintendo Switch console, your purchases (apart from the games) don't end there. You're going to need a few more accessories that will both protect your console and enhance gameplay. Tempered Glass Screen Protector : SCREEN PROTECTOR FOR NINTENDO SWITCH: Protect your switch from any accidental drops and impact, smudges and scratches - tempered glass is case and charging dock compatible and will not melt, peel, crack or chip off in high temperatures. TEMPERED GLASS SCREEN PROTECTOR: Glass cover for Nintendo Switch is designed to absorb impact if the switch is dropped or smashed, with the switch screen protector glass cracking instead of the switch screen (Sold in multi-packs so you will have extras). SCRATCH RESISTANT: This screen protector back for Nintendo Switc

TLP: S2. Ep.14 - Stadia additions, F-Zero coming to Switch & Sony and Nintendo overseas

  Welcome back to another another episode of the Tech Loft Podcast! In this week's episode we share news regarding: 'Overcooked', 'Golf With Your Friends', and 'Cities:Skylines' coming to Stadia The best 'F-Zero' game comes to the Switch Sony and Nintendo suspend shipments and Nintendo puts eShop under maintenance

BIALETTI Moka Express 6-Cup Aluminum Stovetop Espresso Maker - A Classic Brewing Perfection!

Explore the world of authentic Italian coffee with the BIALETTI Moka Express 6-Cup Aluminum Stovetop Espresso Maker. This product review delves into its features, benefits, user opinions, and more to help you understand why it's a preferred choice for coffee enthusiasts worldwide. When it comes to brewing a perfect cup of espresso, the BIALETTI Moka Express 6-Cup Aluminum Stovetop Espresso Maker stands as an iconic symbol of Italian coffee culture. This classic stovetop coffee maker has been serving coffee enthusiasts for generations, and its exceptional design and functionality have made it a must-have for any coffee lover. The BIALETTI Moka Express is a traditional stovetop espresso maker that is crafted with high-quality aluminum. It features a time-tested design that consists of a bottom chamber, a coffee filter, and an upper chamber for the brewed espresso. This 6-cup model is ideal for sharing delightful espresso moments with friends and family. The BIALETTI Moka Express brew