Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2010 22:58:16 +0300
From:      Mike Barnard <mike.barnardq@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: /usr/local empty after upgrade
Message-ID:  <AANLkTilciccQXO0hVic6JEK1JfPGkW3Zj9_6ZwqNgn_P@mail.gmail.com>
In-Reply-To: <AANLkTik-d1osQRB5htnTgbPIPAUo-jZpxjI080x4dhwr@mail.gmail.com>
References:  <AANLkTimVWQ2MpV6C5BlgjYxb0Cv9NqgAxrPDZRbL8lCT@mail.gmail.com> <AANLkTil2LR7zfOyf-ZwI7tojiEyQ35_vFQiLSdVpAzJa@mail.gmail.com> <AANLkTimRstinCOR6tfYUrS2P9i0Q8Un65BTEvEbVfF1N@mail.gmail.com> <44wrt88wdk.fsf@be-well.ilk.org> <AANLkTik-d1osQRB5htnTgbPIPAUo-jZpxjI080x4dhwr@mail.gmail.com>

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



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