From owner-freebsd-current@freebsd.org Wed Dec 23 03:09:45 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3992EA4FF2C for ; Wed, 23 Dec 2015 03:09:45 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2819619C0 for ; Wed, 23 Dec 2015 03:09:45 +0000 (UTC) (envelope-from ian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 25993A4FF2A; Wed, 23 Dec 2015 03:09:45 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24433A4FF29 for ; Wed, 23 Dec 2015 03:09:45 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00EB719BE for ; Wed, 23 Dec 2015 03:09:44 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Wed, 23 Dec 2015 03:09:55 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id tBN39aST002454; Tue, 22 Dec 2015 20:09:36 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1450840176.25138.183.camel@freebsd.org> Subject: Re: Q about fsck_ffs usage detail... From: Ian Lepore To: jbtakk@iherebuywisely.com, current Date: Tue, 22 Dec 2015 20:09:36 -0700 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 03:09:45 -0000 On Tue, 2015-12-22 at 17:37 -0800, Jeffrey Bouquet wrote: > After trial and error ( not easily crafted from the man page) > crafting the "mount" command below... > > I've on a todo list a once-in-a-while fsck_ffs ( in single user > mode > or init 1), each filesystem ( eventually ) so that journalling is > double checked > as accurate (ufs2) > > "mount -t ufs -o rw /dev/gtp/root / " > ( ^^ that, not easily crafted from the man page examples, unless it > works > sometimes and does not work other times, or needs some precise > order. This command worked today...) > > So much for documentation. > On to the question. > > The 'task' would be to run fsck_ffs -y on each filesystem once in a > while. > However, after remounting root or some other filesystem rw, the > (NO_WRITE) still appears in fsck_ffs ... appearing to make the effort > moot. (Since it also answers (No) to its resulting ?repair? > questions...) > > Fault of "init 1" rather than safe mode at boot, or some unintended > not-working-yet > fault of fsck_ffs, or some easier way to accomplish the stated task? > > Apologies for not asking it elsewhere... seems like one or two > persons reading > this list may know more than others and/or sometimes do the same > commands, every once in a while or after a crash to the debugger > instance. > > Thanks. > ( Not really urgent that anyone answers. More of an inquiry than a > problem... at least at > r288246... ) If I've understood your question correctly, I think the sequence you're looking for is something like this: init 1 mount -r / fsck -y / mount -w / exit When the NO_WRITE message appears, fsck is saying it will not write because others can write. -- Ian