[CentOS] Re: changing swap size

Wed Mar 28 23:16:33 UTC 2007
Scott Silva <ssilva at sgvwater.com>

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.

-- 

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!