Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TRIM can be enabled by using the following Terminal commands. Copy these commands and run them in Terminal:
- Backup the file that you’re about to patch:
- sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /IOAHCIBlockStorage.original
- Patch the file to enable TRIM support:
- sudo 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
- Clear the kext caches:
- sudo kextcache -system-prelinked-kernel
- sudo kextcache -system-caches
- Important: reboot your Mac!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement