HD Install :: how do i manage swap ?



hello,

i think maybe the swap is not mounted correctly and might not be in use.
if i give the " mount -l"  command, i don't see my swap mounted (hda2)

so i should set a rule in my /etc/fstab ?
and what should it say ? :
Code Sample

/dev/hda2  /mnt/hda2  swap  defaults  0  0


or should i set it elsewhere ?

thz in advance

swap is not mounted as normal drive partitions.

To see if a swap partition was created use the command

sudo fdisk -l

To see if swap is setup use the command

free

You should not have to setup an entry in fstab, as normally DSL/Knoppix will regenerate it and auto detects swap partitions.

To manage swap use the commands swapon swapoff

ok  thanks a bunch !!

fdisk -l  says " swap partition is 4,8GB"
free says " swap available = o"
mkswap /dev/hda2 says "ok i make a swap of 2GB"
swapon /dev/hda2 says "ok done"

only 2 questions left:

- will it always activate swap on boot now ? or do i need to edit the swapon in bootscript?
- why doesn't it fill the entire partition with swap. it uses only half of it.

i will install a web-cache server, i it might need loads of swap and mem.

greets

The 2gb limit should be lifted in the next release v3.2
A swap partition should be auto detected upon next boot.

thankz roberts, for your help on this.

apriciated much !
kamaradski

Next Page...
original here.