From owner-freebsd-hackers Fri Oct 5 8:45:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from blacklamb.mykitchentable.net (ekgr-dsl3-t103.citlink.net [207.173.248.103]) by hub.freebsd.org (Postfix) with ESMTP id 7F21137B408 for ; Fri, 5 Oct 2001 08:45:22 -0700 (PDT) Received: from tagalong (unknown [165.107.42.205]) by blacklamb.mykitchentable.net (Postfix) with SMTP id AFEDEEE623 for ; Fri, 5 Oct 2001 08:45:12 -0700 (PDT) From: "Drew Tomlinson" To: Subject: FW: How To Recreate /var Files? Date: Fri, 5 Oct 2001 08:42:45 -0700 Message-ID: <5CD46247635BD511B6B100A0CC3F023925A10E@ldcmsx01.lc.ca.gov> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I posted a message to Questions and received the response below which resolved half of the problem. I *can* reinstall FBSD without much pain as it was a (mostly) fresh install before I ruined it. But I would *really* like to learn how to fix this as opposed to starting over. I believe there is some part of the install process that creates the default files. What is it and can I run just that part? I thank you for your time! Drew ------------------------------------------------------ "Mikko Tyolajarvi" wrote in message news:200110050004.f9504fk85972@mikko.rsa.com... > In local.freebsd.questions you write: > >> In my on-going quest to master FreeBSD, I have made another big mistake. :) >> I was trying to move /var to /usr/var but have only succeeded in deleting >> /var. It's a new install so all I really want to do is recreate the default >> directory structure that is included in a normal install. I have source >> code on the system. What is the way I can do this short of reinstalling >> everything? > > Try something like: > > # cd /var > # mtree -uf /etc/mtree/BSD.var Thank you very much. This worked to create the directory structure but it did not create the default files in the structure. Is there some way to do that? Thanks again, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message