[CentOS] Re: changing swap size
debian at herakles.homelinux.org
Thu Mar 29 00:49:38 UTC 2007
Scott Silva wrote:
> Stewart Walker spake the following on 3/28/2007 2:29 PM:
>>Is it possible to change the swap size with out re-installing the system?
>>Looking at the dd command but don't really know what to expect.
>>Many thanks for your help
> If you have the space available, you can add, remove, or change the swap on
> demand. If you have unpartitioned space you could add a partition as large as
> you want, with type 82 (linux swap), use mkswap to format it, and swapon the
> partition. Then you could swapoff the old one and use the space for something
> else. Then adjust /etc/fstab to reflect the new info.
> You might be able to resize a swap partition from a rescue disk with parted.
I don't know what advantage swap partitions have over swap files.
Swap files can be created and added as any time.
1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu
Please do not reply off-list
More information about the CentOS