{"id":3193,"date":"2014-06-18T21:39:30","date_gmt":"2014-06-18T13:39:30","guid":{"rendered":"http:\/\/rmohan.com\/?p=3193"},"modified":"2014-06-18T21:39:30","modified_gmt":"2014-06-18T13:39:30","slug":"repair-filesystem-prompt","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3193","title":{"rendered":"Repair filesystem\u201d prompt"},"content":{"rendered":"<h3 class=\"post-title entry-title\" style=\"font: 30px\/normal Georgia, Utopia, 'Palatino Linotype', Palatino, serif; margin: 0px; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; position: relative; background-color: #c0a154; -webkit-text-stroke-width: 0px;\">How to edit \/etc\/fstab when at Centos\/Redhat \u201cRepair filesystem\u201d prompt?<\/h3>\n<div class=\"post-header\" style=\"font: 13px\/1.6 Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px 0px 1em; color: #997755; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #c0a154; -webkit-text-stroke-width: 0px;\"><\/div>\n<div id=\"post-body-1508422658648376569\" class=\"post-body entry-content\" style=\"font: 14px\/1.5 Arial, Tahoma, Helvetica, FreeSans, sans-serif; width: 618px; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; position: relative; background-color: #c0a154; -webkit-text-stroke-width: 0px;\">\n<p>Now system was unable to boot the system because it was reading \/etc\/fstab file was unable to find the device for it. This can also happen when you have some external hard-drive attached with your linux system and you remove device but forgot to clean its entry from \/etc\/fstab file.<\/p>\n<p>Linux gives you a \u201cRepair Filesystem\u201d prompt in this situation and you can enter that by providing the root password. The problem is that on \u201cRepair Filesystem\u201d prompt, linux file system and rest of the file systems are generally not mounted and if mounted then it is \u201cRead-Only\u201d so you can not change files.<\/p>\n<p><strong>Solution:<\/strong><\/p>\n<p>Use following command to mount the filesystem with writable permission:<\/p>\n<p><code>Repair filesystem # mount -w -o remount \/<\/code><\/p>\n<p>After this you can go and change \/etc\/fstab file. Restart your computer and that\u2019s it.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to edit \/etc\/fstab when at Centos\/Redhat \u201cRepair filesystem\u201d prompt? <\/p>\n<p>Now system was unable to boot the system because it was reading \/etc\/fstab file was unable to find the device for it. This can also happen when you have some external hard-drive attached with your linux system and you remove device but forgot to clean [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3193"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3193"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3193\/revisions"}],"predecessor-version":[{"id":3194,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3193\/revisions\/3194"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}