fsck safe in run level 2?

Donald Lashomb donlash at uncle.uucp
Tue Jul 3 21:04:10 AEST 1990


In article <970007 at teecs.UUCP> belkin at teecs.UUCP (Hershel Belkin) writes:
>
>I have often heard/read that fsck should not be run on a mounted
>file system, and further, should never be run while in multi-user
[...]
>disc activity.  But is there any possibility that fsck could
>*cause* a problem (again, assuming "-n" responses)??
[...]


I see no problem as long as you use "fsck -n".  Make sure you use the "-n"
option on the command line, don't depend on manually answering "No" to
fsck's questions to protect your filesystem from changes.  On my system,
if fsck is run without the "-n" option, it makes some changes to the
filesystem even if you answer "No" to all its questions ( clears empty
files, If memory serves ).  Using the "-n" command line option, fsck
announces "Read-only mode" upon startup.  I assume, it therefore will
not make any changes to the filesystem, no matter what.

BTW- I also run fsck on my root (mounted of course) filesystem regularly.
I do this this in single-user mode, however.  I do an immediate reboot
after running fsck.  In fact, fsck forces an immediate reboot under some
conditions (eg using "fsck -S" to cleanup the freelist).

-Don		donlash at uncle.UUCP



More information about the Comp.unix.questions mailing list