From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 11:38:15 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8125537B401 for ; Wed, 13 Aug 2003 11:38:15 -0700 (PDT) Received: from shrike.submonkey.net (pc1-cdif2-5-cust38.cdif.cable.ntl.com [81.101.150.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF6FD43F85 for ; Wed, 13 Aug 2003 11:38:14 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.20) id 19n0VI-000AFG-QT; Wed, 13 Aug 2003 19:37:48 +0100 Date: Wed, 13 Aug 2003 19:37:48 +0100 From: Ceri Davies To: Joshua Oreman Message-ID: <20030813183748.GF38111@submonkey.net> Mail-Followup-To: Ceri Davies , Joshua Oreman , mbaki@whywire.net, questions@freebsd.org References: <200308131758.h7DHwTXq008184@nebula.whywire.net> <20030813183253.GB3027@webserver> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NQTVMVnDVuULnIzU" Content-Disposition: inline In-Reply-To: <20030813183253.GB3027@webserver> User-Agent: Mutt/1.5.4i Sender: Ceri Davies cc: questions@freebsd.org Subject: Re: mfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 18:38:15 -0000 --NQTVMVnDVuULnIzU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 13, 2003 at 11:32:53AM -0700, Joshua Oreman wrote: > On Wed, Aug 13, 2003 at 05:58:29PM -0000 or thereabouts, mbaki@whywire.ne= t wrote: > > Hi all, > >=20 > > I'm trying to setup /var on a mermory file system on Freebsd 5.1, any g= ood documents that will=20 > > help me, it's my first time. >=20 > Don't set up /var on MFS, it holds stuff that has to be preserved across = reboots. > To set up /tmp on a MFS (for this one boot), do like so: > # mv /tmp /tmp.old > # mkdir /tmp Don't forget to add the sticky bit here: # chmod 1777 /tmp > # MD=3D`mdconfig -a -t swap -s XXXm` # replace XXXm with size > # newfs /dev/$MD > # mount /dev/$MD /tmp > # unset MD >=20 > It will disappear when the system goes down. To have it reappear on boot, add the following to your /etc/fstab: md /tmp mfs rw,nosuid,async,noatime,nosymfollow,nodev,-s=3D524288= 0 0 You may want to change the options and size. Ceri --=20 User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR? Iniaes: Sure, I can accept all forms of payment. -- www.chatterboxchallenge.com --NQTVMVnDVuULnIzU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/OoV8ocfcwTS3JF8RAlS/AJ9T5MqASQkm0guKSkGJLEB/GtklwACfdikt s0gLb49UuavJg5GZHfQSefs= =hGIz -----END PGP SIGNATURE----- --NQTVMVnDVuULnIzU--