Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site ittvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!ittvax!long From: long@ittvax.UUCP (H. Morrow Long [Systems Center]) Newsgroups: net.unix-wizards Subject: Re: 4.2 Info request: Read-only file systems Message-ID: <1640@ittvax.UUCP> Date: Tue, 19-Mar-85 11:44:58 EST Article-I.D.: ittvax.1640 Posted: Tue Mar 19 11:44:58 1985 Date-Received: Thu, 21-Mar-85 03:33:27 EST References: <2483@nsc.UUCP> Distribution: net Organization: ITT-ATC, Stratford Ct. Lines: 41 In <2483@nsc.UUCP> chongo writes > I would like to mount things like /bin, most of /etc, /usr/{bin,lib, ... }, > /dev/{mem,kmem,...}, usw... on a read-only disc pack. > > What is needed (if it can be done) to be done to unix to allow this? > What you need to do is place the (sub)directory to be read-only in its own filesystem. You can then use 'mount /usr/src -r' to mount the filesystem readonly or change field 3 from ':rw:' to ':ro:' in /etc/fstab and the 'mount -a' will do it for you. In the following fstab fragment /usr/src is mounted readonly: /dev/hp0a:/:rw:1:1 /dev/hp2a:/tmp:rw:0:4 /dev/hp3g:/usr:rw:1:2 /dev/hp0e:/usr/src:ro:1:3 ------ From /etc/rc: /etc/mount -a >/dev/console ------- You can still unmount the filesystem (although you probably wouldn't be able to umount /bin or /usr/bin if you are in multiuser mode because they would be in almost continual use) and mount it read-write (the default) if you need to place a program on it. -- H. Morrow Long ITT-ATC Systems Center, 1 Research Drive Shelton, CT 06484 Phone #: (203)-929-7341 x. 634 path = {allegra bunker ctcgrafx dcdvaxb dcdwest ucbvax!decvax duke eosp1 ittral lbl-csam milford mit-eddie psuvax1 purdue qubix qumix research sii supai tmmnet twg uf-cgrl wxlvax yale}!ittvax!long