From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 10:10:37 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 BDA9537B401 for ; Mon, 2 Jun 2003 10:10:37 -0700 (PDT) Received: from MX1.estpak.ee (ld3.estpak.ee [194.126.101.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83E1E43F75 for ; Mon, 2 Jun 2003 10:10:34 -0700 (PDT) (envelope-from kalts@estpak.ee) Received: from kevad.internal (80-235-40-230-dsl.mus.estpak.ee [80.235.40.230]) by MX1.estpak.ee (Postfix) with ESMTP id EEE8B888B7; Mon, 2 Jun 2003 20:08:49 +0300 (EEST) Received: by kevad.internal (Postfix, from userid 1000) id D3BAD4483; Mon, 2 Jun 2003 13:10:34 +0300 (EEST) Date: Mon, 2 Jun 2003 13:10:34 +0300 From: Vallo Kallaste To: Joseph Maxwell Message-ID: <20030602101034.GA355@kevad.internal> References: <3ED8FB4E.76498642@jaymax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ED8FB4E.76498642@jaymax.com> User-Agent: Mutt/1.5.4i cc: FreeBSD Users Subject: Re: Repositioning /var | /tmp to avoid disk full condition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kalts@estpak.ee List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 17:10:38 -0000 On Sat, May 31, 2003 at 11:58:23AM -0700, Joseph Maxwell wrote: > How can I restore the full functioning structural integrity as before, > of course the contents of the /usr/var directory was wiped out somwhere > along the way, sans log, sans mail, sans everything. Just want to > continue as before. FreeBSD uses mtree(8) to create distribution directories, look into /etc/mtree, you find the templates there. In case you've lost the /var hierarchy, the simplest way to recreate it is: mtree -deU -f /etc/mtree/BSD.var.dist -p /var This is what /usr/src/etc/Makefile distribution target uses, also. -- Vallo Kallaste