From owner-freebsd-questions@FreeBSD.ORG Tue Jul 6 19:58:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1C66106566B for ; Tue, 6 Jul 2010 19:58:16 +0000 (UTC) (envelope-from mike.barnardq@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7DAC98FC12 for ; Tue, 6 Jul 2010 19:58:16 +0000 (UTC) Received: by mail-fx0-f54.google.com with SMTP id 13so5574544fxm.13 for ; Tue, 06 Jul 2010 12:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=kzoRpOji81+seoHNXtWWrh4/pP6RGKgocL4bxrlti7w=; b=dsI88Jox9PC/emgflctvg9mczURUST9FqprrvZlAhpVeRFykZWGfzsGtPyJmb+PLpy bjdaYdlNjewqTucetxcj6oANpTt+1WgdptdJRMxlu+AIxDm2zR9gZH9pP5hB39XNCa77 X3FYBPPVjAy4h7RoiYMghfJLUd+JRS4lyaNcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gvaQMFd7V3SGydZV4qm1GOhzE1xAKXnV1WD78hrsuCuq6ifGpZacci0JWctxKEaZlf I+JS34AFSaJt2z28pbVK0pW8lNsZRBHzi4nmXJ21zOCsuv23VMHik8KvmcKpWY18Kkp7 qycyBc0zkEc45DEn6LdqYQx8OJ+tRc0flDZYk= MIME-Version: 1.0 Received: by 10.223.105.197 with SMTP id u5mr4882418fao.100.1278446296130; Tue, 06 Jul 2010 12:58:16 -0700 (PDT) Received: by 10.223.117.206 with HTTP; Tue, 6 Jul 2010 12:58:16 -0700 (PDT) In-Reply-To: References: <44wrt88wdk.fsf@be-well.ilk.org> Date: Tue, 6 Jul 2010 22:58:16 +0300 Message-ID: From: Mike Barnard To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: /usr/local empty after upgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 19:58:17 -0000 > mtree -p /usr/local < /etc/mtree/BSD.local.dist >> >> > This is the command I have been looking for.... > hmmm... this give me no joy... mtree complains about the paths all missing, but does not create them. I can create files and directories in /usr/local manually. ## Creating a file in /usr/local $touch test $ls /usr/local/ test $df -h Filesystem Size Used Avail Capacity Mounted on /dev/da0s1a 1.9G 480M 1.3G 26% / devfs 1.0K 1.0K 0B 100% /dev /dev/da0s1g.journal 67G 4.0K 62G 0% /resource /dev/da0s1e 496M 12K 456M 0% /tmp /dev/da0s1f.journal 52G 2.9G 45G 6% /usr /dev/da0s1d 4.8G 99M 4.4G 2% /var ## Creating a directory in /usr/local $mkdir test-dir $ls /usr/local test test-dir ## editing the "test" file... $md5 -s "/usr/local" > test $cat test MD5 ("/usr/local") = ecb11dda71a57ccdbf63675d24260fe6 -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ------------------------------------------------------------