From owner-freebsd-current Fri Dec 6 12:23:56 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA09518 for current-outgoing; Fri, 6 Dec 1996 12:23:56 -0800 (PST) Received: from pegasus.isr.uc.pt (pegasus.isr.uc.pt [193.136.230.60]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA09510 for ; Fri, 6 Dec 1996 12:23:49 -0800 (PST) Received: from pioneer.isr.uc.pt (pioneer) by pegasus.isr.uc.pt (5.x/SMI-SVR4) id AA02920; Fri, 6 Dec 1996 20:20:38 GMT Received: from pioneer by pioneer.isr.uc.pt (4.1/SMI-4.1) id AA00579; Fri, 6 Dec 96 20:23:42 GMT Date: Fri, 6 Dec 1996 20:23:42 +0000 (WET) From: Paulo Menezes X-Sender: paulo@pioneer To: Poul-Henning Kamp Cc: current@freebsd.org Subject: Re: mount_mfs In-Reply-To: <8265.849856613@critter.tfs.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 6 Dec 1996, Poul-Henning Kamp wrote: > In message , Paulo Menezes wri > tes: > > > >Hi, > > > >In one of our student labs I installed 4 486DX33 Machines as X-terminals. > >They are using netboot and share the same tree. I would like to make them > >mount the root filesystem readonly but the Xserver complains that need to > >create locks in /tmp. > >This could be simply solved by creating a "ramdisk" and mounting it in > >/tmp. I digged in the man pages for mount_mfs but I couldn't figure how to > >create an fstab entry for this. Can someone give me an example on > >how-to-do-this? > > What I do is this: > > server:/somewhere/machine/root mounted ro on / > server:/somewhere/machine/usr mounted ro on /usr > server:/somewhere/machine/`hostname -s`/var mounted rw on /var > server:/somewhere/machine/`hostname -s`/etc mounted rw on /etc > server:/somewhere/machine/`hostname -s`/tmp mounted rw on /tmp > Ok, that is a solution! But what about mfs? I would not like to create a /var /etc /tmp for each of the machines. The real question is can mfs be used to create an empty ram-disk rw for /tmp? Paulo > -- > Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. > http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. > whois: [PHK] | phk@tfs.com TRW Financial Systems, Inc. > Power and ignorance is a disgusting cocktail. > __/%\__ ... ('-') ... /===============================================================\ | Paulo Menezes | email: paulo@isr.uc.pt | | Net Admin | | | Researcher @ ISR | web: www.isr.uc.pt/~paulo | | Teaching @ DEE-UC | | \===============================================================/