{"id":493,"date":"2013-07-16T18:15:04","date_gmt":"2013-07-16T16:15:04","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=493"},"modified":"2013-07-16T18:15:04","modified_gmt":"2013-07-16T16:15:04","slug":"enable-trim-with-non-apple-ssd","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=493","title":{"rendered":"Enable TRIM with Non-Apple SSD"},"content":{"rendered":"<p>\n\t<strong>DO NOT USE THIS ON OSX 10.10 (YOSEMITE)!!!<\/strong>\n<\/p>\n<p>\n\tApple enabled TRIM support with OSX Lion (10.7) but there is a catch: apple enabled it only on apple-chosen-SSDs. So if you upgraded your hard drive to a 3rd party manufacturer chances are big that TRIM isn&#39;t enabled. Here is how to enable it from commandline:\n<\/p>\n<ol>\n<li>\n\t\topen terminal\n\t<\/li>\n<li>\n\t\tmake yourself root<br \/>\n\t\t<em># sudo su<\/em>\n\t<\/li>\n<li>\n\t\tthen change into the needed directory and backup a file<br \/>\n\t\t<em>#&nbsp;cd&nbsp;\/System\/Library\/Extensions\/IOAHCIFamily.kext<br \/>\n\t\t# cd&nbsp;Contents\/PlugIns\/IOAHCIBlockStorage.kext\/Contents\/MacOS<br \/>\n\t\t# cp&nbsp;IOAHCIBlockStorage&nbsp;IOAHCIBlockStorage.backup<\/em>\n\t<\/li>\n<li>\n\t\tthan patch the file for Mavericks 10.9.4-10.9.5<br \/>\n\t\t<em>#&nbsp;perl -pi -e &#39;s|(^\\x00{1,20})[^\\x00]{9}(\\x00{1,20}\\x54)|$1\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00$2|sg&#39; IOAHCIBlockStorage<\/em>\n\t<\/li>\n<li>\n\t\tOR for&nbsp;<span style=\"color: rgb(0, 0, 0); line-height: normal; white-space: pre-wrap;\">Mountain Lion 10.8.3 &#8211; Mavericks 10.9.3<\/span><br \/>\n\t\t<em>#&nbsp;perl -pi -e &#39;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&#39; IOAHCIBlockStorage<\/em>\n\t<\/li>\n<li>\n\t\tOR for Mountain Lion 10.8.1-10.8.2 and Lion 10.7.5<br \/>\n\t\t<em># perl -pi -e &#39;s|(\\x52\\x6F\\x74\\x61\\x74\\x69\\x6F\\x6E\\x61\\x6C\\x00{1,20})[^\\x00]{9}(\\x00{1,20}\\x4D)|$1\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00$2|sg&#39; IOAHCIBlockStorage<\/em>\n\t<\/li>\n<li>\n\t\tOR for Mountain Lion 10.8.0 and Lion 10.7.4 BELOW<br \/>\n\t\t<em># perl -pi -e &#39;s|(\\x52\\x6F\\x74\\x61\\x74\\x69\\x6F\\x6E\\x61\\x6C\\x00{1,20})[^\\x00]{9}(\\x00{1,20}\\x51)|$1\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00$2|sg&#39; IOAHCIBlockStorage<\/em>\n\t<\/li>\n<li>\n\t\t<em># touch \/System\/Library\/Extensions\/<\/em>\n\t<\/li>\n<li>\n\t\treboot your machine\n\t<\/li>\n<\/ol>\n<p>\n\tIn the system report (system information &gt; serial-ata device) the TRIM support should list YES. The patch has to be re-applied everytime there&#39;s an OS update.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DO NOT USE THIS ON OSX 10.10 (YOSEMITE)!!! Apple enabled TRIM support with OSX Lion (10.7) but there is a catch: apple enabled it only on apple-chosen-SSDs. So if you upgraded your hard drive to a 3rd party manufacturer chances are big that TRIM isn&#39;t enabled. Here is how to enable it from commandline: open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-493","post","type-post","status-publish","format-standard","hentry","category-mac-osx"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=493"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/493\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}