/usr/local empty after upgrade

Mike Barnard mike.barnardq at gmail.com
Tue Jul 6 19:58:17 UTC 2010

> 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

## Creating a file in /usr/local
$touch test
$ls /usr/local/

$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


Of course, you might discount this possibility, but remember that one in
a million chances happen 99% of the time.

More information about the freebsd-questions mailing list