{"id":4599,"date":"2015-04-26T18:53:46","date_gmt":"2015-04-26T10:53:46","guid":{"rendered":"http:\/\/rmohan.com\/?p=4599"},"modified":"2015-04-26T18:53:46","modified_gmt":"2015-04-26T10:53:46","slug":"disable-the-filesystem-check-fsck-at-boot-time","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4599","title":{"rendered":"Disable the filesystem check (fsck) at boot time"},"content":{"rendered":"<p>There\u2019s several ways of accomplishing this. I will list all the methods beneath, just pick the one that fits the situation\/you.<\/p>\n<ul>\n<li>Filesystem tunable<\/li>\n<li>Grub boot parameter<\/li>\n<li>Placing command files on your root device<\/li>\n<li>Active reboot without FSCK<\/li>\n<\/ul>\n<h1>Filesystem tunable<\/h1>\n<p>Use the tune2fs command to tell your filesystem to have a max count of mounts before a check to 0 to disable it.<\/p>\n<pre># tune2fs -c 0 \/dev\/sda1<\/pre>\n<p><strong>Parameter reference:<\/strong><\/p>\n<pre>-c max-mount-counts\r\n Adjust the number of mounts after which the filesystem will be  checked  by  e2fsck(8).   If max-mount-counts  is  0  or -1, the number of times the filesystem is mounted will be disregarded by e2fsck(8) and the kernel.\r\n<\/pre>\n<h1>Grub boot parameter<\/h1>\n<p>Add the following at the end of your grub boot linux line.<\/p>\n<pre>fastboot<\/pre>\n<p>This can be done by editing \u201cgrub.conf\u201d or by editing the boot command via the grub menu at boot.<\/p>\n<h1>Placing command files on your root device<\/h1>\n<p>To disable the filesystem check on boot.<\/p>\n<pre># touch \/fastboot<\/pre>\n<p>To enable a filesystem check on boot.<\/p>\n<pre># touch \/forcefsck<\/pre>\n<h1>Active reboot without FSCK<\/h1>\n<pre># shutdown -rf<\/pre>\n<p><strong>Parameter reference:<\/strong><\/p>\n<pre>-r     Reboot after shutdown.\r\n-f     Skip fsck on reboot.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There\u2019s several ways of accomplishing this. I will list all the methods beneath, just pick the one that fits the situation\/you.<\/p>\n<p> Filesystem tunable Grub boot parameter Placing command files on your root device Active reboot without FSCK Filesystem tunable <\/p>\n<p>Use the tune2fs command to tell your filesystem to have a max count of mounts before [&#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\/4599"}],"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=4599"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4599\/revisions"}],"predecessor-version":[{"id":4600,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4599\/revisions\/4600"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}