Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2003 11:32:53 -0700
From:      Joshua Oreman <oremanj@get-linux.org>
To:        mbaki@whywire.net
Cc:        questions@freebsd.org
Subject:   Re: mfs
Message-ID:  <20030813183253.GB3027@webserver>
In-Reply-To: <200308131758.h7DHwTXq008184@nebula.whywire.net>
References:  <200308131758.h7DHwTXq008184@nebula.whywire.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 13, 2003 at 05:58:29PM -0000 or thereabouts, mbaki@whywire.net wrote:
> Hi all,
> 
> I'm trying to setup /var on a mermory file system on Freebsd 5.1, any good documents that will 
> help me, it's my first time.

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
# MD=`mdconfig -a -t swap -s XXXm`    # replace XXXm with size
# newfs /dev/$MD
# mount /dev/$MD /tmp
# unset MD

It will disappear when the system goes down.

-- Josh

> 
> 
> 
> 
> Thx
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



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