roys2...@sdf.lonestar.org wrote:
> Hello,
> 
> Can someone please tell me how I can clean my root partition?
> 
> df -h 
> 
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/wd0a      2.0G    2.0G   -101M   105%    /
> /dev/wd0k      830G   84.7G    704G    11%    /home
> /dev/wd0d      3.9G   40.0K    3.7G     0%    /tmp
> /dev/wd0f     49.2G    888M   45.9G     2%    /usr
> /dev/wd0g      2.0G    159M    1.7G     8%    /usr/X11R6
> /dev/wd0h      7.9G    2.2G    5.2G    30%    /usr/local
> /dev/wd0j      3.9G   70.6M    3.7G     2%    /usr/obj
> /dev/wd0i      3.9G    683M    3.1G    18%    /usr/src
> /dev/wd0e      7.9G   68.7M    7.4G     1%    /var
> 
> When I look in my /root partition, there is only 1mb

uh... / != /root.
Or in engrish, your root partition ( "/" ) is not the same as the
"/root" directory (which is one of many things in that partition).
You don't have a /root partition according to that (nor is there
reason to have one, normally)

Start with doing something like this:

$ cd /
$ sudo du -hs *
2.0K    altroot
6.2M    bin
6.9M    bsd
2.3M    bsd.rd
6.9M    bsd.sp
40.0K   dev
3.6M    etc
1.0G    home
2.0K    mnt
50.0K   ofwboot
14.0K   root
15.2M   sbin
2.0K    stand
0B      sys
2.0K    tmp
1.3G    usr
7.6M    var

(that's a sparc64 machine, so the binaries in my /bin, /sbin and
similar are probably much bigger than yours)

Now, everything that isn't in your list above in df -h is ignored, as
it is in a separate partition.  The rest is stuff sitting simply in
your root partition.  Being that you have a rather large root
partition, you have something that has gone horribly wrong, not just
casual "oops, put a few too many files someplace".  And this probably
also means you are doing things as root you should be doing, as
nothing in the / is normally writable by ordinary users.

Common place to do things wrong: /dev (i.e., bigoutput >/dev/nul will
create a big file in the /dev directory, rather than "/dev/null",
which is the bitbucket device.

Another thing that can happen is you can have data in (for example)
the /usr directory of the root device BEFORE you mount the /usr
partition at that location.  That's a bit icky to fix sometimes,
booting bsd.rd and poking around is sometimes productive.

Nick.

Reply via email to