Jump to content
9 posts in this topic

Recommended Posts

If latest version ( http://www.cindori.org/ ) doesn´t work, you could try manually:

 

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

I've redone the perl one-liner so that it should work with any OS version.

It was originally written to be dependent on the exact characters following the "APPLE SSD" string, which typically changes on each OS version, requiring a rewrite each time. Silly requirement.

Now, it'll look for the following non-null characters and simply re-output them, without actually knowing what they were.

It will also create a backup (with .bak extension) in the same directory, in the event it messes up something.

 

See if it works:

 

Enable TRIM for non-Apple SSD:

sudo perl -i.bak -pe 's|(Rotational\x00{1,20})[^\x00]{9}(\x00{1,20}[^\x00])|$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 TRIM for non-Apple SSD (without using previous backup):

sudo perl -i -pe 's|(Rotational\x00{1,20})\x00{10}([^\x00])|$1APPLE SSD\x00$2|sg' \

/System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

 

Disable TRIM for non-Apple SSD by reverting to previous backup:

sudo mv -f /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.bak \

/System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
 

kind regards,

MAJ

 

EDIT: Of course, always update caches and reboot after changes!

  • Like 2

digital_dreamer... Unfortunately, the tool did not work. This tip but here goes:

 

3 Method !

 

http://www.insanelymac.com/forum/topic/298507-enable-trim-on-non-apple-ssd/?do=findComment&comment=2025739

 

with entry in Clover

 

There is only one small problem after that is activated it takes longer (about 15 seconds) from the start Clover appears to desktop.

×
×
  • Create New...