File system checks

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


Am Mi, den 03.03.2004 schrieb Randy Kelsoe um 21:12:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Alexander Dalloz wrote:
> 
> > 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
> 
> Wouldn't it be better to 'touch /forcefsck' ? He was asking for a way to
> automatically check the filesys. If the system sees a /.autofsck file,
> it will prompt the user before actually doing the fsck, and if the user
> does not respond within the timeout period (10 seconds), it will skip
> the fsck. If it finds a /forcefsck file, it will do the fsck without prompt.

Randy, would be an other option. But what I described offers the user to
interrupts an automatic check. Despite you explanation the default in my
example is to run fsck if the user does not interrupt within 5 seconds.

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 21:20:59 up 12 days, 22:54, load average: 0.24, 0.39, 0.37 
                   [ Γνωθι σ'αυτον - gnothi seauton ]






More information about the users mailing list