Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: how do i manage swap ?, noob in the house< Next Oldest | Next Newest >
kamaradski Offline





Group: Members
Posts: 24
Joined: Dec. 2006
Posted: Dec. 10 2006,17:00 QUOTE

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
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 10 2006,17:10 QUOTE

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
Back to top
Profile PM WEB 
kamaradski Offline





Group: Members
Posts: 24
Joined: Dec. 2006
Posted: Dec. 10 2006,17:45 QUOTE

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
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 10 2006,17:55 QUOTE

The 2gb limit should be lifted in the next release v3.2
A swap partition should be auto detected upon next boot.
Back to top
Profile PM WEB 
kamaradski Offline





Group: Members
Posts: 24
Joined: Dec. 2006
Posted: Dec. 10 2006,19:14 QUOTE

thankz roberts, for your help on this.

apriciated much !
kamaradski
Back to top
Profile PM 
9 replies since Dec. 10 2006,17:00 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: how do i manage swap ?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code