On Thu, 2003-05-29 at 00:58, Ramesh .T.S wrote:
> Andrew what about ext2? I have ext2 and nfs mounted partition. is there
> a way to clean only ext2 by making ne changes in rc.sysinit without
> checking the nfs.
> 
> Ramesh


> grep fsck *
rc.sysinit:# Mount /proc (done here so volume labels can work with fsck)
rc.sysinit:if [ -f /fsckoptions ]; then
rc.sysinit:     fsckoptions=`cat /fsckoptions`
rc.sysinit:if [ -f /forcefsck ]; then
rc.sysinit:     fsckoptions="-f $fsckoptions"
rc.sysinit:elif [ -f /.autofsck ]; then
rc.sysinit:     [ -f /etc/sysconfig/autofsck ] && .
/etc/sysconfig/autofsck
rc.sysinit:     fsckoptions="$AUTOFSCK_OPT $fsckoptions"
rc.sysinit:     fsckoptions="-C $fsckoptions"
rc.sysinit:     fsckoptions="-V $fsckoptions"
rc.sysinit:     initlog -c "fsck -T -a $fsckoptions /"
rc.sysinit:# Possibly update quotas if fsck was run on /.
rc.sysinit:     initlog -c "fsck -T -R -A -a $fsckoptions"
rc.sysinit:rm -f /fastboot /fsckoptions /forcefsck /.autofsck /halt
/poweroff
rc.sysinit:# create the crash indicator flag to warn on crashes, offer
fsck with timeout
rc.sysinit:touch /.autofsck



It looks like if you create /fsckoptions that contains just -a fsck will
do what I think your asking for.  (man fsck for the options just to make
sure)

> ----- Original Message -----
> From: "Andrew Williams" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 28, 2003 7:18 PM
> Subject: Re: fsck
> 
> 
> > On Wed, 2003-05-28 at 13:17, Vano Beridze wrote:
> > > Hello
> > >
> > > I've got RedHat Linux 8.0
> > >
> > > If I shutdown the system abnormally, the system promps to start fsck
> > > after reboot. How can I tell the system to start fsck without a 'Y'
> > > confirmation at startup? I don't want to confirm fsck run, I just
> want
> > > fsck to start automatically.
> > >
> > > Thank you
> > > --
> > > Vano Beridze <[EMAIL PROTECTED]>
> > > Silkroad Corporation S.A.
> > >
> >
> >
> > You are most likely running the ext3 filesystem (which in theory
> > doesn't need to fsck as often)  The box will run cleanly most of the
> > time without a fsck on an unclean shutdown.  I do run fsck manually
> > every so often just in case, but in general you shouldn't need to.
> >
> > I haven't read much at all about ext3 so ymmv.  I do know that with
> > other journaled filesystems I've used (XFS, waffle) you never need to
> > fsck (or wacky in the case of waffle) unless something is "real broke"
> >
> >
> > - andrew
> >
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:[EMAIL PROTECTED]
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
> 


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to