Become a MacRumors Supporter for $25/year with no ads, private forums, and more!
  • Did you order new AirTags? We've opened a dedicated AirTags forum.

mayuka

macrumors 6502a
Original poster
Feb 15, 2009
598
62
Hi.

I searched everywhere. The old command to enable T.R.I.M. support for non-Apple SSDs does not work anymore on 10.9 Mavericks. Do you know the new command?

I'm using:

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
 

mjcharlton71

macrumors member
Nov 11, 2011
91
24
Newcastle upon Tyne, England
The old command to enable T.R.I.M. support for non-Apple SSDs does not work anymore on 10.9 Mavericks. Do you know the new command?

I found it easier to use the free version of Trim Enabler and have it run on startup.... that way once the patch is enabled, if the machine's restarted following OS level patching and TRIM is disabled on non-Apple SSDs (or any other reason), the app warns you so you can switch it on again.
 
Comment

mayuka

macrumors 6502a
Original poster
Feb 15, 2009
598
62
That one worked. However, I really would like to know the new string. It would make things easier and I don't have to purge the drive from a silly helper tool.
 
Comment

pastrychef

macrumors 601
Sep 15, 2006
4,520
1,077
New York City, NY
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
 
Comment

mayuka

macrumors 6502a
Original poster
Feb 15, 2009
598
62
Purge the drive? What do you mean?

TrimEnabler installs a helper tool. I don't want to keep the app on my hd, because I want as much free space as possible (even the 256 GB are pretty much filled). Too bad it doesn't offer an uninstall option.

----------

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

Unless I'm not mistaken that's the exact same string I posted earlier and it doesn't work.
 
Comment

ammusk

macrumors regular
Oct 20, 2009
122
0
TrimEnabler installs a helper tool. I don't want to keep the app on my hd, because I want as much free space as possible (even the 256 GB are pretty much filled). Too bad it doesn't offer an uninstall option.

With the latest 3.1.2 update the menu helper was removed.

Am not able to find any release notes for the same, but I remember this quite well.

It now works like a standard (non menu) app.

Here's an alternative to trim enabler:
http://chameleon.alessandroboschini.it/index.php

Although I don't use it, it's supposed to be better and less intrusive.

It's free unlike TrimEnabler.
 
Comment

mayuka

macrumors 6502a
Original poster
Feb 15, 2009
598
62
It worked for me.

Strange. The command didn't work on my Mac mini + Samsung 830.

Whatever. I have enabled it now and I will keep my eyes open for a changed command. Thanks anybody involved. :)
 
Comment

squeakr

macrumors 68000
Apr 22, 2010
1,603
1
I use the chameleon SSD optimizer app and it worked in Mavericks and said trim was enabled, but ow I wonder as I can't see where it reports it enabled or not?? It used to show within the System report, but I am not seeing anything there about trim???

How would I tell, does someone have a terminal command I can run to see if it is truly enabled??
 
Comment

squeakr

macrumors 68000
Apr 22, 2010
1,603
1
That's odd. Neither of my systems that has an SSD on it is showing the Trim information in the system information. It used to have an entry that said "Trim Enabled:" and then reported Yes or no accordingly. That line of information is no longer there. Weird???
 
Comment

pastrychef

macrumors 601
Sep 15, 2006
4,520
1,077
New York City, NY
I have no explanation...
 

Attachments

  • Screen Shot 2013-10-25 at 4.56.24 PM.jpg
    Screen Shot 2013-10-25 at 4.56.24 PM.jpg
    111 KB · Views: 2,694
Comment

mayuka

macrumors 6502a
Original poster
Feb 15, 2009
598
62
In the system report of my Mac Mini 2011 the line was always there. When I used the command it still said "No" after reboot. After using TrimEnabler the line said "Yes". Maybe you are confusing the hard disk with the ssd? I've seen switching disk0 / disk1 when I first installed the ssd to my Mac mini a year ago with 10.8.
 
Comment

pastrychef

macrumors 601
Sep 15, 2006
4,520
1,077
New York City, NY
Figured it out...

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

Then:

sudo touch /System/Library/Extensions/

Reboot.
 
Comment

Chazz08

Cancelled
Dec 4, 2012
560
105
Figured it out...

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

Then:

sudo touch /System/Library/Extensions/

Reboot.

The Chameleon program didn't work for me, but this did. TRIM enabled. I never knew about TRIM though. It's new to me....I just recently got an SSD back in June, so I hadn't really known much about them. Now that it's enabled, I've noticed that when I delete something, it doesn't stay in my trash bin, is that correct?

From what I've read about it, I like the idea. :)


[Edit] Never mind, just another bug. My trash bin wasn't filling up on the dock when I deleted something, but the files are in there. Weird.
 
Comment

widestload

macrumors 6502
Jun 10, 2008
453
398
manchester UK
Figured it out...

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

Then:

sudo touch /System/Library/Extensions/

Reboot.

Does this just get copied into terminal (and password entered along the way to get it to run)? Or does something else need to be done with it?
 
Comment

kensic

macrumors 6502
Jan 11, 2013
356
14
Figured it out...

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

Then:

sudo touch /System/Library/Extensions/

Reboot.

does Apple use these commands (or something simliar) to enable trim on their SSD's?


I like the idea of enable trim on non-apple ssd's w/o using 3rd party solution
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.