From owner-freebsd-questions Thu Feb 7 15: 0:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pianosa.catch22.org (pianosa.catch22.org [64.81.48.19]) by hub.freebsd.org (Postfix) with ESMTP id C77DF37B41C for ; Thu, 7 Feb 2002 15:00:50 -0800 (PST) Received: by pianosa.catch22.org (Postfix, from userid 1006) id B5EF0364; Thu, 7 Feb 2002 15:00:47 -0800 (PST) Date: Thu, 7 Feb 2002 15:00:47 -0800 From: Danny Howard To: Taro Ikai Cc: questions@freebsd.org Subject: Re: /var short of disk space because of /var/pkg/db Message-ID: <20020207150047.X23465@pianosa.catch22.org> References: <053201c1afed$9e47a550$c801a8c0@p1400> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <053201c1afed$9e47a550$c801a8c0@p1400>; from ikait@rcn.com on Thu, Feb 07, 2002 at 10:39:23AM -0500 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 07, 2002 at 10:39:23AM -0500, Taro Ikai wrote: > My /var partition got full. > > I had the FreeBSD installer automatically allocate partitions, and > as a result, my /var partition is less than 20MB in size. The installer seeks only to crush your hopes and aspirations. Do not put trust its counsel on matters of partitioning. > Recently I started using portupgrade, and the program fattened > the files under /var/pkg/db. > > Question: > > 1) Can I temporarily delete /var/pkg/db/*? Can I then safely > remake the content of this directory using portsdb? > > 2) Can I make the system use space under /usr instead of > /var/pkg/db? Check this out: mkdir -p /usr/var/pkg mv /var/pkg/db /usr/var/pkg ln -s /usr/var/pkg/db /var/pkg/db This creates a place under /usr for the directory, move it over there, and then creates a symlink, so when you look in /var, you end up instead in /usr. Then you are happy. -danny -- http://dannyman.toldme.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message