{"id":4140,"date":"2019-07-23T17:02:25","date_gmt":"2019-07-23T09:02:25","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4140"},"modified":"2019-07-26T23:46:12","modified_gmt":"2019-07-26T15:46:12","slug":"tune2fs","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/tune2fs","title":{"rendered":"tune2fs\u547d\u4ee4 – \u6587\u4ef6\u7cfb\u7edf\u7ba1\u7406"},"content":{"rendered":"\n
tune2fs\u547d\u4ee4\u5141\u8bb8\u7cfb\u7edf\u7ba1\u7406\u5458\u8c03\u6574\u201cext2\/ext3\/ext4\u201d\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u53ef\u8be5\u53c2\u6570\u3002Windows\u4e0b\u9762\u5982\u679c\u51fa\u73b0\u610f\u5916\u65ad\u7535\u6b7b\u673a\u60c5\u51b5\uff0c\u4e0b\u6b21\u5f00\u673a\u4e00\u822c\u90fd\u4f1a\u51fa\u73b0\u7cfb\u7edf\u81ea\u68c0\u3002Linux\u7cfb\u7edf\u4e0b\u9762\u4e5f\u6709\u6587\u4ef6\u7cfb\u7edf\u81ea\u68c0\uff0c\u800c\u4e14\u662f\u53ef\u4ee5\u901a\u8fc7tune2fs\u547d\u4ee4\uff0c\u81ea\u884c\u5b9a\u4e49\u81ea\u68c0\u5468\u671f\u53ca\u65b9\u5f0f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>tune2fs [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u67e5\u770b\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u8bbe\u7f6e\u5f3a\u5236\u68c0\u67e5\u524d\u6587\u4ef6\u7cfb\u7edf\u53ef\u4ee5\u6302\u8f7d\u7684\u6b21\u6570\uff1a<\/p>\n\n\n\n 10\u5929\u540e\u68c0\u67e5\uff1a<\/p>\n\n\n\n 1\u5929\u540e\u68c0\u67e5\uff1a<\/p>\n\n\n\n 3\u5468\u540e\u68c0\u67e5\uff1a<\/p>\n\n\n\n \u534a\u5e74\u540e\u68c0\u67e5\uff1a<\/p>\n\n\n\n \u7981\u7528\u65f6\u95f4\u68c0\u67e5\uff1a<\/p>\n\n\n\n \u6dfb\u52a0\u65e5\u5fd7\u529f\u80fd\uff0c\u5c06ext2\u8f6c\u6362\u6210ext3\u6587\u4ef6\u7cfb\u7edf\uff1a<\/p>\n\n\n\n \u8c03\u6574\/dev\/sdb1\u5206\u533a\u7684\u4fdd\u7559\u7a7a\u95f4\u4e3a40000\u4e2a\u78c1\u76d8\u5757\uff1a<\/p>\n\n\n\n \u8bbe\u7f6e\/dev\/sdb1\u6302\u8f7d\u9009\u9879\uff0c\u542f\u7528Posix Access Control Lists\u548c\u7528\u6237\u6307\u5b9a\u7684\u6269\u5c55\u5c5e\u6027\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" tune2fs\u547d\u4ee4\u5141\u8bb8\u7cfb\u7edf\u7ba1\u7406\u5458\u8c03\u6574\u201cext2\/ext3\/ext4\u201d\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u53ef\u8be5\u53c2\u6570\u3002Windows\u4e0b\u9762\u5982 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4140"}],"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=4140"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4140\/revisions"}],"predecessor-version":[{"id":4301,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4140\/revisions\/4301"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-c<\/td> \u8c03\u6574\u6700\u5927\u52a0\u8f7d\u6b21\u6570<\/td><\/tr> -C<\/td> \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u5df2\u7ecf\u88ab\u52a0\u8f7d\u7684\u6b21\u6570<\/td><\/tr> -e<\/td> \u8bbe\u7f6e\u5185\u6838\u4ee3\u7801\u68c0\u6d4b\u5230\u9519\u8bef\u65f6\u7684\u884c\u4e3a<\/td><\/tr> -f<\/td> \u5f3a\u5236\u6267\u884c\u4fee\u6539\uff0c\u5373\u4f7f\u53d1\u751f\u9519\u8bef<\/td><\/tr> -i<\/td> \u8bbe\u7f6e\u76f8\u90bb\u4e24\u6b21\u6587\u4ef6\u7cfb\u7edf\u68c0\u67e5\u7684\u76f8\u9694\u65f6\u95f4<\/td><\/tr> -j<\/td> \u4e3a\u201cext2\u201d\u6587\u4ef6\u7cfb\u7edf\u6dfb\u52a0\u65e5\u5fd7\u529f\u80fd\uff0c\u5c06\u5176\u8f6c\u6362\u4e3a\u201cext3\u201d\u6587\u4ef6\u7cfb\u7edf<\/td><\/tr> -l<\/td> \u663e\u793a\u6587\u4ef6\u8d85\u7ea7\u5757\u5185\u5bb9<\/td><\/tr> -L<\/td> \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u5377\u6807<\/td><\/tr> -m<\/td> \u663e\u793a\u6587\u4ef6\u4fdd\u7559\u5757\u7684\u767e\u5206\u6bd4<\/td><\/tr> -M<\/td> \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6700\u540e\u88ab\u52a0\u8f7d\u5230\u7684\u76ee\u5f55<\/td><\/tr> -o<\/td> \u8bbe\u7f6e\u6216\u6e05\u9664\u6587\u4ef6\u7cfb\u7edf\u52a0\u8f7d\u7684\u7279\u6027\u6216\u9009\u9879<\/td><\/tr> -O<\/td> \u8bbe\u7f6e\u6216\u6e05\u9664\u6587\u4ef6\u7cfb\u7edf\u7684\u7279\u6027\u6216\u9009\u9879<\/td><\/tr> -r<\/td> \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u4fdd\u7559\u5757\u7684\u5927\u5c0f<\/td><\/tr> -T<\/td> \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u4e0a\u6b21\u88ab\u68c0\u67e5\u7684\u65f6\u95f4<\/td><\/tr> -u<\/td> \u8bbe\u7f6e\u53ef\u4ee5\u4f7f\u7528\u6587\u4ef6\u7cfb\u7edf\u4fdd\u7559\u5757\u7684\u7528\u6237<\/td><\/tr> -U<\/td> \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u7684UUID<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# tune2fs -l \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -c 30 \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -i 10 \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -i 1d \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -i 3w \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -i 6m \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -i 0 \/dev\/sdb1 <\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -j \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -r 40000 \/dev\/sdb1<\/pre>\n\n\n\n
[root@linuxcool ~]# tune2fs -o acl,user_xattr \/dev\/sdb1<\/pre>\n\n\n\n