{"id":5670,"date":"2020-07-24T09:30:26","date_gmt":"2020-07-24T01:30:26","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=5670"},"modified":"2020-08-24T17:23:38","modified_gmt":"2020-08-24T09:23:38","slug":"pfsense%e5%af%b9%e7%a3%81%e7%9b%98%e6%a3%80%e6%9f%a5%e9%94%99%e8%af%af%e8%bf%9b%e8%a1%8c%e6%95%85%e9%9a%9c%e6%8e%92%e9%99%a4fsck","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=5670","title":{"rendered":"pfSense\u624b\u52a8\u78c1\u76d8\u9519\u8bef\u68c0\u67e5(fsck)"},"content":{"rendered":"<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0cpfSense\u9632\u706b\u5899\u53ef\u80fd\u4f1a\u5728\u542f\u52a8\u65f6\u68c0\u6d4b\u5230\u6587\u4ef6\u7cfb\u7edf\u95ee\u9898\u5e76\u5728\u63a7\u5236\u53f0\u4e0a\u663e\u793a\u9519\u8bef\uff1a<\/p>\n<div class=\"highlight-default notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"n\">Disk<\/span> <span class=\"ow\">is<\/span> <span class=\"n\">dirty<\/span><span class=\"p\">,<\/span> <span class=\"n\">running<\/span> <span class=\"n\">fsck<\/span> <span class=\"o\">-<\/span><span class=\"n\">y<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<p>\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u7684\u6700\u53ef\u80fd\u539f\u56e0\u662f\u975e\u6b63\u5e38\u5173\u673a\uff0c\u4f8b\u5982\u65ad\u7535\u3002\u867d\u7136\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u8fd9\u5e76\u4e0d\u4f1a\u6709\u4ec0\u4e48\u5f71\u54cd\uff0c\u81ea\u68c0\u4f1a\u5b8c\u6210\u5e76\u81ea\u52a8\u7ea0\u6b63\u9519\u8bef\u3002<\/p>\n<div id=\"manually-run-fsck\" class=\"section\">\n<h1>\u624b\u52a8\u8fd0\u884cfsck<\/h1>\n<p>\u4f46\u5728\u6781\u5c11\u6570\u60c5\u51b5\u4e0b\uff0c\u9632\u706b\u5899\u53ef\u80fd\u9700\u8981\u4ee5\u5355\u7528\u6237(<strong>Single User<\/strong>)\u6a21\u5f0f\u542f\u52a8\uff0c\u5728\u6b64\u6a21\u5f0f\u4e0b\u8fd0\u884c<code class=\"docutils literal notranslate\"><span class=\"pre\">fsck<\/span><\/code>\u547d\u4ee4\u6765\u624b\u52a8\u68c0\u78c1\u76d8\u9519\u8bef\uff0c\u76f4\u81f3\u6ca1\u6709\u53d1\u73b0\u6216\u89e3\u51b3\u4e86\u6240\u6709\u95ee\u9898\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check0.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5671\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check0.png\" alt=\"\" width=\"745\" height=\"369\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check0.png 745w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check0-300x149.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check0-500x248.png 500w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/a><\/p>\n<div class=\"highlight-default notranslate\">\n<div class=\"highlight\">\n<pre><span class=\"c1\"># fsck -y \/<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">\u6ce8\u610f\uff1a\u91cd\u590d\u8be5\u547d\u4ee4\uff0c\u76f4\u5230<code class=\"docutils literal notranslate\"><span class=\"pre\">fsck<\/span><\/code>\u8fd0\u884c\u65f6\u65e2\u672a\u627e\u5230\u95ee\u9898\u4e5f\u672a\u89e3\u51b3\u95ee\u9898\u3002\u4fee\u590d\u95ee\u9898\u540e\u5982\u679c\u51fa\u73b0\u5df2\u6e05\u7406\u6587\u4ef6\u7cfb\u7edf\u65f6\u4e0d\u8981\u505c\u6b62\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5672\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check1.png\" alt=\"\" width=\"724\" height=\"527\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check1.png 724w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check1-300x218.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check1-412x300.png 412w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/a><\/p>\n<p>\u786e\u8ba4\u78c1\u76d8\u9519\u8bef\u5df2\u5b8c\u5168\u89e3\u51b3\u540e\uff0c\u6267\u884c\u91cd\u542f\u547d\u4ee4\uff1a<\/p>\n<pre><span class=\"c1\"># \/sbin\/reboot \/<\/span><\/pre>\n<\/div>\n<\/div>\n<div id=\"forcing-an-automatic-check\" class=\"section\">\n<h2><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5673\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check2.png\" alt=\"\" width=\"775\" height=\"318\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check2.png 775w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check2-300x123.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check2-768x315.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/How-to-Run-a-pfSense-Software-File-System-Check2-500x205.png 500w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/a><\/h2>\n<h1>\u5f3a\u5236\u81ea\u52a8\u68c0\u67e5<\/h1>\n<p>\u5982\u679c\u7cfb\u7edf\u6210\u529f\u542f\u52a8\uff0c\u4f46\u6000\u7591\u5b58\u5728\u6587\u4ef6\u7cfb\u7edf\u95ee\u9898\uff0c\u8bf7\u8fde\u63a5\u5230\u63a7\u5236\u53f0\u6216SSH\uff0c\u5e76\u4f7f\u7528\u91cd\u65b0\u542f\u52a8\u83dc\u5355\u9009\u9879\uff08<code class=\"docutils literal notranslate\"><span class=\"pre\">5<\/span><\/code>\uff09\uff0c\u7136\u540e\u8f93\u5165<code class=\"docutils literal notranslate\"><span class=\"pre\">F<\/span><\/code>\u91cd\u65b0\u542f\u52a8\u5e76\u5f3a\u5236\u6267\u884c\u6587\u4ef6\u7cfb\u7edf\u68c0\u67e5\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/ssh233235.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5674\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/ssh233235.png\" alt=\"\" width=\"755\" height=\"474\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/ssh233235.png 755w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/ssh233235-300x188.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/07\/ssh233235-478x300.png 478w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0cpfSense\u9632\u706b\u5899\u53ef\u80fd\u4f1a\u5728\u542f\u52a8\u65f6\u68c0\u6d4b\u5230\u6587\u4ef6\u7cfb\u7edf\u95ee\u9898\u5e76\u5728\u63a7\u5236\u53f0\u4e0a\u663e &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=5670\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[110],"class_list":["post-5670","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-fsck"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/5670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5670"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/5670\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}