From owner-freebsd-questions@FreeBSD.ORG Wed Jun 22 12:05:33 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A77711065674 for ; Wed, 22 Jun 2011 12:05:33 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp04.sth.basefarm.net (ch-smtp04.sth.basefarm.net [80.76.153.5]) by mx1.freebsd.org (Postfix) with ESMTP id 301458FC12 for ; Wed, 22 Jun 2011 12:05:33 +0000 (UTC) Received: from c83-255-51-20.bredband.comhem.se ([83.255.51.20]:35457 helo=falcon.midgard.homeip.net) by ch-smtp04.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1QZLxX-0005wD-FO for freebsd-questions@freebsd.org; Wed, 22 Jun 2011 13:51:05 +0200 Received: (qmail 1171 invoked from network); 22 Jun 2011 13:51:00 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 22 Jun 2011 13:51:00 +0200 Received: (qmail 78932 invoked by uid 1001); 22 Jun 2011 13:51:00 +0200 Date: Wed, 22 Jun 2011 13:51:00 +0200 From: Erik Trulsson To: Robert Bonomi Message-ID: <20110622115100.GA78910@owl.midgard.homeip.net> References: <201106221145.p5MBjRwb057115@mail.r-bonomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201106221145.p5MBjRwb057115@mail.r-bonomi.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: 83.255.51.20 X-Scan-Result: No virus found in message 1QZLxX-0005wD-FO. X-Scan-Signature: ch-smtp04.sth.basefarm.net 1QZLxX-0005wD-FO 2a9b1d05521ae779880a492cf1f14567 Cc: freebsd-questions@freebsd.org Subject: Re: 'mount -u' stumper X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 12:05:33 -0000 On Wed, Jun 22, 2011 at 06:45:27AM -0500, Robert Bonomi wrote: > > Environment is FreeBSD 7.2 i386 > > I have a Berkeley FFS filesystem that is mounted ro at boot time. > > If I do a 'mount -u' to make it writable, it _is_ made writable, but > "soft-updates' is also set. Incidentally, does anybody know _where_ > the 'soft-updates' optioon is documented?? I've looked evereywhere I > can think of, brute-force grepped wholee sections of the /usr/share/man > directory tree, all without succeess. > > If I use 'mount -u -r' to return it to the readonly state, 'soft-updates' is > *still* set. > > _HOW_ do I make'soft-updates' go away on a mounted filesystem ?? > > 'umount' and then 'mount' does the trick, but it is no a viable production' > option. > > THe underlying situation -- the need to make the filesystem writable -- comes > up only rarely, and it doesn't seem to hurt anything if the filesystem is > left with soft-updates set, but I _would_ like to clear it, because it *is* > logically inconsistant with the read-only status of the filesystem. > > Anybody got a bright idea I haven't thought of? To change if a given filesystem should use soft-updates or not you use tunefs(8) on that filesystem. (Read the manpage to find exact syntax.) Note that this cannot be done on a filsystem which is mounted read/write - only on filesystems that are unmounted or mounted read-only. -- Erik Trulsson ertr1013@student.uu.se