Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2000 19:22:03 +0100
From:      Mark Ovens <marko@freebsd.org>
To:        Adam Hefetz <adam_hefetz@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: restoring /var/db
Message-ID:  <20000804192203.F236@parish>
In-Reply-To: <F88w9oIgpW1JDvIr4N200005b55@hotmail.com>; from adam_hefetz@hotmail.com on Fri, Aug 04, 2000 at 03:27:04PM %2B0000
References:  <F88w9oIgpW1JDvIr4N200005b55@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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