From owner-freebsd-questions@FreeBSD.ORG Mon Aug 9 20:00:34 2004 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 E583216A4D0 for ; Mon, 9 Aug 2004 20:00:34 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8225A43D1F for ; Mon, 9 Aug 2004 20:00:34 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i79JpGd25694; Mon, 9 Aug 2004 15:51:16 -0400 (EDT) From: Jerry McAllister Message-Id: <200408091951.i79JpGd25694@clunix.cl.msu.edu> To: cswiger@mac.com (Chuck Swiger) Date: Mon, 9 Aug 2004 15:51:15 -0400 (EDT) In-Reply-To: <4117CD62.4070909@mac.com> from "Chuck Swiger" at Aug 09, 2004 03:15:46 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: questions@freebsd.org cc: Gary Mulder Subject: Re: A question about /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: Mon, 09 Aug 2004 20:00:35 -0000 > > Gary Mulder wrote: > > Of course having /tmp -> /var/tmp means that you have no valid /tmp in > > single user mode where /var is not mounted. That is unless you created > > /var/tmp in single user mode, but that would mean /var would be mounted > > over the root partition's /var/tmp dir in multi-user mode, which can be > > non-intuitive to say the least. > > Excellent point. I think one is much safer having /tmp as a directory on the > root filesystem, and using something like md(4) to mount a RAMdisk over that > location when going into multiuser mode (or mount a real /tmp partition if you > prefer). Well, that is debateable. The safest is for /tmp to be its own partition/filesystem. If you have it in root, and some runaway process fills it up, it can bring the system to a grinding halt. So, unless I am making one of those setups where it is all one big filesystem - that being root (/), I protect root by putting things that can grow in an unplanned manner in separate filesystems/partitions. Things such as /tmp, /var/log, /var/spool, /var/db, /usr/src and user's own home directory space if you have users on your system. Some of these I put in a big catch all filesystem such as /home and make sym links, but since /tmp can be needed under inconvenient circumstances such as when you are trying to fix something in single user, I make it its own partition. ////jerry > > > The net result of not having a valid /tmp is that some commands issued > > in single-user mode may fail non-obviously as they might (reasonably?) > > assume /tmp is available. > > In particular, editors like vi. :-) > > -- > -Chuck > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >