how do i manage swap ?Forum: HD Install Topic: how do i manage swap ? started by: kamaradski Posted by kamaradski on Dec. 10 2006,17:00
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 ? :
or should i set it elsewhere ? thz in advance Posted by roberts on Dec. 10 2006,17:10
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 Posted by kamaradski on Dec. 10 2006,17:45
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 Posted by roberts on Dec. 10 2006,17:55
The 2gb limit should be lifted in the next release v3.2A swap partition should be auto detected upon next boot. Posted by kamaradski on Dec. 10 2006,19:14
thankz roberts, for your help on this. apriciated much ! kamaradski Posted by kamaradski on Dec. 11 2006,11:26
i hate to say this, but it didn't activate my swap on reboot.makeing a edit in fstab doesn't work eighter, i have to do both the mkswap and swapon on reboot. so what's next ? greets kamaradski Posted by roberts on Dec. 11 2006,16:50
And fdisk -l displays the partition as what type?Should be type 82 "Linux Swap" Posted by kamaradski on Dec. 11 2006,19:47
it is indeed 82after running the mkswap and swapon it works like a sweet. it only doesn't hold it after reboot.
greets kamaradski Posted by roberts on Dec. 11 2006,20:46
I cannot reproduce your condition.Works fine on several test machines. You can always add those two lines to /opt/bootlocal.sh Posted by kamaradski on Dec. 11 2006,23:05
ok thz again.This install of DSL i'm currently running is still a testversion for me to familiarize (pff hard word) myself with DSL and squid. so i will reinstall it for final, and will try to reproduce it myself. if i succeed i let you know how i did it. there might be a way to prevent it for other users (if needed) i'll play with squid now for a couple of day's and forget about the swap till i know how to flawlessly install this combo. i'll keep you updated kamaradski |