From owner-freebsd-questions@FreeBSD.ORG Fri May 2 23:41:55 2003 Return-Path: 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 A96EB37B401 for ; Fri, 2 May 2003 23:41:55 -0700 (PDT) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E27743F75 for ; Fri, 2 May 2003 23:41:54 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.12.9/8.12.9) with ESMTP id h436fpWv026984; Sat, 3 May 2003 02:41:52 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20030502054102.GA22505@arpa.com> References: <20030502051509.GA20957@arpa.com> <20030502053031.GD58262@dan.emsphone.com> <20030502054102.GA22505@arpa.com> Date: Sat, 3 May 2003 02:41:50 -0400 To: nick nelson From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.28 cc: questions@freebsd.org Subject: Re: repartition /tmp? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 06:41:55 -0000 At 12:41 AM -0500 5/2/03, nick nelson wrote: >On Fri May 02, 2003, Dan Nelson propagated the following: > > > I appeared to have mitakenly made my /tmp partition on > > > this machine way too small (missed a 0 completely.). > > > > What I end up doing is removing /tmp and symlinking it > > to /usr/tmp. > >This sounds like a good idea, however it's not as [simple as] >just deleting it is it? Since it's a partition, it'll give >me a 'device busy' error if i try to delete it (as expected.) I assume you can afford to reboot the machine. - Edit /etc/fstab to comment out the entry for /tmp - Reboot You will now have a /tmp directory, and you will not have a partition mounted over that directory. Move the /tmp directory to /tmp-s (and maybe change the /etc/fstab entry to mount the small partition over /tmp-s, just to have it somewhere), and then create /tmp as a symlink into somewhere else. Another tactic which might help is to set the environment variable named 'TMPDIR' to some other location. However, doing it via the environment variable will be a lot more error-prone (because you have to keep setting that variable for every process which might chew up a lot of space in /tmp, and there are plenty of things which ignore that setting even if you do remember to set it...). -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu