From owner-cvs-src@FreeBSD.ORG Mon Dec 5 11:46:30 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2D0016A41F; Mon, 5 Dec 2005 11:46:30 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mail.localelinks.com (web.localelinks.com [65.170.254.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2673F43D86; Mon, 5 Dec 2005 11:46:19 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-222-65-122.jan.bellsouth.net [68.222.65.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.localelinks.com (Postfix) with ESMTP id 846F9AD; Mon, 5 Dec 2005 05:46:18 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 9A9D261C25; Mon, 5 Dec 2005 05:46:17 -0600 (CST) Date: Mon, 5 Dec 2005 05:46:17 -0600 From: "Matthew D. Fuller" To: Bruce Evans Message-ID: <20051205114617.GB90806@over-yonder.net> References: <20051204224859.90C4A5D04@ptavv.es.net> <20051205170246.V1582@epsplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051205170246.V1582@epsplex.bde.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.11-fullermd.2 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d root X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 11:46:31 -0000 On Mon, Dec 05, 2005 at 05:37:31PM +1100 I heard the voice of Bruce Evans, and lo! it spake thus: > > You have to say something like "mount -u -o fstab,noro" or "mount -u > -o current,noro" to fetch or preserve when just changing ro to rw. > (It seems to be necessary to use noro when fstab or current set ro > -- rw doesn't seem to cancel ro.) -w does, though. Or maybe it's ordering ("-w -ofstab" doesn't work right, for instance), though that doesn't seem to apply to -o args. I mount a lot of my filesystems (including /) read-only, but I often have to write something to 'em. So I just have a pair of scripts: root% cat ~/bin/rmount ; echo '----' ; cat ~/bin/wmount #!/bin/sh /sbin/mount -uofstab -r $* ---- #!/bin/sh /sbin/mount -uofstab -w $* -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.