Enable Trim for SSD under Lion

Source: Internet
Author: User

Trim enabler has a lot of problems with how to enable the trim function of ssd.
 
Here we provide a command line operation method.
 
1. Back Up Files first
Sudo cp/System/Library/Extensions/IOAHCIFamily. kext/Contents/
 
PlugIns/IOAHCIBlockStorage. kext/Contents/
 
MacOS/IOAHCIBlockStorage/System/Library/Extensions/IOAHCIFamily. kext/Contents/
 
PlugIns/IOAHCIBlockStorage. kext/Contents/MacOS/IOAHCIBlockStorage. original
 
2. Activate trim
Sudo perl-pi-e's | (x52x6Fx74x61x74x69x6Fx6Ex61x6Cx00). {9} (x00x51) |
 
$1x00x00x00x00x00x00x00x00 $2 | sg '/System/Library/Extensions/IOAHCIFamily. kext/Contents/PlugIns/IOAHCIBlockStorage. kext/
 
Contents/MacOS/IOAHCIBlockStorage
 
3. Clear cache
Sudo kextcache-system-prelinked-kernelsudo
 
Kextcache-system-caches
 
4. Restart and trim function is enabled
 
According to his operation, there is a small error when clearing the cache. It is basically OK and the trim function is enabled.
From 4ngle.org

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.