Re: Re: changing swap size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.



--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx

Please do not reply off-list
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux