Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 25, 2011, 12:49 PM   #1
endless17
macrumors member
 
Join Date: Mar 2011
Enabling(?) TRIM for your SSD in 10.6.7 (YMMV)

First, I'm not sure if this is exclusive to the version of 10.6.7 found on the new 2011 MacBook Pro's, but this should work on Lion as well.

First, go to System Profiler -> Serial-ATA and make note of the name of your SSD Drive. In my case, this is OCZ-VERTEX2. Write down only the first 9 characters, so in this case it would be -

OCZ-VERTE

Go into System>Library>Extensions and look for IOAHCIFamily.kext. Drag it to your desktop (it's okay, you're only making a copy since the file is protected). Right click the file on the desktop and select 'Show Package Contents'. Drill down to Package > Contents and select 'IOAHCIBlockStorage.kext'

Right-click on 'IOAHCIBlockStorage.kext' and select 'Show Package Contents.' Go to Contents >MacOS and you'll come upon a file called 'IOAHCIBlockStorage.'

Get a Hex Editor (I recommend Hex Fiend), now drag 'IOAHCIBlockStorage' straight onto Hex Fiend's icon. Switch over to Hex Fiend and do a Find for 'APPLE SSD' without the quotes. You should come up with two instances.

Now, in the replace field put the first 9 characters for your SSD that you saved earlier. For me, APPLE SSD was replaced with OCZ-VERTE. Save the file in Hex Fiend, and you can now close all windows you have open, till you're just left with the IOAHCIFamily.kext file on the desktop.

Download Kext Utility, which will automatically install the kext, repair permissions, and backup the previous kext within S/L/E should you need to switch back.

After that, reboot and check system profiler!



Cosmetic? Who knows. Does it work? Who knows. The GC on Sandforce drives are pretty good, but TRIM is still better. As long as my drive doesn't explode, I'm keeping this till the next OS update.
endless17 is offline   0 Reply With Quote
Old Mar 25, 2011, 01:29 PM   #2
sab165
macrumors member
 
Join Date: May 2008
I can confirm that this does not work for the Mid-09' MBP. I followed your instructions step by step and I am only able to find instances for the HDD.

Thanks for the write up though, it is very easy to follow, and should help those folks that want to enable TRIM on their MBP's.

Edit: See my next post, it does actually work.
__________________
Mid-09' 15" MBP, 2.8GHz, 8GB Ram, 240GB Mushkin SSD, OWC Data Doubler w/ 500GB Seagate Momentus XT ; Early-08' 15" MBP, 2.4GHz, 4GB Ram, 500GB OEM HDD

Last edited by sab165; Mar 25, 2011 at 04:00 PM.
sab165 is offline   0 Reply With Quote
Old Mar 25, 2011, 01:38 PM   #3
JGO
macrumors member
 
Join Date: Feb 2009
Quote:
Originally Posted by sab165 View Post
I can confirm that this does not work for the Mid-09' MBP. I followed your instructions step by step and I am only able to find instances for the HDD.

Might be a different kext file in your build.

Check this out: "If you don't have a 2011 MacBook Pro, you will have to download that version of the extension following the link in the news about the APPLE SSD."
JGO is offline   0 Reply With Quote
Old Mar 25, 2011, 03:58 PM   #4
sab165
macrumors member
 
Join Date: May 2008
Confirmed to work for Mid-09' MBP

Yea I had figured as much, but I didn't know if the kext files were interchangeable. In any case, thank you for the link, it did the trick as you can see in the following screenshot:
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2011-03-25 at 3.50.30 PM.png
Views:	183
Size:	96.5 KB
ID:	278165  
__________________
Mid-09' 15" MBP, 2.8GHz, 8GB Ram, 240GB Mushkin SSD, OWC Data Doubler w/ 500GB Seagate Momentus XT ; Early-08' 15" MBP, 2.4GHz, 4GB Ram, 500GB OEM HDD
sab165 is offline   0 Reply With Quote
Old Mar 25, 2011, 05:59 PM   #5
johnnyturbouk
macrumors 65816
 
johnnyturbouk's Avatar
 
Join Date: Feb 2011
Location: London
Any 1. Tried this on an owc sf1200
__________________
An fanboi since in-utero
johnnyturbouk is offline   0 Reply With Quote
Old Mar 25, 2011, 06:57 PM   #6
Blue Sun
macrumors 6502a
 
Join Date: Feb 2009
Location: Australia
Quote:
Originally Posted by johnnyturbouk View Post
Any 1. Tried this on an owc sf1200
Was just thinking the same thing...

Also, do you think its possible that this little trick will work on a 2010 MBP?
Blue Sun is offline   0 Reply With Quote
Old Mar 25, 2011, 07:14 PM   #7
kappaknight
macrumors 65816
 
Join Date: Mar 2009
Quote:
Originally Posted by Blue Sun View Post
Was just thinking the same thing...

Also, do you think its possible that this little trick will work on a 2010 MBP?
I think it does. One of my friend did the hex edit and it worked on his computer. I'm pretty sure he doesn't have a 2011 MBP so it's one of the earlier years.
kappaknight is offline   0 Reply With Quote
Old Mar 25, 2011, 07:18 PM   #8
sab165
macrumors member
 
Join Date: May 2008
Quote:
Originally Posted by Blue Sun View Post
Was just thinking the same thing...

Also, do you think its possible that this little trick will work on a 2010 MBP?
I see no problem with it working on a 2010 MBP since it works on my 09'. It took me maybe 10 minutes to do. I ended up following the instructions from the third post in this thread.
__________________
Mid-09' 15" MBP, 2.8GHz, 8GB Ram, 240GB Mushkin SSD, OWC Data Doubler w/ 500GB Seagate Momentus XT ; Early-08' 15" MBP, 2.4GHz, 4GB Ram, 500GB OEM HDD
sab165 is offline   0 Reply With Quote
Old Mar 25, 2011, 07:32 PM   #9
Blue Sun
macrumors 6502a
 
Join Date: Feb 2009
Location: Australia
Quote:
Originally Posted by sab165 View Post
I see no problem with it working on a 2010 MBP since it works on my 09'. It took me maybe 10 minutes to do. I ended up following the instructions from the third post in this thread.
Where did you find the appropriate kext to use?

I looked through that link and couldn't find it.

EDIT: Don't worry, I found it.

For anyone who wants to attempt this but don't have a 2011 MBP, download this.

Last edited by Blue Sun; Mar 25, 2011 at 07:45 PM.
Blue Sun is offline   0 Reply With Quote
Old Mar 25, 2011, 08:12 PM   #10
Virlich
macrumors newbie
 
Join Date: Mar 2011
OWC Mercury Pro Mac OS 10.6.7 TRIM enabled

Done it on my Macbook pro 13" 2010
Virlich is offline   0 Reply With Quote
Old Mar 25, 2011, 08:21 PM   #11
Blue Sun
macrumors 6502a
 
Join Date: Feb 2009
Location: Australia
Quote:
Originally Posted by Virlich View Post
Done it on my Macbook pro 13" 2010
Good to know, will do it on my 2010 15" MBP with the OWC SSD soon.
Blue Sun is offline   0 Reply With Quote
Old Mar 26, 2011, 05:47 AM   #12
ssn637
macrumors 6502
 
Join Date: Feb 2009
Location: Switzerland
Quote:
Originally Posted by Virlich View Post
Done it on my Macbook pro 13" 2010
Me too! Got it to work with my C300 256 GB SSD located in the OptiBay drive. MacBook Pro 13" 2010 2.66
Just make sure the first time you reboot after modifying the extension that you repair disk permissions, then reboot again in SAFE mode (Shift key), and finally reboot again in normal mode.
ssn637 is offline   0 Reply With Quote
Old Mar 26, 2011, 08:01 AM   #13
Bigmacduck
macrumors regular
 
Join Date: Feb 2009
/Library/Extensions is empty?

My /Library/Extensions directory is empty. No files in there, not a single one.
I have a MacBookPro 8,2 (2011) 15" with OS X 10.6.7.

I have searched the whole computer for IOAHCIFamily.kext but I cannot find it. What now?
Bigmacduck is offline   0 Reply With Quote
Old Mar 26, 2011, 08:18 AM   #14
aph3x
macrumors member
 
Join Date: Jun 2007
Location: Reno, NV
Quote:
Originally Posted by Bigmacduck View Post
My /Library/Extensions directory is empty. No files in there, not a single one.
I have a MacBookPro 8,2 (2011) 15" with OS X 10.6.7.

I have searched the whole computer for IOAHCIFamily.kext but I cannot find it. What now?
You need to make sure you're lookin in the root of your hard drive (/volume/library/extensions) and not in your user folder (volume/users/username/library/extensions)
__________________
13" MacBook Air i7/256/4GB 13" 2010 MacBook Air
32GB White iPhone 5 3rd Gen iPad White 32GB AT&T
aph3x is offline   0 Reply With Quote
Old Mar 26, 2011, 08:54 AM   #15
aph3x
macrumors member
 
Join Date: Jun 2007
Location: Reno, NV
I'd also like to add that I did get this to work on a Late 2008 15" Unibody MBP (2.4GHz) w/ an OCZ Vertex 2 SSD (120GB).
__________________
13" MacBook Air i7/256/4GB 13" 2010 MacBook Air
32GB White iPhone 5 3rd Gen iPad White 32GB AT&T
aph3x is offline   0 Reply With Quote
Old Mar 26, 2011, 10:10 AM   #16
adnoh
macrumors 6502a
 
adnoh's Avatar
 
Join Date: Nov 2010
How do you guys know that the change you are doing enables TRIM and it works?
__________________
13" 2010 uMB, 2.4 GHz C2D, 4 GB RAM, 80GB X25-M
16GB iPhone 5 white; 16GB iPad mini white; Airport Express
adnoh is offline   0 Reply With Quote
Old Mar 26, 2011, 10:13 AM   #17
calderone
macrumors 68040
 
calderone's Avatar
 
Join Date: Aug 2009
Location: Seattle
Quote:
Originally Posted by adnoh View Post
How do you guys know that the change you are doing enables TRIM and it works?
They don't.
__________________
ACSA, ACMT
calderone is offline   0 Reply With Quote
Old Mar 26, 2011, 10:49 AM   #18
KBS756
macrumors 6502
 
Join Date: Jan 2009
Worked on my 2010 17 inch i7 Macbook Pro with Intel 510 250 GB SSD

had to download that file linked above and then reboot in safe mode and repair disk permissions

on normal reboot

"INTEL SSDSC2MH250A2:

Capacity: 250.06 GB (250,059,350,016 bytes)
Model: INTEL SSDSC2MH250A2
BSD Name: disk0
Medium Type: Solid State
TRIM Support: Yes"

in system profiler

Hope it actually enables trim and doesnt just say it though
__________________
27" + 24" LED ACD; 2 x 3.33GHz X5680 Mac Pro, 16 GB RAM, 512 GB Samsung 830 SSD ,EVGA Geforce Titan Super-clocked; Early 2013 2.8Ghz 15in Retina Macbook Pro 16GB Ram 756GB
KBS756 is offline   0 Reply With Quote
Old Mar 26, 2011, 10:52 AM   #19
JGO
macrumors member
 
Join Date: Feb 2009
"Universal Solution"

Hard Mac has posted a file that is a further hack to the IOAHCIFAMILY.KEXT. It will allow trim on ANY trim capable ssd: Click Me.

I tried it on my Macbook Pro 5,2 and system profiler shows trim as active on the ssd in the drive bay (Intel) and the one connected in the optical drive bay (OCZ Vertex).

So far no problems. Not sure how to find out if it is actually trimming the drives.
JGO is offline   0 Reply With Quote
Old Mar 26, 2011, 11:08 AM   #20
mulo
macrumors 68020
 
mulo's Avatar
 
Join Date: Aug 2010
Location: Behind you
Send a message via MSN to mulo
cindori is making a tool to enable this
follow this thread
http://forums.macrumors.com/showthread.php?t=1125400
__________________
iPhone 5 Black 64GB.
17" MBP 2.2GHz i7, 16GB RAM.
Canon 7D + grip, 24-70mm f/2.8L USM, 70-200mm f/2.8L IS USM.
mulo is offline   0 Reply With Quote
Old Mar 26, 2011, 11:22 AM   #21
sab165
macrumors member
 
Join Date: May 2008
Quote:
Originally Posted by adnoh View Post
How do you guys know that the change you are doing enables TRIM and it works?
At this point we can't be 100% sure that TRIM is actually working. It could be that we changed the values in the kext file, and the system profiler now reports a yes instead of a no. Only time will tell whether or not this fix works, and by then 10.7 will probably be out so it won't matter all that much.
__________________
Mid-09' 15" MBP, 2.8GHz, 8GB Ram, 240GB Mushkin SSD, OWC Data Doubler w/ 500GB Seagate Momentus XT ; Early-08' 15" MBP, 2.4GHz, 4GB Ram, 500GB OEM HDD
sab165 is offline   0 Reply With Quote
Old Mar 26, 2011, 01:43 PM   #22
dekka007
macrumors member
 
Join Date: Jun 2009
Is this not proof that TRIM is actually enabled and it's just not a generic hack that all it does is display the word YES:

Quote:
I asked about any proof that trim is really working in OS X, not just the OS reporting it as supported. (Many SSDs have GC support in firmware, which has been a plus for OS X users w/o Trim support.)
Here's his reply regarding proof of trim working.

Ok, there are three things:

1) Apple can do it (just show "yes") through detecting media type of Disk in System Profiler (which is more simple) instead of using for this AHCI driver. And another thing - this is all SSDs, just with different names, which all supports unified commands.

2) IOAHCIBlockStorage.kext is not something simple. This driver (Input Output Advanced Host Controller Interface Block Storage) manages all IO for SATA Storage Devices, ie. NCQ, R/W operations, TRIM, etc.. How OS checks that TRIM is supported and works in drive? As you can see in my last message - we tested a group of disks, the ones which support TRIM natively and those which produced early that lacked TRIM support. Those disk that supported it, OS recognized. Those which lacked it OS shows "TRIM Support: No" without exception. To check - IOAHCI after detecting that this is not "rotational" disk (reports no spinning speed), it sends the TRIM commands "BuildATATrimCommand" (found inside IOAHCIBlockStoorage) to the SSD. If SSD executes this, on specific address of clusters after trimming will be zeroes like if we had a secure format with zeroes, then IOAHCI reports that command executed, and SSD supports TRIMming. If the command was ignored and not executed, OS reports that this SSD doesn't support TRIM. This command is not a process which can be monitored by Activity Monitor. It is just a command to SSD's controller which will do this work fully automatically without OS intrusion. This is the algorithm to understand "how os checks that TRIM is supported and executed".

3) Another proof. First what we noted is reverting performance via synthetic test back to original. Another - is using "hdparm" method. Booted in linux, mount SSD with HFS, creates small file in specific place and saves the info about address of sectors that contains that file. In linux TRIM is turned off for HFS. Boot to OS X and delete this file. Back to linux - check the address - and we see only zeros. TRIM is working.
(In theory any SSD that supports TRIM should work but he later wrote with results of more testing)
Some more information about activated TRIM tests with other SSDs. These models tested and TRIM verified working:

Kingston V+ SSDNow Series
Intel X25-S/M 2nd Gen Series
Western Digital Silicon Edge Blue Series
OCZ Agility 2 Series
OCZ Vertex Series
-Viktor D."
dekka007 is offline   0 Reply With Quote
Old Mar 26, 2011, 02:04 PM   #23
Hellhammer
Moderator
 
Hellhammer's Avatar
 
Join Date: Dec 2008
Location: Helsinki, Finland
Send a message via MSN to Hellhammer
http://groths.org/zeus/TRIMEnabler.zip

Cindori just finished it and it is now working (confirmed by me and another forum member). One click, reboot and that's it.
__________________
SSD Editor for AnandTech
You can also follow me in Twitter!
Hellhammer is offline   0 Reply With Quote
Old Mar 26, 2011, 02:07 PM   #24
sublyme2
macrumors newbie
 
Join Date: Jul 2008
Quote:
Originally Posted by Hellhammer View Post
http://groths.org/zeus/TRIMEnabler.zip

Cindori just finished it and it is now working (confirmed by me and another forum member). One click, reboot and that's it.
Confirmed working on 5,1 MBP running intel X-25 G2 120GB
sublyme2 is offline   0 Reply With Quote
Old Mar 26, 2011, 02:13 PM   #25
sab165
macrumors member
 
Join Date: May 2008
Quote:
Originally Posted by dekka007 View Post
Is this not proof that TRIM is actually enabled and it's just not a generic hack that all it does is display the word YES:
Interesting find. Where exactly did you find that info, and who is doing the research?
__________________
Mid-09' 15" MBP, 2.8GHz, 8GB Ram, 240GB Mushkin SSD, OWC Data Doubler w/ 500GB Seagate Momentus XT ; Early-08' 15" MBP, 2.4GHz, 4GB Ram, 500GB OEM HDD
sab165 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Enabling TRIM on a DIY Fusion drive Angelus Mac Pro 3 Feb 20, 2014 04:20 AM
Ssd samsung series 840 to trim o not to trim gianlucadr MacBook Pro 7 Jan 22, 2013 01:39 AM
Enabling Trim Reduces Disk Write Speed jbsmithmac MacBook Pro 0 Dec 14, 2012 07:30 PM
enabling trim after update Silverado83 MacBook Pro 14 Nov 30, 2012 01:49 PM
What are the advantages of enabling TRIM? hartwig MacBook Pro 12 Jul 30, 2012 06:18 PM

Forum Jump

All times are GMT -5. The time now is 12:57 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC