Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
You have to use terminal command sudo cp -pR to keep permissions etc when you copy the kext. I have deleted my recovery partition so I don't know the path. But I think it's the usual one. If you have renamed your hard disk just replace the Macintosh HD part. Please notice the backslash \ before spaces in the name. Then restart your system and rebuild the prelink kernel extensions and caches also via terminal commands. This may take awhile so just wait for confirmation after each command and then restart again.

Code:
sudo cp -pR /System/Library/Extensions/IOAHCIFamily.kext /Volumes/Macintosh\ HD/System/Library/Extensions/

sudo kextcache -system-prelinked-kernel

sudo kextcache -system-caches

I am using a Corsair Force 3 (upgraded version. no issues and no firmware upgrade needed) in a new MBP 15 inch with an i7 proc. The Corsair uses a Sandforce controller. Is it correct that the Sandforce controller does not need to use TRIM or should I enable it?
 
I am using a Corsair Force 3 (upgraded version no issues and no firmware upgrade needed) in a new MBP 15 inch with an i7 proc. The Corsair uses a Sandforce controller. Is it correct that the Sandforce controller does not need to use TRIM or should I enable it?
Don't break what's working! No there is no need for that. SSDs with Sandforce controllers have extensive automatic garbage collection. And there are many reports of problems with Sandforce controllers and SATA standard trim command. The only SSDs I would recommend to enable TRIM for are Intel drives.
 
Last edited:
Hi,
I've just bought a used Intel X25-M and updated the firmware to the latest.

Would I benefit from enabling TRIM on this drive or does it have adequate Garbage Collection?

Thanks.
 
Hi, I've just bought a used Intel X25-M and updated the firmware to the latest. Would I benefit from enabling TRIM on this drive or does it have adequate Garbage Collection? Thanks.
That specific drive would definitely benefit from enabling TRIM. I used that one with TRIM when it become possible before upgrading to Intel 320. After enabling TRIM just restart in Safe Mode (hold the Shift key) and the system will automatically trim unused blocks. There is no need to erase free space with Disk Utility. And therefore is this option not available in Lion if you have a SSD installed.
 
That specific drive would definitely benefit from enabling TRIM. I used that one with TRIM when it become possible before upgrading to Intel 320. After enabling TRIM just restart in Safe Mode (hold the Shift key) and the system will automatically trim unused blocks. There is no need to erase free space with Disk Utility. And therefore is this option not available in Lion if you have a SSD installed.

Does the intel 320 have sufficient garbage-collection to not need TRIM?
 
Does the intel 320 have sufficient garbage-collection to not need TRIM?
"The 320 behaves a lot like the old X25-M G2 did when tortured. Minimum performance drops pretty low - Intel prefers cleaning up as late as possible to extend drive longevity. As a result, I wouldn't recommend using the 320 in an OS without TRIM support." - AnandTech

Intel SSD 320 Review
 
Need some help!

Just flashed my Corsair P128 firmware to the VBM19C1Q version. Installed lion fresh off USB (10.7.1). Ran the TRIM Enabler 1.2, Rebooted. Checked System Info and it shows TRIM support enabled, but in Disk Utility, I cannot Erase Free Space. Any ideas?

Thanks!
 
Just flashed my Corsair P128 firmware to the VBM19C1Q version. Installed lion fresh off USB (10.7.1). Ran the TRIM Enabler 1.2, Rebooted. Checked System Info and it shows TRIM support enabled, but in Disk Utility, I cannot Erase Free Space. Any ideas?

Thanks!

TRIM must be working. I just booted into single user mode and ran fsck and it said it TRIM'd space. Just don't know why I can't do it from Disk Utility.
 
Just flashed my Corsair P128 firmware to the VBM19C1Q version. Installed lion fresh off USB (10.7.1). Ran the TRIM Enabler 1.2, Rebooted. Checked System Info and it shows TRIM support enabled, but in Disk Utility, I cannot Erase Free Space. Any ideas? Thanks!
Why would you apply all available new updates (SSD firmware and Lion updates) and then install an outdated kernel extension for SSD operation? Trimming unused blocks is not the same as erase free space! That's why Apple has disabled this in Disk Utility for SSDs.
 
in Lion, erase free space can only be done on a drive that you are not booted from.

this is probably because when you do it on your bootdrive, the OS can seem unresponsive for a couple of minutes when the temp file is largest, and some users force quit the application or hard reset the computer, leaving the temp file and 0kb free space, making it impossible to boot again.
 
