[CentOS] changing swap size

Leonel lnunez at gmail.com
Wed Mar 28 23:13:21 UTC 2007


On 3/29/07, Stewart Walker <Swalker at caspercollege.edu> wrote:
>
> 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
>
>
>
>
> --
> 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
> http://lists.centos.org/mailman/listinfo/centos
>

dd if=/dev/null of=/younewswap bs=1024 count=1024000   <-- for 100MB
mkswap /yournewswap
swapon /yournewswap


add an entry to your  /etc/fstab
and youre done .



-- 
Leonel



More information about the CentOS mailing list