{"id":657,"date":"2014-11-19T21:36:10","date_gmt":"2014-11-19T20:36:10","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=657"},"modified":"2014-11-19T21:36:10","modified_gmt":"2014-11-19T20:36:10","slug":"enable-trim-on-osx-10-10","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=657","title":{"rendered":"Enable TRIM on OSX 10.10 and 10.11"},"content":{"rendered":"<p>\n\tNow after releasing the newest apple operating system i had some problems with the TRIM command for SSDs. As many of you know, apple keeps their IOAHCI driver for themself so that no other company can write a kernel extension. And as a plus they integrated a kext signing mechanism into Yosemite which leads to the inability to load unsigned kernel extensions.\n<\/p>\n<p>\n\tHere is what you have to do in order to enable TRIM. Open your terminal and enter:\n<\/p>\n<pre>\n# sudo su\n# nvram boot-args=kext-dev-mode=1\n# vim \/Library\/Preferences\/SystemConfiguration\/com.apple.Boot.plist\n<\/pre>\n<p>\n\tthen change following lines\n<\/p>\n<pre class=\"p1\">\n<span class=\"s1\">&lt;dict&gt;\n        &lt;key&gt;Kernel Flags&lt;\/key&gt;\n        &lt;string&gt;&lt;\/string&gt;\n\u200b&lt;\/dict&gt;<\/span><\/pre>\n<p>\n\t<span class=\"s1\">to<\/span>\n<\/p>\n<pre>\n<span style=\"line-height: 20.7999992370605px;\">&lt;dict&gt;<\/span>\n<span style=\"line-height: 20.7999992370605px;\">        <\/span><span style=\"line-height: 20.7999992370605px;\">&lt;key&gt;Kernel Flags&lt;\/key&gt;<\/span>\n<span style=\"line-height: 20.7999992370605px;\">        <\/span><span style=\"line-height: 20.7999992370605px;\">&lt;string&gt;kext-dev-mode=1&lt;\/string&gt;<\/span>\n<span style=\"line-height: 20.7999992370605px;\">\u200b<\/span><span style=\"line-height: 20.7999992370605px;\">&lt;\/dict&gt;<\/span><\/pre>\n<p>\n\tAfter that, reboot your machine. <strong>The above modifications disable&nbsp;kext-signing system-wide!!!<\/strong>\n<\/p>\n<p>\n\tAfter the reboot open the terminal again and enter\n<\/p>\n<pre>\n# sudo su\n# cd \/System\/Library\/Extensions\/IOAHCIFamily.kext\n# cd Contents\/PlugIns\/IOAHCIBlockStorage.kext\/Contents\/MacOS\n# cp IOAHCIBlockStorage IOAHCIBlockStorage.backup\n# perl -pi -e &#39;s|\\x00\\x41\\x50\\x50\\x4c\\x45\\x20\\x53\\x53\\x44\\x00|\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00|sg&#39; IOAHCIBlockStorage\n# touch \/System\/Library\/Extensions\/\n# kextcache -prelinked-kernel \/System\/Library\/Caches\/com.apple.kext.caches\/Startup\/kernelcache -K \/System\/Library\/Kernels\/kernel \/System\/Library\/Extensions<\/pre>\n<p>\n\tthen reboot again and everything should be fine again \ud83d\ude09\n<\/p>\n<p>\n\tmore infos <a href=\"http:\/\/www.cindori.org\/trim-enabler-and-yosemite\/\" target=\"_blank\">here<\/a>\n<\/p>\n<p>\n\t<strong>UPDATE:<\/strong>\n<\/p>\n<p>\n\tStarting with OSX 10.10.5 you have a built-in command to enable TRIM. Instead of manipulating the file IOAHCIBlockStorage, open the terminal and enter following command:\n<\/p>\n<pre>\n# sudo trimforce enable<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Now after releasing the newest apple operating system i had some problems with the TRIM command for SSDs. As many of you know, apple keeps their IOAHCI driver for themself so that no other company can write a kernel extension. And as a plus they integrated a kext signing mechanism into Yosemite which leads to [&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-657","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\/657","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=657"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}