Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2003 13:10:34 +0300
From:      Vallo Kallaste <kalts@estpak.ee>
To:        Joseph Maxwell <jemaxwell@jaymax.com>
Cc:        FreeBSD Users <questions@FreeBSD.ORG>
Subject:   Re: Repositioning /var | /tmp to avoid disk full condition
Message-ID:  <20030602101034.GA355@kevad.internal>
In-Reply-To: <3ED8FB4E.76498642@jaymax.com>
References:  <3ED8FB4E.76498642@jaymax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 31, 2003 at 11:58:23AM -0700, Joseph Maxwell
<jemaxwell@jaymax.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030602101034.GA355>