in Lion, erase free space can only be done on a drive that you are not booted from.
I can for sure erase free space on my external startup hard disk with Disk Utility but I still can't erase free space on the internal SSD. Apple has disabled the erase free space option for all SSDs in Lion for a good reason.
 

Attachments

  • externalhd.png
    externalhd.png
    132 KB · Views: 183
  • internalssd.png
    internalssd.png
    133.9 KB · Views: 200
TRIM must be working. I just booted into single user mode and ran fsck and it said it TRIM'd space. Just don't know why I can't do it from Disk Utility.

Run fsck -ffy from single user mode. The output says that it trims the free space. Seems to be the only way to trim free space in Lion.
 
Run fsck -ffy from single user mode. The output says that it trims the free space. Seems to be the only way to trim free space in Lion.
Or just restart in Safe Mode (hold the Shift key) and the system will automatically trim unused blocks without any terminal commands.
 
don't enable TRIM. GC and TRIM don't jive.

Is this statement based on any fact? I used TRIM on vertex 3 from April through July with no problems. Windows runs TRIM on any SSD that supports trim WHICH VERTEX 3 DOES.... so where are you getting this from?

----------

Use About This Mac to find out if you have the correct IOAHCIBlockStorage 2.0.0 kext installed. Please also check all the other info (valid, authentic and dependencies). If you have used Trim Enabler you probably have the outdated 1.6.4 kext from Mac OS X 10.6.8. And I'm not sure if you can use the terminal patch then since Trim Enabler won't restore the correct kext.

I have 1.6.4. This AFTER I booted to recovery and copied the kext running in recovery over to my boot partition. So recovery must use whatever kext are on the boot partition also....

So where can I get 2.0? Can someone post their 2.0 kext?
Thanks,

----------

You can restore the correct version by booting from your recovery partition and copying the right file over from there to your boot partition.

That didn't work. It's still saying its using the older one. Cleared the kext cache and everything.

----------

Erm so i've mucked up completely :(:( I found the back up version and went to replace the file by dragging and dropping) after replacing the kext a dialog box appeared saying it hadn't installed properly.

OSX continued to work fine, went back to the finder window and IOAHCIFamily.kext was no longer there. After restarting, OSX will no longer boot, i'm currently on my windows partition.

Can anyone help me reinstall the kext from the recovery partition, I don't have a recent backup (foolish I know) and really don't want to install clean.

Thanks if anyone can help

Hackintosh users have to fool with their kext often and have a tool called MyHack. It fixes the permissions on all kexts, clears the cache, all gui no terminal commands. If you put the kext in the right folder (guessing you did), it might help you... but you can't boot, so this won't work for you.

Therefore, google "fix permissions" maybe along with "osx86" keyword and should get the terminal commands necessary to fix the permissions. You'll have to boot the mac using the recovery partition and run the commands in terminal. Make sure to run them on the boot partition kext directory, not the directory of the recovery partition.

----------

One more thing. If you ever used Trim Enabler the whole IOAHCIFamily.kext has been replaced in Lion. So I would try to re-install the IOAHCIFamily.kext from the original Mac OS X 10.7.0 Lion installation.

Is the IOAHCIFamily.kext a different version? If so I'm going to need that whole kext....
 
So where can I get 2.0? Can someone post their 2.0 kext?
Replace the whole IOAHCIFamily kext via sudo cp -pR and then set the correct permissions on the kext with sudo chown -R root:wheel. The enclosed kext is the original one from Lion with IOAHCIBlockStorage 2.0.0.
 

Attachments

  • IOAHCIFamily.kext.zip
    199.9 KB · Views: 138
And this one has an already TRIM patched Lion IOAHCIBlockStorage 2.0.0 kext.
 

Attachments

  • IOAHCIFamily.kext.zip
    199.9 KB · Views: 182
Replace the whole IOAHCIFamily kext via sudo cp -pR and then set the correct permissions on the kext with sudo chown -R root:wheel.
Code:
sudo cp -pR ~/Downloads/IOAHCIFamily.kext /System/Library/Extensions/

sudo chown -R root:wheel /System/Library/Extensions/IOAHCIFamily.kext
 
Last edited:
You have to use terminal command sudo cp -pR to keep permissions etc when you copy the kext. I have deleted my recovery partition so I don't know the path. But I think it's the usual one. If you have renamed your hard disk just replace the Macintosh HD part. Please notice the backslash \ before spaces in the name. Then restart your system and rebuild the prelink kernel extensions and caches also via terminal commands. This may take awhile so just wait for confirmation after each command and then restart again.

