using fsck on mounted filesystem

Michael N. Lipp XDATMNLX%DDATHD21.BITNET at cunyvm.cuny.edu
Tue Nov 28 04:34:41 AEST 1989


Hello,

A friend of mine who is one of those poor (:-)) guys left alone with a
386-PC running unix but no unix experience showed me a problem:

He was running Microport-unix for several month and got used to trying
fsck on his mounted file-systems every now and then (don't know where
he picked that habit). Two weeks ago, he switched to Interactive-unix
and found fsck reporting a bad free block list which he had rebuilt,
but which would show up again after a reboot. I told him to boot from
floppy and fsck the file-system on the hard-disk. He did and it showed
no error. It did again, when he booted from the hard-disk afterwards.

I know he shouldn't have used fsck on the mounted file system in the
first place, but why did it work with microport-unix? I found out, that
the number of missing blocks reported matches the free space reported by
df. Interactive has the 'fast file system'. Could it be, that they write
an empty free-block-list in the superblock of a file system when mounting
it and keep the head of the free list in memory only? Thinking of a crash,
no free-list seems better to me than a false one. I persuaded him to
believe that and stop insulting unix, but I would like to make sure:
Is this the right theory or am I missing something and he will loose
his data tomorrow?

    Michael



More information about the Comp.unix.questions mailing list