Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2010 17:32:28 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        gahn <ipfreak@yahoo.com>
Cc:        free bsd <freebsd-current@freebsd.org>
Subject:   Re: /tmp and swap space
Message-ID:  <4C51AD1C.2070606@infracaninophile.co.uk>
In-Reply-To: <701277.97445.qm@web52303.mail.re2.yahoo.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 29/07/2010 16:35, gahn wrote:

> is it possible to create /tmp directory under swap space? under
> solaris, it is automatically created under swap unless one specifically
> instructs the system not to do so..

Yes, this is certainly possible.  Just add:

   tmpmfs="YES"
   tmpsize="32m"

to /etc/rc.conf, and then either reboot, or run:

   /etc/rc.d/tmp start

Note that this will mount a /tmp filesystem on top of anything that's
already there, thus making those files inaccessible until you unmount
again.

(use whatever value of 32m you prefer, of course)

	Cheers,

	Matthew


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxRrSEACgkQ8Mjk52CukIyHqgCgidsRpac8v2sMRSgAI0wXl8sY
+1IAn3a/aDquRbRsLdzz8C2kS51D0/93
=y8r8
-----END PGP SIGNATURE-----
help

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