From owner-freebsd-questions Sun Mar 19 12:33: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 4672137B7E5 for ; Sun, 19 Mar 2000 12:32:58 -0800 (PST) (envelope-from Doug@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id MAA46190; Sun, 19 Mar 2000 12:32:44 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38D5396B.2502A81C@gorean.org> Date: Sun, 19 Mar 2000 12:32:43 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0316 i386) X-Accept-Language: en MIME-Version: 1.0 To: Morten-Christian Bernson Cc: Giorgos Keramidas , freebsd-questions@FreeBSD.ORG Subject: Re: .. /var/log/mqueue low on space msgs References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Morten-Christian Bernson wrote: > I don`t believe I had anything important in /var, but I can`t boot without > the /var dir set up properly, so my question is... How do I restore my > /var dir? I have no backup (stupid me I guess). > > I think I will backup before following any usefull tips and tricks here > later. A) ALWAYS have good backups before doing any system administration tasks. No one should need to remind you about that. B) You can use mergemaster to generate a virginal /var directory. Just do 'mergemaster -v -t /tmp/temproot' then after the directories are created hit Ctrl-C, go to /tmp/temproot and 'cp -rP var /'. This his assuming that you have properly set up your symlink from /usr/var to /var. Good luck, Doug -- "While the future's there for anyone to change, still you know it seems, it would be easier sometimes to change the past" - Jackson Browne, "Fountain of Sorrow" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message