From owner-freebsd-questions@FreeBSD.ORG Sun Oct 10 11:35:02 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10FCA106564A for ; Sun, 10 Oct 2010 11:35:02 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id D6D168FC1A for ; Sun, 10 Oct 2010 11:35:01 +0000 (UTC) Received: by iwn8 with SMTP id 8so3275816iwn.13 for ; Sun, 10 Oct 2010 04:35:01 -0700 (PDT) Received: by 10.231.157.205 with SMTP id c13mr3849730ibx.71.1286710501109; Sun, 10 Oct 2010 04:35:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.166.77 with HTTP; Sun, 10 Oct 2010 04:34:40 -0700 (PDT) In-Reply-To: <201010100940.29438.jmc-freebsd2@milibyte.co.uk> References: <4CB0A8A1.5040904@qeng-ho.org> <201010100940.29438.jmc-freebsd2@milibyte.co.uk> From: Eitan Adler Date: Sun, 10 Oct 2010 11:34:40 +0000 Message-ID: To: Mike Clarke Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Caleb Stein , freebsd-questions@freebsd.org, Arthur Chance Subject: Re: Clean up / filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2010 11:35:02 -0000 On Sun, Oct 10, 2010 at 8:40 AM, Mike Clarke wrote: > On Saturday 09 October 2010, Arthur Chance wrote: > >> Not if running an X desktop, as all sorts of things get stuck in /tmp >> that are needed. In single user mode it should be safe, and it >> probably is when simply running on the console. >> >> As a long term solution, if you wish to clear /tmp every reboot add >> clear_tmp_enable=3D"YES"=C2=A0=C2=A0# Clear /tmp at startup. >> to your /etc/rc.conf > You may also want to consider changing /tmp to be a TMPFS file system add the line tmpfs /tmp tmpfs rw,mode=3D01777 0 0 to /etc/fstab (and remove any other /tmp lines). A warning will come saying that it is highly experimental - but I've been running with it for a while now without any issues. --=20 Eitan Adler