Forcing fsck on boot

Christian Motta chris at agweb.net
Fri Dec 16 22:05:01 UTC 2005


shutdown -Fr now

or create a file in root called forcecfsck

Q: How to force a check of the file systems?

A: If the file "/forcefsck" exists a file system consistency check
(fsck) will be forced at the next boot up.

The command line commands look like:

	touch /forcefsck
	reboot



akonstam at trinity.edu wrote:

>On Fri, Dec 16, 2005 at 01:36:07PM -0800, Brian D. McGrew wrote:
>  
>
>>Is there a kernel option or boot option I can give to force fsck?
>>
>>-brian
>>
>>Brian D. McGrew { brian at visionpro.com || brian at doubledimension.com }
>>--
>>    
>>
>It seems to me you could do that by altering some of the lines in
>/etc/rc.d/rc.sysinit
>
>That is the good news. The bad news is I am having an allergy attack
>and I don't have the psychic energy to plow through the file and find
>the exact lines to change.
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051216/7f122464/attachment-0001.htm>


More information about the fedora-list mailing list