From: Nan Zou (nan@matt.ksu.ksu.edu)
Date: 04/14/93


From: nan@matt.ksu.ksu.edu (Nan Zou)
Subject: Re: fsck on mounted file systems?
Date: 14 Apr 1993 23:33:40 -0500

sct@dcs.ed.ac.uk (Stephen Tweedie) writes:
>hwrvo@kato.lahabra.chevron.com (W.R. Volz) writes:

>> I noticed that someone said that fsck should be run on
>> unmounted file systems. Then how does run it on the
>> filesystem that contains fsck? Is this a studip question
>> or what? Inquiring minds want to know.

>As long as there is no other disk activity going on, it is safe to run
>fsck on a mounted partition just to check the correctness of the
>partition. However, if you are using the -r or -a options to repair a
>filesystem, then there are basically two safe ways to go about it:
[...]
>* Using the latest kernel, elect to mount the root filesystem
> readonly; upon boot, run fsck on the partition, and once that has
> finished, remount root for writing and mount the other partitions.

If the root filesystem is mounted readonly, how can fsck write back
corrections if it finds errors?

-- Nan