Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing swap size and installing more memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zasten
n00b
n00b


Joined: 06 May 2004
Posts: 1
Location: Stockholm

PostPosted: Sat May 22, 2004 3:09 am    Post subject: Changing swap size and installing more memory Reply with quote

Hi All,

I'm a newbie and made the jump to gentoo about two weeks ago... no more windoze on my pc! I am very impressed certainly an improvement form running mandrake. 8)

Anyway thats not the subject of this post. Lets get to it!

When I installed gentoo I made the swap partion 256 MB as I have a rather old pc with 128 MB ram. I came accross some more ram and I now want to change the size of my swap partition. I tried to emerge QTparted (a front end for parted that resembles partition magic) but it failed at some point, but I still have parted installed.

My Question: What is the best/most newbie friendly way of resizing my swap partition?

Here is what my partition table looks like...

Disk /dev/hda: 13.0 GB, 13030907904 bytes
16 heads, 63 sectors/track, 25249 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 125 62968+ 83 Linux
/dev/hda2 126 622 250488 82 Linux swap
/dev/hda3 623 25249 12412008 83 Linux
Back to top
View user's profile Send private message
tumbak
Apprentice
Apprentice


Joined: 10 Jan 2004
Posts: 230
Location: supposedly Palestine

PostPosted: Sat May 22, 2004 7:29 am    Post subject: Reply with quote

i believe u can specify more than 1 swap partition, so if u make some free space in the end of the drive u can use
Code:
#swapon /dev/hda4

and add the related ebtry to /etc/fstab
_________________
less QQ more pewpew!
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sat May 22, 2004 9:17 am    Post subject: Reply with quote

You don't need to enlarge your swap partition. 256MB swap is more than you will need in normal use. Also, the rule that swap = 2 * ram is old school, a relic from years back. Once you have more than 128MB ram, you do not need more than 256MB swap. I myself have 512MB ram with 250MB swap, works a charm. Swap often doesn't get hit at all, and I've never seen more than half in use.

And yes, you can make more than one swap partition. Check out man mkswap.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum