Enabling(?) TRIM for your SSD in 10.6.7 (YMMV)

Discussion in 'OS X' started by endless17, Mar 25, 2011.

  1. macrumors member

    Joined:
    Mar 8, 2011
    #1
    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!

    [​IMG]

    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.
     
  2. sab165, Mar 25, 2011
    Last edited: Mar 25, 2011

    macrumors member

    sab165

    Joined:
    May 15, 2008
    #2
    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.
     
  3. JGO
    macrumors member

    Joined:
    Feb 24, 2009
    #3
  4. macrumors member

    sab165

    Joined:
    May 15, 2008
    #4

    Attached Files:

  5. macrumors demi-god

    johnnyturbouk

    Joined:
    Feb 9, 2011
    Location:
    southerner trapped 'up north' (UK)
    #5
    Any 1. Tried this on an owc sf1200
     
  6. macrumors 6502a

    Joined:
    Feb 11, 2009
    Location:
    Australia
    #6
    Was just thinking the same thing...

    Also, do you think its possible that this little trick will work on a 2010 MBP?
     
  7. macrumors 65816

    kappaknight

    Joined:
    Mar 5, 2009
    #7
    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.
     
  8. macrumors member

    sab165

    Joined:
    May 15, 2008
    #8
    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.
     
  9. Blue Sun, Mar 25, 2011
    Last edited: Mar 25, 2011

    macrumors 6502a

    Joined:
    Feb 11, 2009
    Location:
    Australia
    #9
    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.
     
  10. macrumors newbie

    Joined:
    Mar 25, 2011
    #10
    OWC Mercury Pro Mac OS 10.6.7 TRIM enabled

    Done it on my Macbook pro 13" 2010
     
  11. macrumors 6502a

    Joined:
    Feb 11, 2009
    Location:
    Australia
    #11
    Good to know, will do it on my 2010 15" MBP with the OWC SSD soon.
     
  12. macrumors 6502

    Joined:
    Feb 12, 2009
    Location:
    Switzerland
    #12
    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.
     
  13. macrumors regular

    Joined:
    Feb 15, 2009
    #13
    /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?
     
  14. macrumors member

    Joined:
    Jun 28, 2007
    Location:
    Reno, NV
    #14
    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)
     
  15. macrumors member

    Joined:
    Jun 28, 2007
    Location:
    Reno, NV
    #15
    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).
     
  16. macrumors 6502a

    adnoh

    Joined:
    Nov 14, 2010
    #16
    How do you guys know that the change you are doing enables TRIM and it works?
     
  17. macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #17
    They don't.
     
  18. macrumors 6502a

    Joined:
    Jan 27, 2009
    #18
    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
     
  19. JGO
    macrumors member

    Joined:
    Feb 24, 2009
    #19
    "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.
     
  20. macrumors 68020

    mulo

    Joined:
    Aug 22, 2010
    Location:
    Behind you
    #20
  21. macrumors member

    sab165

    Joined:
    May 15, 2008
    #21
    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.
     
  22. macrumors member

    Joined:
    Jun 6, 2009
    #22
    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:

     
  23. Moderator emeritus

    Hellhammer

    Joined:
    Dec 10, 2008
    Location:
    Finland
    #23
  24. macrumors newbie

    Joined:
    Jul 11, 2008
    #24
    Confirmed working on 5,1 MBP running intel X-25 G2 120GB :cool:
     
  25. macrumors member

    sab165

    Joined:
    May 15, 2008
    #25
    Interesting find. Where exactly did you find that info, and who is doing the research?
     

Share This Page