{"id":2543,"date":"2012-06-04T18:05:28","date_gmt":"2012-06-04T18:05:28","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=2543"},"modified":"2017-06-26T10:07:55","modified_gmt":"2017-06-26T10:07:55","slug":"run-fsck-in-rescue-mode","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/run-fsck-in-rescue-mode\/","title":{"rendered":"RUN FSCK in rescue mode"},"content":{"rendered":"<p><script type=\"text\/javascript\">\/\/ < ![CDATA[ var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27772211-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text\/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https:\/\/ssl' : 'http:\/\/www') + '.google-analytics.com\/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); \/\/ ]]><\/script><\/p>\n<p><script type=\"text\/javascript\">\/\/ < ![CDATA[ google_ad_client = \"ca-pub-1685490665026631\"; \/* text small banner *\/ google_ad_slot = \"4069393454\"; google_ad_width = 468; google_ad_height = 60; \/\/ ]]><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\/\/ < ![CDATA[ \/\/ ]]><\/script><br \/>\nThe server required the file system check &#8220;fsck&#8221; but we can&#8217;t run it because we have lost or don&#8217;t know the server root password, in that case case we can reboot the server by using the rescue mode, now a days all the servers are using the ext4 file system therefore simple fsck command won&#8217;t. To run the FSCK on ext4 file system server refer to the following steps.<\/p>\n<p>1st) Login in to server with the rescue mode password and install e4fsprogs module.<\/p>\n<blockquote><p><strong>yum install e4fsprogs -y<\/strong><\/p><\/blockquote>\n<p>2nd) Now check the partition by running the command<\/p>\n<blockquote><p><strong>fdisk -l<\/strong><\/p><\/blockquote>\n<p>3rd) Now run the fsck by using the proper hard dirve partition one by one.<\/p>\n<p><script type=\"text\/javascript\">\/\/ < ![CDATA[ google_ad_client = \"ca-pub-1685490665026631\"; \/* text small banner *\/ google_ad_slot = \"4069393454\"; google_ad_width = 468; google_ad_height = 60; \/\/ ]]><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\/\/ < ![CDATA[ \/\/ ]]><\/script><\/p>\n<blockquote><p><strong>e4fsck -y -C0 \/dev\/sda1<\/strong><\/p>\n<p><strong>e4fsck -y -C0 \/dev\/sda2<\/strong><\/p>\n<p><strong>..etc<\/strong><\/p><\/blockquote>\n<p>4th) Once FSCK completed, reboot the server.<\/p>\n<p>As soon as server reboot completed try to access the server, if your server still using the ext3 file system then refer to the following URL for <a title=\"fsck EXT3\" href=\"http:\/\/www.theperfectarts.com\/2011\/10\/fsck-command\/\" target=\"_blank\" rel=\"noopener noreferrer\">FSCK COMMAND FOR EXT3<\/a><\/p>\n<p><a href=\"https:\/\/www.ktchost.com\/wordpress-hosting.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"\/blog\/wp-content\/uploads\/2016\/09\/footer-2.png\" alt=\"\" width=\"468\" height=\"60\" border=\"0\" \/><\/a><\/p>\n<p><!-- Place this tag where you want the +1 button to render --><\/p>\n<p><!-- Place this render call where appropriate --><br \/>\n<script type=\"text\/javascript\">\n  (function() {\n    var po = document.createElement('script'); po.type = 'text\/javascript'; po.async = true;\n    po.src = 'https:\/\/apis.google.com\/js\/plusone.js';\n    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);\n  })();\n<\/script><\/p>\n<div id=\"fb-root\"><\/div>\n<p><script>(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) return;\n  js = d.createElement(s); js.id = id;\n  js.src = \"\/\/connect.facebook.net\/en_GB\/all.js#xfbml=1\";\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));<\/script><\/p>\n<div class=\"fb-like\" data-href=\"http:\/\/www.theperfectarts.com\/2012\/06\/run-fsck-in-rescue-mode\/\" data-send=\"true\" data-width=\"450\" data-show-faces=\"true\"><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>The server required the file system check &#8220;fsck&#8221; but we can&#8217;t run it because we have lost or don&#8217;t know the server root password, in <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/run-fsck-in-rescue-mode\/\" title=\"RUN FSCK in rescue mode\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-2543","post","type-post","status-publish","format-standard","hentry","category-centos-server"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2543"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=2543"}],"version-history":[{"count":9,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2543\/revisions"}],"predecessor-version":[{"id":4445,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2543\/revisions\/4445"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=2543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=2543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=2543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}