{"id":2705,"date":"2019-05-28T23:53:12","date_gmt":"2019-05-28T15:53:12","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2705"},"modified":"2019-05-28T23:53:12","modified_gmt":"2019-05-28T15:53:12","slug":"e2fsck","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/e2fsck","title":{"rendered":"e2fsck\u547d\u4ee4 – \u68c0\u67e5\u4f7f\u7528 Linux ext2\u6863\u6848\u7cfb\u7edf\u7684partition\u662f\u5426\u6b63\u5e38\u5de5\u4f5c"},"content":{"rendered":"\n
e2fsck\u547d\u4ee4\u7528\u4e8e\u68c0\u67e5\u4f7f\u7528 Linux ext2 \u6863\u6848\u7cfb\u7edf\u7684 partition \u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002 e2fsck\u547d\u4ee4\u53ef\u4ee5\u68c0\u67e5ext2\u3001ext3\u3001ext4\u6587\u4ef6\u7cfb\u7edf\uff0c\u5982\u679c\u7cfb\u7edf\u5df2\u7ecf\u6302\u8f7d\u4e86\uff0c\u90a3\u4e48\u4e0d\u5efa\u8bae\u53bb\u68c0\u67e5\uff0c\u56e0\u4e3a\u8fd9\u6837\u662f\u4e0d\u5b89\u5168\u7684\u3002\u6b64\u547d\u4ee4\u7684\u9002\u7528\u8303\u56f4\uff1aRedHat\u3001RHEL\u3001Ubuntu\u3001CentOS\u3001SUSE\u3001openSUSE\u3001Fedora\u3002 <\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> e2fsck [\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 \u68c0\u67e5 \/dev\/hda5 \u662f\u5426\u6b63\u5e38\uff0c\u5982\u679c\u6709\u5f02\u5e38\u4fbf\u81ea\u52a8\u4fee\u590d\uff0c\u5e76\u4e14\u8bbe\u5b9a\u82e5\u6709\u95ee\u7b54\uff0c\u5747\u56de\u7b54[\u662f]: <\/p>\n\n\n\n e2fsck\u547d\u4ee4\u7528\u4e8e\u68c0\u67e5\u4f7f\u7528 Linux ext2 \u6863\u6848\u7cfb\u7edf\u7684 partition \u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002 e2fsc […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2705"}],"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=2705"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2705\/revisions"}],"predecessor-version":[{"id":2900,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2705\/revisions\/2900"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}device<\/td> \u9884\u5907\u68c0\u67e5\u7684\u786c\u76d8 partition\uff0c\u4f8b\u5982\uff1a\/dev\/sda1 <\/td><\/tr> -b <\/td> \u8bbe\u5b9a\u5b58\u653e superblock \u7684\u4f4d\u7f6e <\/td><\/tr> -B <\/td> \u8bbe\u5b9a\u5355\u4f4d block \u7684\u5927\u5c0f <\/td><\/tr> -c <\/td> \u68c0\u67e5\u8be5partition \u662f\u5426\u6709\u574f\u8f68 <\/td><\/tr> -C file <\/td> \u5c06\u68c0\u67e5\u7684\u7ed3\u679c\u5b58\u5230 file \u4e2d\u4ee5\u4fbf\u67e5\u770b <\/td><\/tr> -d <\/td> \u5217\u5370 e2fsck \u7684 debug \u7ed3\u679c <\/td><\/tr> -f <\/td> \u5f3a\u5236\u68c0\u67e5 <\/td><\/tr> -F <\/td> \u5728\u5f00\u59cb\u68c0\u67e5\u524d\uff0c\u5c06device \u7684 buffer cache \u6e05\u7a7a\uff0c\u907f\u514d\u6709\u9519\u8bef\u53d1\u751f <\/td><\/tr> -l bad_blocks_file <\/td> \u5c06\u6709\u574f\u8f68\u7684block\u8d44\u6599\u52a0\u5230 bad_blocks_file \u91cc\u9762 <\/td><\/tr> -L bad_blocks_file <\/td> \u8bbe\u5b9a\u574f\u8f68\u7684block\u8d44\u6599\u5b58\u5230 bad_blocks_file \u91cc\u9762\uff0c\u82e5\u65e0\u8be5\u6863\u5219\u81ea\u52a8\u4ea7\u751f <\/td><\/tr> -n <\/td> \u5c06\u6863\u6848\u7cfb\u7edf\u4ee5[\u552f\u8bfb]\u65b9\u5f0f\u5f00\u542f <\/td><\/tr> -p <\/td> \u5bf9 partition \u505a\u68c0\u67e5\uff0c\u82e5\u6709\u95ee\u9898\u4fbf\u81ea\u52a8\u4fee\u590d <\/td><\/tr> -v <\/td> \u8be6\u7ec6\u663e\u793a\u6a21\u5f0f <\/td><\/tr> -V <\/td> \u663e\u793a\u51fa\u76ee\u524d e2fsck \u7684\u7248\u672c <\/td><\/tr> -y <\/td> \u9884\u5148\u8bbe\u5b9a\u6240\u6709\u68c0\u67e5\u65f6\u7684\u95ee\u9898\u5747\u56de\u7b54[\u662f] <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# e2fsck -a -y \/dev\/hda5 <\/pre>\n","protected":false},"excerpt":{"rendered":"