{"id":1171,"date":"2019-04-25T12:30:40","date_gmt":"2019-04-25T04:30:40","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1171"},"modified":"2022-05-26T14:53:59","modified_gmt":"2022-05-26T06:53:59","slug":"fsck","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/fsck","title":{"rendered":"fsck\u547d\u4ee4 – \u68c0\u67e5\u4e0e\u4fee\u590d\u6587\u4ef6\u7cfb\u7edf"},"content":{"rendered":"\n

fsck\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cfilesystem check\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u68c0\u67e5\u4e0e\u4fee\u590d\u6587\u4ef6\u7cfb\u7edf\u3002\u82e5\u7cfb\u7edf\u6709\u8fc7\u7a81\u7136\u65ad\u7535\u6216\u78c1\u76d8\u5f02\u5e38\u7684\u60c5\u51b5\uff0c\u5efa\u8bae\u4f7f\u7528fsck\u547d\u4ee4\u5bf9\u6587\u4ef6\u7cfb\u7edf\u8fdb\u884c\u68c0\u67e5\u4e0e\u4fee\u590d\uff0c\u4ee5\u9632\u6570\u636e\u4e22\u5931\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>fsck [\u53c2\u6570] \u6587\u4ef6\u7cfb\u7edf<\/p>\n\n\n\n

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

-a<\/td>\u81ea\u52a8\u4fee\u590d\u6587\u4ef6\u7cfb\u7edf<\/td><\/tr>
-f<\/td>\u5f3a\u5236\u68c0\u67e5<\/td><\/tr>
-A<\/td>\u4f9d\u7167\/etc\/fstab\u6587\u4ef6\u6765\u68c0\u67e5\u5168\u90e8\u6587\u4ef6\u7cfb\u7edf<\/td><\/tr>
-N<\/td>\u4e0d\u6267\u884c\u6307\u4ee4\uff0c\u4ec5\u5217\u51fa\u5b9e\u9645\u6267\u884c\u4f1a\u8fdb\u884c\u7684\u52a8\u4f5c<\/td><\/tr>
-r<\/td>\u91c7\u7528\u4e92\u52a8\u6a21\u5f0f\uff0c\u5728\u6267\u884c\u4fee\u590d\u65f6\u8be2\u95ee\u95ee\u9898<\/td><\/tr>
-R<\/td>\u7565\u8fc7\u6307\u5b9a\u7684\u6587\u4ef6\u7cfb\u7edf\u4e0d\u4e88\u68c0\u67e5<\/td><\/tr>
-t<\/td>\u6307\u5b9a\u8981\u68c0\u67e5\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b<\/td><\/tr>
-T<\/td>\u6267\u884cfsck\u6307\u4ee4\u65f6\uff0c\u4e0d\u663e\u793a\u6807\u9898\u4fe1\u606f<\/td><\/tr>
-V<\/td>\u663e\u793a\u6307\u4ee4\u6267\u884c\u8fc7\u7a0b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u68c0\u67e5\u662f\u5426\u7684\u6587\u4ef6\u7cfb\u7edf\u662f\u5426\u6709\u635f\u574f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# fsck \/dev\/sdb<\/strong>\nfsck from util-linux 2.32.1\ne2fsck 1.44.3 (10-July-2018)\n\/dev\/sdb: clean, 11\/1310720 files, 126322\/5242880 blocks<\/pre>\n\n\n\n

\u5f3a\u5236\u68c0\u67e5\u6587\u4ef6\u7cfb\u7edf\u7684\u635f\u574f\u60c5\u51b5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# fsck -f \/dev\/sdb<\/strong>\r\nfsck from util-linux 2.32.1\r\ne2fsck 1.44.3 (10-July-2018)\r\nPass 1: Checking inodes, blocks, and sizes\r\nPass 2: Checking directory structure\r\nPass 3: Checking directory connectivity\r\nPass 4: Checking reference counts\r\nPass 5: Checking group summary information\r\n\/dev\/sdb: 11\/1310720 files (0.0% non-contiguous), 126322\/5242880 blocks\r<\/pre>\n","protected":false},"excerpt":{"rendered":"

fsck\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cfilesystem check\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u68c0\u67e5\u4e0e\u4fee\u590d\u6587\u4ef6\u7cfb\u7edf\u3002\u82e5\u7cfb\u7edf\u6709 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1171"}],"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=1171"}],"version-history":[{"count":20,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1171\/revisions"}],"predecessor-version":[{"id":10075,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1171\/revisions\/10075"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}