Jump to content

Anyone makes Lion TRIM works for non-Apple SSD drive?


  • Please log in to reply
4 replies to this topic

#1
allenwkk

allenwkk

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 107 posts
  • Gender:Male
  • Location:Hong Kong
TRIM is not working for my SSD OCZ SATA2 with Lion.

Anyone knows how to make it work?

update 9 May 2011

tried TRIM Enabler 1.1... it works for the LION also.

http://www.groths.org/?p=308

#2
digital_dreamer

digital_dreamer

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,077 posts
  • Gender:Male
  • Location:Missouri USA
Try the following one-line command in Terminal on the active system:
(You can remove the backslash "\" at the end of the first line to put this all on one line.)

# Works for IOAHCIBlockStorage.kext version 2.0.0 (Lion)


Enable:
perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' \
/System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

Disable:
perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x41\x50\x50\x4C\x45\x20\x53\x53\x44$2|sg' \
/System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage


best regards,
MA

P.S. It's best practice to save a copy of the original IOAHCIBlockStorage.kext in /S/L/E, just in case.

#3
pinarek

pinarek

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 645 posts
  • Gender:Male
  • Location:Deutschland

Try the following one-line command in Terminal on the active system:
(You can remove the backslash "\" at the end of the first line to put this all on one line.)

# Works for IOAHCIBlockStorage.kext version 2.0.0 (Lion)


Enable:
perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' \
/System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

Disable:
perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x41\x50\x50\x4C\x45\x20\x53\x53\x44$2|sg' \
/System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage


best regards,
MA

P.S. It's best practice to save a copy of the original IOAHCIBlockStorage.kext in /S/L/E, just in case.



The Problem with Trimsuport ist, when hav a SSD with SF Controller (SF1200 or SF1222) we my Mushkin Callisto
with 240 GB, you NOT !! need this Patch the IOAHCIFamily-Kext.

All this SF-Controller can this:
"Native Command Queuing: Yes"
and
"Queue Depth:32"

That is the same we "IGC" (Internal Garbage Collection) Function.

That is perhaps better as this Trim-Support.

For SSD we Kingston with Marvel or this Jmicron is perhaps Trimm ok.

I hav testing my Mushkin (hav SF-1222 Controller) and hav Problems by shutdown.
I hav back my orig. IOAHCIFamily-kext and all is ok.

#4
kocoman

kocoman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 315 posts
I tried TRIM on Nvidia chipset (With the TRIM 1.1 patcher), but it does not work

Corsair CSSD-V32GB2:

  Capacity:	32.02 GB (32,017,047,552 bytes)
  Model:	Corsair CSSD-V32GB2					 
  Revision:	1.100000
  Serial Number:	xx
  Removable Media:	No
  Detachable Drive:	No
  BSD Name:	disk0
  Protocol:	ata
  Unit Number:	0
  Socket Type:	Serial-ATA
  Partition Map Type:	GPT (GUID Partition Table)
  S.M.A.R.T. status:	Verified
  Volumes:
disk0s1:
  Capacity:	209.7 MB (209,715,200 b

it does not detect solid state

I am using:
AppleNForceATA.imk64bit

in Lion

#5
defix

defix

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
Thank You. This worked perfectly on Retail Lion.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy