cvs commit: src/etc/rc.d root
Matthew D. Fuller
fullermd at over-yonder.net
Mon Dec 5 11:46:31 GMT 2005
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 at over-yonder.net
Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
On the Internet, nobody can hear you scream.
More information about the cvs-src
mailing list