Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jan 2005 13:05:42 +0000
From:      Peter Risdon <peter@circlesquared.com>
To:        Marty Landman <MLandman@face2interface.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: clearing space
Message-ID:  <1105103142.708.136.camel@lorna.circlesquared.com>
In-Reply-To: <6.2.0.14.0.20050107074632.03093500@mail.face2interface.com>
References:  <6.2.0.14.0.20050106184116.01f2aa80@mail.face2interface.com> <20050107053638.GE27020@turingmachine.mentalsiege.net> <6.2.0.14.0.20050107074632.03093500@mail.face2interface.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2005-01-07 at 07:53 -0500, Marty Landman wrote:
> At 12:36 AM 1/7/2005, afabian@austin.rr.com wrote:
> 
> >It does.  You might want to try something like:
> >
> >du -x / | sort -rn | head -15
> >
> >to figure out wheer your diskspace has gone.
> 
> Ok, I've cleared half the space by rm -r /root/.cpan.
> 
> Now I have
> 
> # df
> Filesystem  1K-blocks   Used  Avail Capacity  Mounted on
> /dev/ad0s1a    128990  60094  58578    51%    /
> /dev/ad0s1f    257998  81790 155570    34%    /tmp
> /dev/ad1s1e   2030062 926976 940682    50%    /usr
> /dev/ad0s1e    257998   2110 235250     1%    /var
> procfs              4      4      0   100%    /proc
> 
> 
> and
> 
> # du -x / | sort -rn | head -15
> 60093   /
> 15052   /root
> 13750   /root/nmap-3.50
> 12600   /sbin
> 6318    /modules.old
> 6318    /modules
> 4378    /bin
> 2766    /stand
> 1942    /root/nmap-3.50/nsock
> 1908    /root/nmap-3.50/nsock/src
> 1380    /etc
> 1174    /root/nmap-3.50/libpcre
> 1058    /root/nmap-3.50/libpcap-possiblymodified
> 888     /root/nmap-3.50/nbase
> 764     /root/nmap-3.50/docs
> 
> 
> Let's say I want to
> 
> mv /sbin /usr/sbin
> mv /root /usr/root
> 
> How problematic can this become? I can anticipate at least having to revise 
> perl scripts that reference the sendmail path, although
> 
> ln -s /usr/sbin/sendmail /sbin/sendmail
> 
> will avoid having to 'fix' source code, right?

How about:

#mv /sbin /usr/sbin
#ln -s /usr/sbin /sbin
#mv /root /usr/root
#ln -s /usr/root /root

Peter.



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