Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Sep 2009 22:38:22 +0200
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Cc:        jaymax <jaymax36@gmail.com>
Subject:   Re: Inconsistency in root partition size
Message-ID:  <200909082238.22862.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <25338956.post@talk.nabble.com>
References:  <25314145.post@talk.nabble.com> <200909072112.14374.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <25338956.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 08 September 2009 04:14:55 jaymax wrote:

> > restore -tf /disk03/dump/root2.dump > rootrestore-0.lst
>
> To my surprise rootrestore-0.lst contains a whole listings of ./usr/ files
> ex.
>
> >       2926      ./usr/include/bsnmp/snmpmod.h
> >       2927      ./usr/include/bsnmp/snmp_atm.h
>
> Now /usr is on a separate and distinct partition
>
> > /dev/ad0s1f  36205990  25765232  7544280    77%    /usr
>
> Hope someone can make some sense of this.

This is exactly what I figured. Some files are hiding behind a mount point. 
The got there most likely, cause you did make installworld without /usr 
mounted, which would happen if you have the FreeBSD source tree on a different 
location, reboot into single user mode, only mount the source tree and do 
installworld.

To repair, reboot into single user. Run the following commands:
fsck -y /
mount -u -o rw /
rm -rf /usr/*
exit

This should delete the offending files.
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909082238.22862.mel.flynn%2Bfbsd.questions>