{"id":147,"date":"2015-08-29T17:33:47","date_gmt":"2015-08-29T17:33:47","guid":{"rendered":"http:\/\/onebyte.org\/blog\/?p=147"},"modified":"2015-09-05T02:05:20","modified_gmt":"2015-09-05T02:05:20","slug":"pfsense-wont-boot-after-power-failure","status":"publish","type":"post","link":"https:\/\/www.onebyte.org\/blog\/2015\/08\/29\/pfsense-wont-boot-after-power-failure\/","title":{"rendered":"PFSense &#8211; won&#8217;t boot after power failure"},"content":{"rendered":"<p><strong>Problem<\/strong>: I left on vacation and I left all my devices plugged in and online. During my absence the wonderful Florida power grid did it&#8217;s thing and intermittently decided to work. This brought my firewall down dirty and offline never to be seen again.<\/p>\n<p><strong>Model<\/strong>: <a href=\"http:\/\/store.netgate.com\/APU4.aspx\" target=\"_blank\">NetGate APU4<\/a><\/p>\n<p>I had to grab my handy USB to SERIAL cable and use putty to connect in. When connected it would just show the below and not progress.\u00a0<em>Note: remember to review your device manager and insure you&#8217;re typing in the correct COM port.<\/em><\/p>\n<pre class=\"lang:default decode:true\">Configuring crash dumps...\r\n** SU+J Recovering \/dev\/ufs\/pfsense1\r\n** Reading 13258752 byte journal from inode 4.\r\n** Building recovery table.\r\n** Resolving unreferenced inode list.\r\n** Processing journal entries.\r\n\/dev\/ufs\/pfsense1: Block missing from ino 133903 at lbn 13\r\n\/dev\/ufs\/pfsense1: UNEXPECTED SU+J INCONSISTENCY\r\n\/dev\/ufs\/pfsense1: INTERNAL ERROR: GOT TO reply()\r\n\/dev\/ufs\/pfsense1: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY.\r\nFilesystems are clean, continuing...\r\nMounting filesystems...\r\nmount: \/dev\/ufs\/pfsense1: R\/W mount of \/ denied. Filesystem is not clean - run fsck. Forced mount will invalidate journal contents: Op                     eration not permitted\r\nmount: \/dev\/ufs\/cf: R\/W mount of \/cf denied. Filesystem is not clean - run fsck.: Operation not permitted\r\nSetting up memory disks... done.\r\npwd_mkdb: \/etc\/\/pwd.db.tmp: Read-only file system\r\n\r\n     ___\r\n ___\/ f \\\r\n\/ p \\___\/ Sense\r\n\\___\/   \\\r\n    \\___\/\r\n\r\nWelcome to pfSense 2.2.3-RELEASE  ...\r\n\r\ncp: \/var\/db\/pbi\/keys\/pfSense-BETA.ssl: Read-only file system\r\nCreating symlinks......ELF ldconfig path: \/lib \/usr\/lib \/usr\/lib\/compat \/usr\/local\/lib\r\n32-bit compatibility ldconfig path: \/usr\/lib32\r\ndone.\r\ncap_mkdb: \/etc\/login.conf.db: Read-only file system<\/pre>\n<p>After reading through I figured I&#8217;d attempt to run fsck. However after running it I received:<\/p>\n<pre class=\"lang:default decode:true\">fsck\r\n^CAug 29 15:35:27 init: \/bin\/sh on \/etc\/rc terminated abnormally, going to single user mode\r\nEnter full pathname of shell or RETURN for \/bin\/sh: fsck\r\nAug 29 15:35:31 init: can't exec run fsck for single user: No such file or directory<\/pre>\n<p>Next I forced a file system check<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_147_1('footnote_plugin_reference_147_1_1');\" onkeypress=\"footnote_moveToReference_147_1('footnote_plugin_reference_147_1_1');\" ><sup id=\"footnote_plugin_tooltip_147_1_1\" class=\"footnote_plugin_tooltip_text\">[1]<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_147_1_1\" class=\"footnote_tooltip\"><a href=\"https:\/\/doc.pfsense.org\/index.php\/Forcing_a_Filesystem_Check\" target=\"_blank\"><span class=\"footnote_url_wrap\">https:\/\/doc.pfsense.org\/index.php\/Forcing_a_Filesystem_Check<\/span><\/a><\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_147_1_1').tooltip({ tip: '#footnote_plugin_tooltip_text_147_1_1', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [-7, 0], });<\/script>\n<pre class=\"lang:default decode:true\"># touch \/root\/force_fsck\r\ntouch: \/root\/force_fsck: Read-only file system\r\n# \/etc\/rc.conf_mount_rw\r\n# touch \/root\/force_fsck\r\n# \/etc\/rc.conf_mount_ro<\/pre>\n<p>After completing the above and rebooting it came right up with further issues. Saved me from having to flash the CF \ud83d\ude42<\/p>\n<div class=\"speaker-mute footnotes_reference_container\"> <div class=\"footnote_container_prepare\"><p><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_label pointer\" onclick=\"footnote_expand_collapse_reference_container_147_1();\">Notes & References<\/span><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_collapse_button\" style=\"display: none;\" onclick=\"footnote_expand_collapse_reference_container_147_1();\">[<a id=\"footnote_reference_container_collapse_button_147_1\">+<\/a>]<\/span><\/p><\/div> <div id=\"footnote_references_container_147_1\" style=\"\"><table class=\"footnotes_table footnote-reference-container\"><caption class=\"accessibility\">Notes & References<\/caption> <tbody> \r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_147_1('footnote_plugin_tooltip_147_1_1');\"><a id=\"footnote_plugin_reference_147_1_1\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>1<\/a><\/th> <td class=\"footnote_plugin_text\"><a href=\"https:\/\/doc.pfsense.org\/index.php\/Forcing_a_Filesystem_Check\" target=\"_blank\"><span class=\"footnote_url_wrap\">https:\/\/doc.pfsense.org\/index.php\/Forcing_a_Filesystem_Check<\/span><\/a><\/td><\/tr>\r\n\r\n <\/tbody> <\/table> <\/div><\/div><script type=\"text\/javascript\"> function footnote_expand_reference_container_147_1() { jQuery('#footnote_references_container_147_1').show(); jQuery('#footnote_reference_container_collapse_button_147_1').text('\u2212'); } function footnote_collapse_reference_container_147_1() { jQuery('#footnote_references_container_147_1').hide(); jQuery('#footnote_reference_container_collapse_button_147_1').text('+'); } function footnote_expand_collapse_reference_container_147_1() { if (jQuery('#footnote_references_container_147_1').is(':hidden')) { footnote_expand_reference_container_147_1(); } else { footnote_collapse_reference_container_147_1(); } } function footnote_moveToReference_147_1(p_str_TargetID) { footnote_expand_reference_container_147_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } } function footnote_moveToAnchor_147_1(p_str_TargetID) { footnote_expand_reference_container_147_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } }<\/script>","protected":false},"excerpt":{"rendered":"<p>Problem: I left on vacation and I left all my devices plugged in and online. During my absence the wonderful Florida power grid did it&#8217;s thing and intermittently decided to work. This brought my firewall down dirty and offline never to be seen again. Model: NetGate APU4 I had to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":98,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[3],"tags":[11,10],"class_list":["post-147","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-firewall","tag-pfsense"],"uagb_featured_image_src":{"full":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix.png",921,311,false],"thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix-150x150.png",150,150,true],"medium":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix-300x101.png",300,101,true],"medium_large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix.png",768,259,false],"large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix.png",921,311,false],"1536x1536":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix.png",921,311,false],"2048x2048":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix.png",921,311,false],"post-thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix.png",921,311,false],"modality-logo":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/bsd_nix.png",237,80,false]},"uagb_author_info":{"display_name":"Mr-Moo","author_link":"https:\/\/www.onebyte.org\/blog\/author\/ahess\/"},"uagb_comment_info":0,"uagb_excerpt":"Problem: I left on vacation and I left all my devices plugged in and online. During my absence the wonderful Florida power grid did it&#8217;s thing and intermittently decided to work. This brought my firewall down dirty and offline never to be seen again. Model: NetGate APU4 I had to [&hellip;]","_links":{"self":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":2,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions\/171"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media\/98"}],"wp:attachment":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}