Currently, my system have 2 GB swap memory, in the following structure-

/dev/sda1 --linux-swap --
/dev/sda2 --ext4 -- System installation
Unallocated --unallocated --

enter image description here

Now I want to increase the swap memory. I have very poor knowledge in ubuntu. I'm trying to add more swap memory in following way-
/dev/sda1 --linux-swap --
/dev/sda2 --ext4 -- System installation
New Partition#1 --linux-swap --
Unallocated --unallocated --
enter image description here

Will it work as swap memory for my system? is there any way to merge both the swap memory into one, like in windows MiniPartionWizard partion do restructure without loosing any data.
Thanks in advance!

  • Create the swap like in the second screenshot.

  • Then right-click on the /dev/sda1 and select swap-off.And then delete the partition.

  • Now right-click on the swap(newly created) and select swap-on.

If you want to add the 1 Gb of unallocated space to 10 GB swap partition,then you need to boot gparted live-disk or ubuntu live-disk.

  • Boot gparted or ubuntu live disk,install gparted and then open it.

  • Now right-click on the /dev/sda2 partition and select Resize option.Then drag the slider to the extreme left to move the unallocated space below /dev/sda2.So that you can add the 1gb space to the 10 gb swap partition.

  • Right click on the linux-swap partition to increase its size.

  • you doesn't loss any datas by doing the above. – Avinash Raj Dec 19 '13 at 18:14
  • I have created 2nd swap memory of 10GB space and made it swapon without making previous swapoff. Now on system monitor it's displaying 11.9GB of swap memory. Hope I've done. One question-keeping both of them swapon will gong to create any problem? – Yup Dec 19 '13 at 18:45
  • it doesn't cause any problems. – Avinash Raj Dec 19 '13 at 18:49
  • 10GiB of paging? What are you trying to do? If you reguarly use more then 1GB of swap then consider buying more memory, not increasing swap. (except if ram is maxed out and you do not mind waiting a few extra weeks for a program to run). – Hennes Dec 19 '13 at 18:56
  • Hennes,i also think that 10 gb was unnecessary,but op wants to increase its swap partition size. – Avinash Raj Dec 19 '13 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.