From owner-freebsd-questions Wed Jul 5 22:20:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from eagle.prod.itd.earthlink.net (eagle.prod.itd.earthlink.net [207.217.120.24]) by hub.freebsd.org (Postfix) with ESMTP id 9B90337C12C for ; Wed, 5 Jul 2000 22:20:07 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from dialin-client.earthlink.net (pool1112.cvx21-bradley.dialup.earthlink.net [209.179.196.92]) by eagle.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id WAA18798; Wed, 5 Jul 2000 22:20:01 -0700 (PDT) Received: (from cjc@localhost) by dialin-client.earthlink.net (8.9.3/8.9.3) id WAA00845; Wed, 5 Jul 2000 22:18:24 -0700 (PDT) Date: Wed, 5 Jul 2000 22:17:42 -0700 From: "Crist J. Clark" To: "Justin C. Sherrill" Cc: freebsd-questions@FreeBSD.ORG, so@server.i-clue.de Subject: Re: deleted /var contents Message-ID: <20000705221742.A795@dialin-client.earthlink.net> Reply-To: cjclark@alum.mit.edu References: <3963917F.9F873FC@i-clue.de> <009401bfe6bb$b0921620$7f01a8c0@rochester.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <009401bfe6bb$b0921620$7f01a8c0@rochester.rr.com>; from jsherri1@rochester.rr.com on Wed, Jul 05, 2000 at 04:00:38PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jul 05, 2000 at 04:00:38PM -0400, Justin C. Sherrill wrote: > > > While trying to expand /var, I ended up deleting everything in it. > > > > > > Is there a way I can reassemble a "default" /var directory? > > > > If you did make world recently, a var directory may exist somewhere in > > /usr/obj/. > > Otherwise, grab it from the live filesystem CD-ROM. > > No such luck with /usr/obj/... I installed via FTP. Is there something I > can do other than wait for the CDs to arrive in the mail? You can rebuild the directory hierarchy with, # mtree < /etc/mtree/BSD.var.dist But that does not touch files you might need. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message