All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Smith <sos22@cam.ac.uk>
To: linux-newbie@vger.kernel.org
Subject: Re: Forcing fs checks on ext3
Date: Sun, 12 May 2002 22:48:13 +0100	[thread overview]
Message-ID: <20020512214813.GA942@cam.ac.uk> (raw)
In-Reply-To: <20020512204732.2098.qmail@linux.ik5bcu.ampr.org>

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]

> Hello I'm using RHL-7.2 with ext3 journalled file system,it works fine,
> however I wonder issue an automated fs check let'say every 20 system's boots,
> is there a file to set to accomplish this?
ext{2,3} superblocks contain a field indicating how many times they can
be safely mounted without fscking, and a maximum interval between fscks.
To get at this data, go

tune2fs -l /dev/hda1

replacing hda1 with the device which stores the filesystem. To set the
maximal mount count, go

tune2fs -c 20 /dev/hda1

whilst the maximum time between fscks is set with

tune2fs -i <time> /dev/hda1

Time can be specified in days as 30d, weeks as 4w, or months as 1m.
man tune2fs for more details. Also, you shouldn't really do this while
the filesystem's in use. I don't normally bother unmounting it,
but strictly speaking you probably should.

Steven Smith,
sos22@cam.ac.uk.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-05-12 21:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-12 20:47 Forcing fs checks on ext3 Marco Calistri
2002-05-12 21:48 ` Steven Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-12 23:00 Jose Luis Alarcon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020512214813.GA942@cam.ac.uk \
    --to=sos22@cam.ac.uk \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.