On Thu, Nov 26, 2009 at 10:46 PM, Sumit Sati <[email protected]> wrote: > > > On Thu, Nov 26, 2009 at 9:58 PM, ANKIT <[email protected]> wrote: >> >> i m running ubuntu 9.04on virtual box >> >> it has14.32 gb of root >> and 690.29 mb of swap >> total space of 15 gb >> >> gparted is unable to resizerot and swap space >> i >> pease tell me how to increase swap space on virtual box >> i tried it with google but i couldnot understand that. >> >> -- > > I dont think Swap will be much beneficial in case of virtualization. However > to increase swap space you need not to resize partition you can create a > file inside root partition of any size(size you would like to add to your > swap space) > > Steps will be as follows > > 1. dd if=/dev/zero of=/mnt/1000mb.swap bs=1M count=1000 > > We created a swap file here with name 1000mb.swap before initializing it > with mkswap . > > 2. mkswap /mnt/1000mb.swap > > To start using the swap file we just created type in > > 3. swapon /mnt/1000mb.swap > > Make changes to /etc/fstab to register the newly created swap file .Add the > following line to the bottom of the file > > 4. /mnt/1000mb.swap none swap sw 0 0 > > Restart using reboot command. Good one,,, can be added at wiki also or post at blog,,
-- ┌─────────────────────────┐ │ Narendra Sisodiya ( नरेन्द्र सिसोदिया ) │ Society for Knowledge Commons │ Web : http://narendra.techfandu.org └─────────────────────────┘ -- Do you have another question? Click here - http://groups.google.com/group/iitdlug/post Read archive - http://www.mail-archive.com/[email protected]/ l...@iitd community mailing list -- http://groups.google.com/group/iitdlug
