Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2000 13:55:01 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@freebsd.org
Subject:   Re: read only / filesystem
Message-ID:  <20000827135500.A88160@wantadilla.lemis.com>
In-Reply-To: <14760.37457.359972.176638@guru.mired.org>; from mwm@mired.org on Sat, Aug 26, 2000 at 11:00:17PM -0500
References:  <78875170@toto.iv> <14760.37457.359972.176638@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday, 26 August 2000 at 23:00:17 -0500, Mike Meyer wrote:
> Greg Lehey writes:
>> On Thursday, 24 August 2000 at 23:49:17 -0700, R Joseph Wright wrote:
>>> Or is it easy enough to simply remount / rw when changes to /etc are
>>> needed?
>> You can do this, but you can't go back to an ro mount.
>
> Uh - why not?
>
> 	su-2.04# cd /
> 	su-2.04# touch x
> 	su-2.04# rm x
> 	su-2.04# mount -u -o ro /
> 	su-2.04# touch x
> 	touch: x: Read-only file system
>
> Does one of the system security levels prohibit remounting file
> systems r/o once have been mounted r/w?

It's not reliable.  There are some problems with dirty buffers when
you make the file system read-only again.  I forget whether it's data
corruption or a panic, but the only safe way to do this is to umount
the file system and remount it r/o, obviously not an option here.

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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