Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 1995 03:05:25 -0800
From:      David Greenman <davidg@Root.COM>
To:        Andreas Schulz <ats@g386bsd.first.gmd.de>
Cc:        tsai@server.keck.lmu.edu, questions@FreeBSD.org
Subject:   Re: Clear Flag in SUPERBLOCK? 
Message-ID:  <199502141105.DAA02615@corbin.Root.COM>
In-Reply-To: Your message of "Tue, 14 Feb 95 11:47:09 %2B0059." <199502141047.LAA23197@g386bsd.first.gmd.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
>
>> After I install the FreeBSD 2.0. I use fsck to ckeck my hard drive, but it
>> always tell me that "clear flag in superblock is incorrect".  I press y to cleanthis, but it still the same when I run fsck again.  I also use fsck -p to clean this error, but it still give me the same message.  I really don't know what is going on.  
>
>You should only use fsck, if you are in single user mode. I suspect you
>have your machine booted into multi-user mode. Then fsck will always
>tell you that for all the mounted filesystems. You can boot into single
>user mode at the Boot: prompt with the "-s" flag. We need to write a
>boot man page :-).

   You should never set the clean flag on a mounted filesystem...for that
matter, you should never run fsck on a mounted filesystem without the -n
(nowrite) flag. If fsck does write to the mounted filesystem, it can destroy
data and/or cause the machine to panic because of the corruption it causes.
There is no synchronization between the changes that fsck makes and the
changes the kernel makes.

-DG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502141105.DAA02615>