From owner-freebsd-doc@FreeBSD.ORG Mon Jul 30 09:15:26 2007 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D48E816A417 for ; Mon, 30 Jul 2007 09:15:26 +0000 (UTC) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (ns0.blackend.org [82.227.222.164]) by mx1.freebsd.org (Postfix) with ESMTP id 603E113C458 for ; Mon, 30 Jul 2007 09:15:26 +0000 (UTC) (envelope-from marc@blackend.org) Received: from gothic.blackend.org (gothic.blackend.org [192.168.1.203]) by abigail.blackend.org (8.13.4/8.13.3) with ESMTP id l6U9FPit042081; Mon, 30 Jul 2007 11:15:25 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: from gothic.blackend.org (localhost.blackend.org [127.0.0.1]) by gothic.blackend.org (8.14.1/8.13.8) with ESMTP id l6U9FPx2001128; Mon, 30 Jul 2007 11:15:25 +0200 (CEST) (envelope-from marc@gothic.blackend.org) Received: (from marc@localhost) by gothic.blackend.org (8.14.1/8.13.8/Submit) id l6U9FO4a001127; Mon, 30 Jul 2007 11:15:24 +0200 (CEST) (envelope-from marc) Date: Mon, 30 Jul 2007 11:15:24 +0200 From: Marc Fonvieille To: Lauri Suoranta Message-ID: <20070730091524.GB993@gothic.blackend.org> References: <46ACEB6B.9050502@suoranta.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46ACEB6B.9050502@suoranta.net> X-Useless-Header: blackend.org X-Operating-System: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.15 (2007-04-06) Cc: doc@FreeBSD.org Subject: Re: FreeBSD Handbook - 2.6 Allocating Disk Space X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 09:15:26 -0000 On Sun, Jul 29, 2007 at 10:32:59PM +0300, Lauri Suoranta wrote: > Above-mentioned chapter has table 2-2 as a suggestion how to partition a > disk. It suggests to allocate 50 MB partition for /var. That seems to be a > bad idea because pkg_add needs lots of space there while installing > packages. Many installations will fail unless you tweak pkg_add's path > variables. According to pkg_add(1) manual page: The environment variables PKG_TMPDIR and TMPDIR, in that order, are taken to name temporary directories where pkg_add will attempt to create its staging area in. If these variables are not present or if the directo- ries named lack sufficient space, then pkg_add will use the first of /var/tmp, /tmp or /usr/tmp with sufficient space. But I think 50MB is not enough, just because people may use portsnap, here's what I have on my workstation: /var/db% du -sh 167M . 200MB seems closer to what one will need. -- Marc