Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2006 18:56:12 -0700
From:      "Wil Hatfield" <freebsd@hyperconx.com>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: Partitioning on existing system
Message-ID:  <NGBBKBOMKLFOJCCDHPEOKEDOPPAA.freebsd@hyperconx.com>
In-Reply-To: <NGBBKBOMKLFOJCCDHPEOEEDNPPAA.freebsd@hyperconx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> tmpmfs="YES"
> tmpsize="100m"
> tmpmfs_flags="-S -M -o noexec,nosuid"
>
> Is there something wrong with this because it isn't creating a
> /tmp at all.
>
> Copyright (c) 1992-2006 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>         The Regents of the University of California. All rights reserved.
> FreeBSD 6.1-PRERELEASE #4: Mon Apr  3 22:25:51 PDT 2006

Ok, I am going to solve my own problem just for search engine food.

Aside from adding the rc.conf variables there has to also be a /tmp folder
in the first place. I don't know why. I would figure that if needed that
that would be part of the boot scripts. But it isn't, so for us tmpmfs
newbies:

Create an empty /tmp folder

Add the following to rc.conf:
tmpmfs="YES"
tmpsize="50m"
tmpmfs_flags="-S -M -o noexec,nosuid"
clear_tmp_enable="YES"

reboot

--
Wil Hatfield





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