{"id":960,"date":"2019-11-05T11:05:14","date_gmt":"2019-11-04T23:05:14","guid":{"rendered":"http:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=960"},"modified":"2019-11-05T11:05:14","modified_gmt":"2019-11-04T23:05:14","slug":"how-to-fsck-a-linux-system-at-boot-time","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=960","title":{"rendered":"How to fsck a Linux system at boot time"},"content":{"rendered":"<p>The old method of creating a file with &#8220;touch \/forcefsck&#8221; should still work on modern systems even though it is a hangover from the old sysvinit days, however it obviously relies on the root partition being mountable in order to read that flag.<\/p>\n<p>I have found a new method mentioned on lists.fedoraproject.org which I can confirm works perfectly on Fedora(30).<\/p>\n<p>At the grub boot menu, use &#8220;e&#8221; to edit the boot entry to be used, and at the end of the boot parameter line add <em>fsck.mode=force<\/em> , this will fsck all the filesystems which is useful if the root partition was not mountable at boot time.<\/p>\n<p>Posted here for my later reference as it is the sort of thing I will need again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The old method of creating a file with &#8220;touch \/forcefsck&#8221; should still work on modern systems even though it is a hangover from the old sysvinit days, however it obviously relies on the root partition being mountable in order to &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=960\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-960","post","type-post","status-publish","format-standard","hentry","category-my-nux-thoughts-and-notes"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=960"}],"version-history":[{"count":2,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/960\/revisions"}],"predecessor-version":[{"id":962,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/960\/revisions\/962"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}