[plug] Disk Space

I am the LinuxAlien linuxalien at optusnet.com.au
Thu Jan 30 11:22:31 WST 2003


I am having some trouble with disk space so I was trying to find out where 
it all was going. I then found some interesting things. How can /var use 
more than is used total as shown by 'df'? How can / be shown as using 
nearly double the actual disk space avalible? All comands were run as root.
If /var is using a large amount of disk space what can I remove to clear 
some of it up?
Tim

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2             1.9G  1.8G   40M  98% /

$ du -hcs /var
1.9G    /var
1.9G    total

$ du -hcs /usr
960M    /usr
960M    total

$ du -hcs /
du: `/proc/1752/fd/4': No such file or directory
3.4G    /
3.4G    total


$ fdisk -l /dev/hda

Disk /dev/hda: 255 heads, 63 sectors, 524 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1         1      8001    1  FAT12
/dev/hda2             2       251   2008125   83  Linux
/dev/hda3           252       524   2192872+   5  Extended
/dev/hda5           252       507   2056288+   6  FAT16
/dev/hda6           508       524    136521   82  Linux swap


LinuxAlien

Riverton, Perth, WA



More information about the plug mailing list