From owner-freebsd-questions@FreeBSD.ORG Sat Apr 22 11:56:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 1AF5916A404 for ; Sat, 22 Apr 2006 11:56:02 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42DBD43D46 for ; Sat, 22 Apr 2006 11:56:01 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend2.internal (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 7D727D4C5C4 for ; Sat, 22 Apr 2006 07:56:00 -0400 (EDT) Received: from frontend3.messagingengine.com ([10.202.2.152]) by frontend2.internal (MEProxy); Sat, 22 Apr 2006 07:55:21 -0400 X-Sasl-enc: hgqO9tew+PrDtz4zXMbhXflBQVwG6SOd3JTjgdbkVVzj 1145706921 Received: from bb-87-81-140-128.ukonline.co.uk (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by frontend3.messagingengine.com (Postfix) with ESMTP id 09724252A for ; Sat, 22 Apr 2006 07:55:20 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Sat, 22 Apr 2006 12:55:56 +0100 User-Agent: KMail/1.9.1 References: <200604220231.38846.oliver-mailinglist@charter.net> In-Reply-To: <200604220231.38846.oliver-mailinglist@charter.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604221255.58250.list-freebsd-2004@morbius.sent.com> Subject: Re: Putting /tmp on a separate volume? 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: Sat, 22 Apr 2006 11:56:02 -0000 On Saturday 22 April 2006 10:31, Oliver Iberien wrote: > I followed the automatic suggestions for slices at install time and now > have a /tmp folder of 500M. This fills up at odd times and I was hoping to > install a second drive and mount a section of it as /tmp. > > So far I managed to get a second drive partitioned. I replaced the slice > in /etc/fstab for /tmp with one of the new partitions (in this case, > ad1s1c). KDE would not start because it did not have the permissions for > /tmp any more, so I put the following entries in /etc/devfs.conf: > > own /dev/ad1s1c root:wheel > perm /dev/ad1s1c 0777 > own /tmp root:wheel > perm /tmp 0777 > > That didn't work. I initially tried with 0666 but that failed as well. The > 0777 did not seem like a good long-term solution anyway. > 01777 But before you do that try setting clear_tmp_enable="YES" in /etc/rc.conf and daily_clean_tmps_enable="YES" in /etc/periodic.conf My /tmp typically has < 1MB in it. There are a few programs that need huge amounts of tmp space, but IMHO it's better to configure them to use somewhere else, rather than assign a large amount of space to /tmp