How do I increase my swap space?

The following will increase your swap to 2 GB. Replace count= with the
number of kilobytes you want for your swap file.

sudo su
swapoff -a
cd /host/ubuntu/disks/
mv swap.disk swap.disk.bak
dd if=/dev/zero of=swap.disk bs=1024 count=2097152
mkswap swap.disk
swapon -a

free -m

The final free statement will verify that your new swap file has the correct
space. If everything worked, issue the following command and you are done.
If it didn't work, then remove swap.disk and move swap.disk.bak back to
swap.disk and try again.

rm swap.disk.bak

Reference: https://wiki.ubuntu.com/WubiGuide

Regards
Akash Deep Shakya "OpenAK"
FOSS Nepal Community
akashakya at gmail dot com

~ Failure to prepare is preparing to fail ~



On Wed, Jun 23, 2010 at 2:11 PM, samrakchan ghimire <[email protected]>wrote:

> HI,
> Good afternoon!
> Is there any solution to increase swap memory after ubuntu is installed.
>
> Initially I have allocated 1GB of space but now I need to increase its
> size to 3GB. Since Oracle 10g needs minimum 2GB swap space.
>
> Samrakchan Ghimire
>
> --
> FOSS Nepal mailing list: [email protected]
> http://groups.google.com/group/foss-nepal
> To unsubscribe, e-mail: 
> [email protected]<foss-nepal%[email protected]>
>
> Mailing List Guidelines:
> http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines
> Community website: http://www.fossnepal.org/

-- 
FOSS Nepal mailing list: [email protected]
http://groups.google.com/group/foss-nepal
To unsubscribe, e-mail: [email protected]

Mailing List Guidelines: 
http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines
Community website: http://www.fossnepal.org/

Reply via email to