Swap partition

Gregory Woodbury ggw at wolves.durham.nc.us
Sun Dec 14 05:58:23 UTC 2003


On Sat, Dec 13, 2003 at 09:14:40PM -0800, Chris Sparks wrote:
> Hi everyone,
> 
> Is there a way to increase the swap partition size after I have already 
> have it setup on my system?
> I seem to have too little a swap partition (256 MB) and this is what 
> Fedora originally gave me. I
> have a 120 GB hard drive so I can make this 1 GB for all that matters.
> 
> I just didn't want to disrupt the main partition since I have finally 
> got it installed to some half way
> level and I don't want to install again.
> 
> Any help appreciated.
> Chris

The "easy" thing to do in this case is abandon the miminal swap you have
and just make another (larger) swap partition to be used instead.  The
size of a swap partition is a matter of debate, but generally it sould
be equal to or no more than twice as large as your physical memory.

If you actually have space on the disk around the swap partition that
you can resize into, there is nothing that prevents resizing the
partition and running "mkswap" on the resized space.  There's no real
magic about swap files/partitions.  Of course, you'll have to resize and
mkswap in "single user mode" with swap disabled while you're
manipulating the system.

I see your concern about having more than one swap file/partition, but
I'd suggest thtat this isn't really something to worry about.  Swap
space shouldn't be a consideration in normaml operation, and using more
than 1 file/partition should not effect efficiency.

HTH

-- 
Gregory G. "Wolfe" Woodbury      `-_-'    Owner/Admin: wolves.durham.nc.us
ggw at wolves.durham.nc.us         U     RHCT August 2003
"The Line Eater is a boojum snark."     Hug your wolf.





More information about the fedora-list mailing list