From owner-freebsd-questions Fri Aug 4 11:22:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by hub.freebsd.org (Postfix) with ESMTP id 8862B37B635 for ; Fri, 4 Aug 2000 11:22:13 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.255.96.123]) by mta03-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000804182207.SNNX16423.mta03-svc.ntlworld.com@parish.my.domain>; Fri, 4 Aug 2000 19:22:07 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id TAA01606; Fri, 4 Aug 2000 19:22:04 +0100 (BST) (envelope-from mark) Date: Fri, 4 Aug 2000 19:22:03 +0100 From: Mark Ovens To: Adam Hefetz Cc: freebsd-questions@freebsd.org Subject: Re: restoring /var/db Message-ID: <20000804192203.F236@parish> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from adam_hefetz@hotmail.com on Fri, Aug 04, 2000 at 03:27:04PM +0000 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 04, 2000 at 03:27:04PM +0000, Adam Hefetz wrote: > Hi, > I accedently deleted /var while trying to move it to /usr/var. Most of the > things in /var I managed to restore but is there any way to restore /var/db > and more important /var/db/pkg? > Are you sure you've deleted it? When I was moving /var to /usr/var I somehow managed to move all the files from /var to /usr/var and then mounted the empty /var partition on top of /usr/var :/ I *think* there is a way using a target to make(1), but I'm not sure. You could try something like: # cd /path/to/port # make FORCE_PKG_REGISTER=yes NO_INSTALL=yes install The NO_INSTALL variable is a dummy target so I would expect the above to do a build and dummy install but create the /var/db/pkg entries. Disclaimer: I haven't tried this so it may not work. > Thanks, Adam > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message