From owner-freebsd-questions@FreeBSD.ORG Wed Aug 22 13:26:01 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01C2A106564A for ; Wed, 22 Aug 2012 13:26:01 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01a.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id 8C61B8FC08 for ; Wed, 22 Aug 2012 13:26:00 +0000 (UTC) Received: from [31.186.37.179] (helo=rpi-1.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1T4As9-0004bK-He for freebsd-questions@freebsd.org; Wed, 22 Aug 2012 14:21:25 +0100 Received: from [192.168.63.1] (helo=steve.marelmo.com) by rpi-1.marelmo.com with smtp (Exim 4.72) (envelope-from ) id 1T4Awu-0007PQ-Co for freebsd-questions@freebsd.org; Wed, 22 Aug 2012 14:26:20 +0100 Date: Wed, 22 Aug 2012 14:25:51 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Message-Id: <20120822142551.ceefe569.steve@sohara.org> In-Reply-To: <201208221314.q7MDEZ4K060644@mail.r-bonomi.com> References: <201208221314.q7MDEZ4K060644@mail.r-bonomi.com> X-Mailer: Sylpheed 3.1.3 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX, Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) Subject: Re: /tmp filesystem full 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: Wed, 22 Aug 2012 13:26:01 -0000 On Wed, 22 Aug 2012 08:14:35 -0500 (CDT) Robert Bonomi wrote: > > From owner-freebsd-questions@freebsd.org Wed Aug 22 05:59:52 2012 > > Date: Wed, 22 Aug 2012 12:59:13 +0200 > > From: Andy Wodfer > > To: freebsd-questions > > Subject: /tmp filesystem full > > > > Hi, > > I have about 500MB in my /tmp and it seems to be too small when the > > periodic LOCATE script runs every week. > > > > What's the best way to increase the size of /tmp ? Could I simply > > remove it and create a symbolic link ln -s to say /usr/tmp instead > > (where I have several hundred GBs free)? > > That is a BAD IDEA(tm)! > > There are appliations that assume /tmp, /var/tmp, and /usr/tmp are > _distinct_ directories. They will create files _with_the_same_name_ in > two of those 'temp' locations, expecting them to be unique.o /usr/tmp usually does not exist so creating it and symlinking /tmp to it is OK. > It _is_ OK to symlink /tmp to 'somewhere else', with the caveat that it > "should" be on the '/' filesystem -- one may need it in single-user mode > befoe other filesystems are mounted. You can 'live dangerously' and > symlink to a dir on a different filesystem and _probably_ not have > problems. A null mount would be a safer way of pushing /tmp onto /usr or indeed any other filesystem - that way when the null mount fails the mount point is still a directory. There's really no point in linking it elsewhere on the same filesystem. -- Steve O'Hara-Smith | Directable Mirror Arrays C:>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/