From owner-freebsd-current Fri Dec 6 15:02:42 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA16548 for current-outgoing; Fri, 6 Dec 1996 15:02:42 -0800 (PST) Received: from inga.augusta.de (inga.augusta.de [193.175.23.65]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id OAA16323 for ; Fri, 6 Dec 1996 14:59:32 -0800 (PST) Received: from rabbit by inga.augusta.de with uucp (Smail3.1.29.1 #1) id m0vW8uI-004coWC; Fri, 6 Dec 96 23:38 MET Received: by rabbit.augusta.de (Smail3.1.29.1 #1) id m0vW2bD-000FzjC; Fri, 6 Dec 96 16:54 MET Message-Id: Date: Fri, 6 Dec 96 16:54 MET X-Newsreader: knews 0.9.6 Organization: Privat Site running FreeBSD References: From: shanee@rabbit.augusta.de (Andreas Kohout) Subject: Re: mount_mfs X-Original-Newsgroups: muc.lists.freebsd.current In-Reply-To: To: current@freebsd.org, paulo@isr.uc.pt Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article , paulo@isr.uc.pt (Paulo Menezes) writes: > 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? from /usr/share/doc/handbook/handbook.ascii options MFS Memory-mapped file system. This is basically a RAM disk for fast storage of temporary files, useful if you have a lot of swap space that you want to take advantage of. A perfect place to mount an MFS partition is on the /tmp directory, since many programs store temporary data here. To mount an MFS RAM disk on /tmp, add the following line to /etc/fstab and then reboot or type mount /tmp: /dev/wd1s2b /tmp mfs rw 0 0 Note: Replace the /dev/wd1s2b with the name of your swap partition, which will be listed in your /etc/fstab as follows: /dev/wd1s2b none swap sw 0 0 Note: Also, the MFS filesystem can not be dynamically loaded, so you must compile it into your kernel if you want to experiment with it. -- Greeting, Andy running FreeBSD-current ---------------------------------------------------------------------------