<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux Force fsck on the Next Reboot or Boot Sequence</title> <atom:link href="http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Paolo</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-60515</link> <dc:creator>Paolo</dc:creator> <pubDate>Wed, 06 Jul 2011 15:04:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-60515</guid> <description>Thanks, this works great for me!</description> <content:encoded><![CDATA[<p>Thanks, this works great for me!</p> ]]></content:encoded> </item> <item><title>By: Aj</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-57188</link> <dc:creator>Aj</dc:creator> <pubDate>Sun, 10 Apr 2011 08:01:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-57188</guid> <description>as root, do the following
# (mount partition as read only - allows fsck to work)
mount -oremount,ro /
e2fsck /dev/sda1
where / is the path to device you want to fsck, and sda1 is the device name (could be hda1, hda2, sdb3 etc)
then when done, do
mount -oremount,rw /
telinit
(here it will give you a number which is current run level, note it (debian is N 2)
then.
telinit 1; telinit 2
(where 2 is the number given to you in first telinit line)
This b</description> <content:encoded><![CDATA[<p>as root, do the following</p><p># (mount partition as read only &#8211; allows fsck to work)</p><p>mount -oremount,ro /</p><p>e2fsck /dev/sda1</p><p>where / is the path to device you want to fsck, and sda1 is the device name (could be hda1, hda2, sdb3 etc)</p><p>then when done, do</p><p>mount -oremount,rw /<br
/> telinit</p><p>(here it will give you a number which is current run level, note it (debian is N 2)</p><p>then.</p><p>telinit 1; telinit 2</p><p>(where 2 is the number given to you in first telinit line)</p><p>This b</p> ]]></content:encoded> </item> <item><title>By: xe</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-56328</link> <dc:creator>xe</dc:creator> <pubDate>Tue, 15 Mar 2011 15:44:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-56328</guid> <description>How to specify some fsck cli params in this case?</description> <content:encoded><![CDATA[<p>How to specify some fsck cli params in this case?</p> ]]></content:encoded> </item> <item><title>By: Juraj</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-48247</link> <dc:creator>Juraj</dc:creator> <pubDate>Tue, 06 Jul 2010 18:14:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-48247</guid> <description>I used “touch /forcefsck&quot; which forced the system to check after reboot...fine
but on the subsequent boots still forces to check. I looked in root dir for the forcefsck file but it is not there....what then makes the system force to check? :(</description> <content:encoded><![CDATA[<p>I used “touch /forcefsck&#8221; which forced the system to check after reboot&#8230;fine<br
/> but on the subsequent boots still forces to check. I looked in root dir for the forcefsck file but it is not there&#8230;.what then makes the system force to check? :(</p> ]]></content:encoded> </item> <item><title>By: Light</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-46117</link> <dc:creator>Light</dc:creator> <pubDate>Wed, 24 Feb 2010 07:47:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-46117</guid> <description>And Yes ,it Worked with Ext4 FS.Thanks for the Tip!</description> <content:encoded><![CDATA[<p>And Yes ,it Worked with Ext4 FS.Thanks for the Tip!</p> ]]></content:encoded> </item> <item><title>By: Light</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-46116</link> <dc:creator>Light</dc:creator> <pubDate>Wed, 24 Feb 2010 07:43:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-46116</guid> <description>Hi ,
I am going to check your tip hoping that ,this will work on My Ubuntu Karmic System with Ext4 File System.</description> <content:encoded><![CDATA[<p>Hi ,<br
/> I am going to check your tip hoping that ,this will work on My Ubuntu Karmic System with Ext4 File System.</p> ]]></content:encoded> </item> <item><title>By: David Nuttall</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-45902</link> <dc:creator>David Nuttall</dc:creator> <pubDate>Mon, 08 Feb 2010 18:21:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-45902</guid> <description>Running fsck, by whatever means, will cause the mount counter to be reset to 0.  Well, so long as it completes successfully.  If fsck dies for some reason (like trying to run on a mounted or read-only file system, oops) then the counter is not reset.
As for running on fsck on the partition mounted on /home, that should automagically mount, and will be checked at that time; just do (no quotes) &quot;sudo touch /home/forcefsck&quot; if mounted and if not mounted, you can run it directly, if you can log in, that is.  Get to root and just run it one the device:  &quot;sudo fsck /dev/sda6&quot; or whatever device it is.</description> <content:encoded><![CDATA[<p>Running fsck, by whatever means, will cause the mount counter to be reset to 0.  Well, so long as it completes successfully.  If fsck dies for some reason (like trying to run on a mounted or read-only file system, oops) then the counter is not reset.</p><p>As for running on fsck on the partition mounted on /home, that should automagically mount, and will be checked at that time; just do (no quotes) &#8220;sudo touch /home/forcefsck&#8221; if mounted and if not mounted, you can run it directly, if you can log in, that is.  Get to root and just run it one the device:  &#8220;sudo fsck /dev/sda6&#8243; or whatever device it is.</p> ]]></content:encoded> </item> <item><title>By: itpatil</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-45129</link> <dc:creator>itpatil</dc:creator> <pubDate>Fri, 11 Dec 2009 10:11:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-45129</guid> <description>Hey, thanks for the information. Appreciate it.</description> <content:encoded><![CDATA[<p>Hey, thanks for the information. Appreciate it.</p> ]]></content:encoded> </item> <item><title>By: Axel Werner</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-43518</link> <dc:creator>Axel Werner</dc:creator> <pubDate>Tue, 01 Sep 2009 13:16:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-43518</guid> <description>Will performing a &quot;shutdown -rF now&quot; or a &quot;touch /forcefsck &quot; at a specific date and time once a week prevent the &quot;automatic fsck&quot; that is forced by the ext2/ext3 partition parameters ?? (can be set by tune2fs ) - i mean.. will it &quot;reset&quot; the timeouts/deadlines if doing a force fsck manualy once a week so there will be no &quot;surprise&quot; when trying to reboot my server if needed ?? any positive experience on that?</description> <content:encoded><![CDATA[<p>Will performing a &#8220;shutdown -rF now&#8221; or a &#8220;touch /forcefsck &#8221; at a specific date and time once a week prevent the &#8220;automatic fsck&#8221; that is forced by the ext2/ext3 partition parameters ?? (can be set by tune2fs ) &#8211; i mean.. will it &#8220;reset&#8221; the timeouts/deadlines if doing a force fsck manualy once a week so there will be no &#8220;surprise&#8221; when trying to reboot my server if needed ?? any positive experience on that?</p> ]]></content:encoded> </item> <item><title>By: like how?</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-42940</link> <dc:creator>like how?</dc:creator> <pubDate>Fri, 07 Aug 2009 20:29:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-42940</guid> <description>me@mybox:/$ sudo umount /dev/hdb2
umount: /home: device is busy.
me@mybox:/$ echo &#039;unwoot&#039;</description> <content:encoded><![CDATA[<p>me@mybox:/$ sudo umount /dev/hdb2<br
/> umount: /home: device is busy.<br
/> me@mybox:/$ echo &#8216;unwoot&#8217;</p> ]]></content:encoded> </item> <item><title>By: neurosys</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-42254</link> <dc:creator>neurosys</dc:creator> <pubDate>Fri, 26 Jun 2009 09:41:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-42254</guid> <description>umount /dev/hdb2; fsck -y -c -f /dev/hdb2;echo &#039;w00t&#039;</description> <content:encoded><![CDATA[<p>umount /dev/hdb2; fsck -y -c -f /dev/hdb2;echo &#8216;w00t&#8217;</p> ]]></content:encoded> </item> <item><title>By: neurosys</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-42253</link> <dc:creator>neurosys</dc:creator> <pubDate>Fri, 26 Jun 2009 09:40:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-42253</guid> <description>then u could just umount it......</description> <content:encoded><![CDATA[<p>then u could just umount it&#8230;&#8230;</p> ]]></content:encoded> </item> <item><title>By: ankur</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-41635</link> <dc:creator>ankur</dc:creator> <pubDate>Sat, 16 May 2009 16:05:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-41635</guid> <description>What about trying to force fsck another partition ?</description> <content:encoded><![CDATA[<p>What about trying to force fsck another partition ?</p> ]]></content:encoded> </item> <item><title>By: yanger</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-40512</link> <dc:creator>yanger</dc:creator> <pubDate>Fri, 27 Feb 2009 00:42:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-40512</guid> <description>thanks! sudo touch /forcefsck is a good way :)</description> <content:encoded><![CDATA[<p>thanks! sudo touch /forcefsck is a good way :)</p> ]]></content:encoded> </item> <item><title>By: Nigel Horne</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-40129</link> <dc:creator>Nigel Horne</dc:creator> <pubDate>Wed, 04 Feb 2009 16:53:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-40129</guid> <description>There&#039;s no need to use the touch command, &quot;&gt;/forcefsck&quot; will do.</description> <content:encoded><![CDATA[<p>There&#8217;s no need to use the touch command, &#8220;&gt;/forcefsck&#8221; will do.</p> ]]></content:encoded> </item> <item><title>By: Jason B</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-38589</link> <dc:creator>Jason B</dc:creator> <pubDate>Mon, 18 Aug 2008 20:20:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-38589</guid> <description>On RHEL 4, &#039;shutdown -rF&#039; just writes /forcefsck anyway.</description> <content:encoded><![CDATA[<p>On RHEL 4, &#8216;shutdown -rF&#8217; just writes /forcefsck anyway.</p> ]]></content:encoded> </item> <item><title>By: Martijn</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-38278</link> <dc:creator>Martijn</dc:creator> <pubDate>Thu, 10 Jul 2008 10:05:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-38278</guid> <description>@dj:
Your &#039;shutdown&#039; tip won&#039;t work on many modern distributions, since they use Upstart instead of the old Sysvinit system.
Upstart has dropped many legacy commands that would be better done differently, in favor of a modern lean system.
&#039;touch /forcefsck&#039; is currently the most universal way.</description> <content:encoded><![CDATA[<p>@dj:</p><p>Your &#8216;shutdown&#8217; tip won&#8217;t work on many modern distributions, since they use Upstart instead of the old Sysvinit system.</p><p>Upstart has dropped many legacy commands that would be better done differently, in favor of a modern lean system.</p><p>&#8216;touch /forcefsck&#8217; is currently the most universal way.</p> ]]></content:encoded> </item> <item><title>By: dj</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-37622</link> <dc:creator>dj</dc:creator> <pubDate>Wed, 12 Mar 2008 19:46:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-37622</guid> <description>shutdown -rF now &lt;-will reboot and forcefsck now. More info: man shutdown</description> <content:encoded><![CDATA[<p>shutdown -rF now &lt;-will reboot and forcefsck now. More info: man shutdown</p> ]]></content:encoded> </item> <item><title>By: sudar</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-37488</link> <dc:creator>sudar</dc:creator> <pubDate>Tue, 19 Feb 2008 06:39:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-37488</guid> <description>Hi every one,
I&#039;m able to reboot my target board using the command [reboot] from the bash prompt.
But i can able to by the command [reboot -f].
What should i need to do if i want to use the command [reboot]
Plz help me.
Thanks in Advance</description> <content:encoded><![CDATA[<p>Hi every one,<br
/> I&#8217;m able to reboot my target board using the command [reboot] from the bash prompt.<br
/> But i can able to by the command [reboot -f].<br
/> What should i need to do if i want to use the command [reboot]<br
/> Plz help me.<br
/> Thanks in Advance</p> ]]></content:encoded> </item> <item><title>By: Ifan</title><link>http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/#comment-36857</link> <dc:creator>Ifan</dc:creator> <pubDate>Mon, 24 Sep 2007 17:21:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence.php#comment-36857</guid> <description>nice!  didn&#039;t know that at alL!!</description> <content:encoded><![CDATA[<p>nice!  didn&#8217;t know that at alL!!</p> ]]></content:encoded> </item> </channel> </rss>
