[CentOS] changing swap size

Bisbal, Prentice PBisbal at LexPharma.com
Thu Mar 29 14:39:34 UTC 2007

Depends on what you mean by changing the swap size. You can increase
swap size by adding a swap file, which is a regular file on a "regular"
filesystem. This can be done in a matter of minutes with only a few
commands. I haven't done it in a couple years, so I can't give you the
details off the top of my head. 

If you want to increase the size of a swap partition, or create another
swap parition, there's more work involved. Depending on how your disk(s)
are partitioned, it's possible to do it w/o rebuilding the entire
system. If you have to destroy a partition to give up some of it's space
to a new swap partition, you can tar the contents of that partition up,
repartition the disk, and then untar the files on to the new partition.
You shouldn't need to re-install the entire system. 


-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
Behalf Of Stewart Walker
Sent: Wednesday, March 28, 2007 5:30 PM
To: centos at centos.org
Subject: [CentOS] changing swap size

Is it possible to change the swap size with out re-installing the

Looking at the dd command but don't really know what to expect.

Many thanks for your help

This message has been scanned for viruses and dangerous content by
MailScanner at caspercollege.edu and is believed to be clean.

CentOS mailing list
CentOS at centos.org

The contents of this communication, including any attachments, may be confidential, privileged or otherwise protected from disclosure.  They are intended solely for the use of the individual or entity to whom they are addressed.  If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication.  Please notify the sender immediately and delete the communication in its entirety.

More information about the CentOS mailing list