Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Bernt on August 05, 2003, 12:22:31 AM

Title: Swap disk (file)
Post by: Bernt on August 05, 2003, 12:22:31 AM
Hi!

I'm running out of diskspace on My SME server. Only 500MB left. Can I use it all or do the system need it for swap? Other Linux system I haved installed have a fixed size for the swap.

Regards
/Bernt
Title: Re: Swap disk (file)
Post by: Dan Brown on August 05, 2003, 12:27:57 AM
SME, like any other recent Linux distribution I've seen, uses a separate partition for swap.
Title: Re: Swap disk (file)
Post by: Bernt on August 05, 2003, 12:58:51 AM
Ok, thanks for the reply. Is there a way to see how big the swap partition is?
Title: Re: Swap disk (file)
Post by: Nathan Fowler on August 05, 2003, 01:33:19 AM
df -h
Title: Re: Swap disk (file)
Post by: Lasse Johansson on August 05, 2003, 11:00:23 AM
df -h wont show any information about your swap area, I think...

Try

swapon -s

instead....


Regards
Lasse
Title: Re: Swap disk (file)
Post by: Nathan Fowler on August 05, 2003, 06:13:00 PM
Lasse, you're absolutely right.  I could have sworn df did, but I just tried and it doesn't.  I must have been thinking of "free -m" which displays free/used/cached memory and swap information.

Thanks for the correction.
Title: Re: Swap disk (file)
Post by: Bernt on August 06, 2003, 12:10:51 AM
Thanx!
They are all useful commands. :-)
Anyway, what happens if I use all free space on the HD?