{"id":432,"date":"2017-08-16T09:23:53","date_gmt":"2017-08-16T01:23:53","guid":{"rendered":"https:\/\/blog.haostudio.net\/hwp\/?p=432"},"modified":"2017-08-23T13:48:21","modified_gmt":"2017-08-23T05:48:21","slug":"use-trim-command-for-ssd-under-linux","status":"publish","type":"post","link":"https:\/\/blog.haostudio.net\/hwp\/use-trim-command-for-ssd-under-linux\/","title":{"rendered":"Use trim command for SSD under linux"},"content":{"rendered":"<!--more-->\n<h3>Modify \/etc\/fstab<\/h3>\n<p>Add\n<strong>discard<\/strong> options in \/etc\/fstab as below<\/p>\n<pre><code>UUID=2741f09c-7667-4b4a-88da-f2db826c12345 \/               ext4    defaults,discard,noatime,nodiratime,commit=600,errors=remount-ro   0       1\n<\/code><\/pre>\n<h3>Use command to trim SSD<\/h3>\n<pre><code># fstrim -a -v\n  \/: 811.9 GiB (871748583424 bytes) trimmed\n<\/code><\/pre>\n<p>Ref : <a href=\"https:\/\/wiki.debian.org\/SSDOptimization\">Debian SSDOptimization<\/a><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[98,96,97],"class_list":["post-432","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-ssd","tag-trim"],"_links":{"self":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":7,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/posts\/432\/revisions\/444"}],"wp:attachment":[{"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.haostudio.net\/hwp\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}