[Sderby] (no subject)

Clive Jones sderby at mailman.lug.org.uk
Tue Aug 27 09:30:01 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 27 Aug 2002 7:40 am, Gerry Mayfield wrote:

> Our Linux box has been set up by a supplier and has 3 partitions (/, swap
> and /home).  The / directory has only 3% free space and I believe this is
> sometimes causing problems.  I need to understand the boundarys of each
> partition.

fdisk -l /dev/hda

will list the partition information of the drive /dev/hda

> There is a directory called 'home' is everything uner that directory the
> '/home' partition, 

yes

> and if so I cannot see anything called 'swap', but once
> identified, presumably the rest is '/'?

try

swapon -s

to show swap into.

> I am probably miles off the mark, but really need some help understanding
> this.

Other useful commands wrt disk usage are df and du.

> Thanks for any help anyone can render.

3% doesn't sound like much free space - has it always been only 3%, or is 
usage of the partition still growing?  There may be temporary files which are 
not being cleaned up, or a problem with log rotation etc etc.  You can use du 
to identify where space is being used.

HTH

C.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9azgj+prcXMebSWQRAuvNAJ418aYlfAaJtBJNX31NGZhBhKgIiwCgrRBv
mryOQrTX1LDUw0nSdgkPPM4=
=sRlK
-----END PGP SIGNATURE-----