From owner-freebsd-scsi Wed Jun 30 22:49:56 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from picalon.gun.de (picalon.gun.de [194.77.0.18]) by hub.freebsd.org (Postfix) with ESMTP id 6FA6814D46 for ; Wed, 30 Jun 1999 22:49:53 -0700 (PDT) (envelope-from andreas@klemm.gtn.com) Received: from klemm.gtn.com (pppak04.gtn.com [194.231.123.169]) by picalon.gun.de (8.8.6/8.8.6) with ESMTP id HAA08253; Thu, 1 Jul 1999 07:49:48 +0200 (MET DST) Received: (from andreas@localhost) by klemm.gtn.com (8.9.3/8.9.3) id HAA19632; Thu, 1 Jul 1999 07:49:34 +0200 (CEST) (envelope-from andreas) Date: Thu, 1 Jul 1999 07:49:34 +0200 From: Andreas Klemm To: Tom Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: fsck and dirty file systems Message-ID: <19990701074934.A19363@titan.klemm.gtn.com> References: <3778E366.54EBF7C9@thedial.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: ; from Tom on Tue, Jun 29, 1999 at 07:00:23AM -0700 X-Operating-System: FreeBSD 3.2-STABLE SMP X-Disclaimer: A free society is one where it is safe to be unpopular Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Jun 29, 1999 at 07:00:23AM -0700, Tom wrote: > > On Tue, 29 Jun 1999, Christopher Taylor wrote: > > > The files systems this is happening on have all been mounted....I guess that > > explains it...would you venture an explaination? ;) > > Mounted filesystems are always dirty by definition. I wouldn't even try > to fsck a mounted filesystem. fsck's manpage is missing a statement, that fsck should only be used on unmounted filesystems. One could elaborate on this a little bit more, for example: This prerequisite is met during startup, where the root filesystem is mounted read only (to fire up fsck) and where all other filesystems are unmounted. If think you need to check your filesystems, then a) reboot b) reboot and boot into single user mode c) go into single user mode using the shutdown(8) utility and unmount all filesystems you want to check If you need to check the root filesystem, then you have to reboot and boot into single user mode (by using the -s flag), since a root filesystem, that has been mounted r/w (which happens for example when entering multi user mode), can't me remounted read only. Not 100% sure about the last statement, but something like this is really missing. -- Andreas Klemm http://www.FreeBSD.ORG/~andreas http://www.freebsd.org/~fsmp/SMP/SMP.html powered by Symmetric MultiProcessor FreeBSD Latest song from our band: http://www.freebsd.org/~andreas/mp3/schaukel.mp3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message