File system checks

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Wed Mar 3 19:52:03 UTC 2004


Am Mi, den 03.03.2004 schrieb Mike Westkamper um 20:22:
> I am trying to modify Fedora boot process as it relates to the checking of
> the file system on boot.
> 
> I want it to check and repair all mounted file systems automatically.
> 
> I find in rc.d/rc.sysinit the script that seems to make that determination,
> however I don't seem able to find out how to set the variables it uses or in
> some way make it work the way I want. I guess I could change the script but
> that seems rather a crude solution.
> 
> Any direction will be greatly appreciated.
> 
> Mike

touch /.autofsck

>From /usr/share/doc/initscripts-7.42.2/sysconfig.txt:

/etc/sysconfig/autofsck
  does not normally exist; if it does, it can influence a choice
  whether or not to fsck after a crash
   AUTOFSCK_TIMEOUT=5
      Number of seconds to wait for console user to make a choice
    AUTOFSCK_DEF_CHECK=no
      If the user does not respond, choose whether or not to fsck

So do:

echo "AUTOFSCK_TIMEOUT=5" > /etc/sysconfig/autofsck
echo "AUTOFSCK_DEF_CHECK=yes" >> etc/sysconfig/autofsck

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
Sirendipity 20:47:07 up 12 days, 22:20, load average: 0.60, 0.41, 0.37 
                   [ Γνωθι σ'αυτον - gnothi seauton ]






More information about the fedora-list mailing list