Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Dec 2005 05:46:17 -0600
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/rc.d root
Message-ID:  <20051205114617.GB90806@over-yonder.net>
In-Reply-To: <20051205170246.V1582@epsplex.bde.org>
References:  <20051204224859.90C4A5D04@ptavv.es.net> <20051205170246.V1582@epsplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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