{"id":8039,"date":"2020-06-22T15:31:21","date_gmt":"2020-06-22T07:31:21","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8039"},"modified":"2022-05-17T13:14:16","modified_gmt":"2022-05-17T05:14:16","slug":"fstrim","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/fstrim","title":{"rendered":"fstrim\u547d\u4ee4 – \u56de\u6536\u6587\u4ef6\u7cfb\u7edf\u4e2d\u672a\u4f7f\u7528\u7684\u5757\u8d44\u6e90"},"content":{"rendered":"\n

fstrim\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cfilesystem trim\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u56de\u6536\u6587\u4ef6\u7cfb\u7edf\u4e2d\u672a\u4f7f\u7528\u7684\u5757\u8d44\u6e90\u3002fstrim\u547d\u4ee4\u5bf9\u56fa\u6001\u786c\u76d8\u548c\u7cbe\u7b80\u914d\u7f6e\u7684\u5b58\u50a8\u8bbe\u5907\u610f\u4e49\u8f83\u5927\uff0c\u6709\u4e00\u5b9a\u63d0\u9ad8\u9a71\u52a8\u5668\u8bfb\u5199\u6548\u7387\uff0c\u5ef6\u957f\u4f7f\u7528\u5bff\u547d\u7684\u4f5c\u7528\uff0c\u5f53\u7136\u8bbe\u5907\u4e00\u5b9a\u8981\u5df2\u652f\u6301TRIM\u624d\u884c\u54e6~\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>fstrim [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-a<\/td>\u56de\u6536\u6240\u6709\u5df2\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u4e0a\u7684\u672a\u4f7f\u7528\u7a7a\u95f4<\/td><\/tr>
-o<\/td>\u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u4e0a\u641c\u7d22\u7a7a\u95f2\u5757\u7684\u8d77\u70b9<\/td><\/tr>
-l<\/td>\u8bbe\u7f6e\u5728\u591a\u5927\u8303\u56f4\u5185\u641c\u7d22\u7a7a\u95f2\u5757<\/td><\/tr>
-v<\/td>\u8f93\u51fa\u56de\u6536\u8fc7\u7a0b\u4e2d\u7684\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u56de\u6536\u5f53\u524d\u7cfb\u7edf\u4e0a\u6240\u6709\u5df2\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u672a\u4f7f\u7528\u7a7a\u95f4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# fstrim -a<\/pre>\n\n\n\n

\u56de\u6536\u5f53\u524d\u7cfb\u7edf\u4e0a\u6240\u6709\u5df2\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u672a\u4f7f\u7528\u7a7a\u95f4\uff0c\u5e76\u663e\u793a\u8be6\u7ec6\u7684\u8fc7\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# fstrim -a -v<\/pre>\n","protected":false},"excerpt":{"rendered":"

fstrim\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cfilesystem trim\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u56de\u6536\u6587\u4ef6\u7cfb\u7edf\u4e2d\u672a\u4f7f\u7528\u7684\u5757\u8d44\u6e90\u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8039"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8039"}],"version-history":[{"count":14,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8039\/revisions"}],"predecessor-version":[{"id":9792,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8039\/revisions\/9792"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}