i installed oracle linux 6 on my desktop and i mistakenly set my swap to 250M twice but i wanted it to be 2gig is there any way i can remove it and set it to 2gig?

asked 06 Mar '12, 02:24

Softelgin%20Mulizwa's gravatar image

Softelgin Mu...
accept rate: 0%

How you make room for a 2 GB swap area depends on your disk layout. If you have enough adjacent space left you can enlarge the swap partition and format it again or else delete and recreate it. If you don't have enough space you have to shrink the nearest partition first. If you prefer the comfort and safety checks a GUI application provides you could boot the machine with for example the Gparted Live CD.


answered 10 Mar '12, 20:33

unSpawn's gravatar image

accept rate: 28%

If you are comfortable with re-installing, I would suggest you do it over. Hey, it's good practice.

You can also set aside a 2GB file somewhere on your filesystem and make it into a swap file, if you REALLY don't want to re-install. How to create a swap file

Other than that, boot Gparted (or System Rescue CD)and re-size your partitions using that tool. You will have to run mkswap on the resized swap partition afterwards.


answered 17 Apr '12, 07:04

Seth%20Brown's gravatar image

Seth Brown
accept rate: 0%

If u have free space then absolutely u can make 2GB swap .how to make swap partition step-1 free -to check swap space then swapoff it should be off. step-2 make swap partition fdisk -cul (hard disk name like /dev/hda....whatever) press n and 82 (for swap partition) and last step to format this partition using makeswap (swap partition name like /dev/sda1,2,3..whatever) and then swapon


answered 17 Apr '12, 13:57

jsp's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 06 Mar '12, 02:24

Seen: 1,916 times

Last updated: 17 Apr '12, 13:57

powered by OSQA