Code:
sudo cp -pR /System/Library/Extensions/IOAHCIFamily.kext /Volumes/Macintosh\ HD/System/Library/Extensions/

sudo kextcache -system-prelinked-kernel

sudo kextcache -system-caches

Hackintosh users have to fool with their kext often and have a tool called MyHack. It fixes the permissions on all kexts, clears the cache, all gui no terminal commands. If you put the kext in the right folder (guessing you did), it might help you... but you can't boot, so this won't work for you.

Therefore, google "fix permissions" maybe along with "osx86" keyword and should get the terminal commands necessary to fix the permissions. You'll have to boot the mac using the recovery partition and run the commands in terminal. Make sure to run them on the boot partition kext directory, not the directory of the recovery partition.

----------



Is the IOAHCIFamily.kext a different version? If so I'm going to need that whole kext....

Thanks for the help RS2 and Norrin, I'm back up and running fine with the correct kext and Trim re-enabled.
 
Code:
sudo cp -pR ~/Downloads/IOAHCIFamily.kext /System/Library/Extensions/

sudo chown -R root:wheel /System/Library/Extensions/IOAHCIFamily.kext

Hi RS2,

Is that the car you have? Anyway, I have a unique question or two for you if you do not mind.

1. I put a new Corsair Force 3 into a new MBP and after a week or two the MBP started exhibiting strange behavior. Sometimes it hangs in the middle of an operation from launching an app to browsing, to syncing iTunes. Any thoughts?

2. I have a friend that works at a computer store here in Finland, and I was able to pick up a OCZ Vertex 2 120 gig for about 100 dollars. Again, a friend. Would you recommend removing the Corsair, getting my money back and replacing it with the OCZ?

3. Does the OCZ support TRIM? I know that it has a Sandforce controller that does not require TRIM but was just curious.

Any help is greatly appreciated.

Cheers
 
"Is this statement based on any fact? I used TRIM on vertex 3 from April through July with no problems. Windows runs TRIM on any SSD that supports trim WHICH VERTEX 3 DOES.... so where are you getting this from?"

My statement was based on observation. There are reports in this very long thread that people have issues after enabling TRIM on GC capable SSDs. Someone else help me out and confirm this please to the skeptical.
 
real experience with sandforce+trim. not guessing.

"Is this statement based on any fact? I used TRIM on vertex 3 from April through July with no problems. Windows runs TRIM on any SSD that supports trim WHICH VERTEX 3 DOES.... so where are you getting this from?"

My statement was based on observation. There are reports in this very long thread that people have issues after enabling TRIM on GC capable SSDs. Someone else help me out and confirm this please to the skeptical.

Well here goes some actual real life experience with the Sandforce SSDs that everyone keeps guessing suddenly don't support TRIM on OS X, but magically support it on Windows.

https://forums.macrumors.com/showthread.php?p=13203677&#post13203677

At this point, the problems mentioned regarding Lion could be completely due to TRIM Enabler reverting my kext version. I only got back on the right version yesterday, so my timer is reset for the issues to go away... again. But... I'm getting those issues very rarely at this point. I'll update as things change.

Hi RS2,

1. I put a new Corsair Force 3 into a new MBP and after a week or two the MBP started exhibiting strange behavior. Sometimes it hangs in the middle of an operation from launching an app to browsing, to syncing iTunes. Any thoughts?

2. I have a friend that works at a computer store here in Finland, and I was able to pick up a OCZ Vertex 2 120 gig for about 100 dollars. Again, a friend. Would you recommend removing the Corsair, getting my money back and replacing it with the OCZ?

3. Does the OCZ support TRIM? I know that it has a Sandforce controller that does not require TRIM but was just curious.

Any help is greatly appreciated.

Cheers

I suggest you read the post I linked to also. Others may not want to wait as I did. But I do propose a possible cause of the issue. Erasing the free space definitely helps the process go faster.

Maybe a way to avoid the issue: Install OS X to the drive from another mac with TRIM already enabled. 1) fresh install on the new computer 2) Take an image of the drive 3) put the ssd in a different mac with TRIM enabled 4) TRIM the whole drive 5) Carbon copy the image back to the SSD. 6) put the ssd back in the destination computer & done.
Long drawn out process. Just thinking outloud...
 
Last edited:
I replaced the IOAHCIFamily kext and tried this again, and it worked perfectly, thanks :)

I guess it'd be sensible to replace the kext with the original before updating to 10.7.2 etc.
 
Is there a way to enable trim support just for a specific drive? For instance if I have a SSD with sandforce and say an intel 320.

Thanks in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.