Increasing swap memory

Asked by passionguy

I m using Gutsy & allocated 0.5GB for swap. I have planned to install Oracle & i need a swap memory of 1.5GB. How can i increase my swap area...

Thanks in advance....

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Savvas Radevic
Solved:
Last query:
Last reply:
Revision history for this message
Savvas Radevic (medigeek) said :
#1

Boot using the Live CD, go to System > Administration > Partition editor
Resize some other partition and increase your swap partition.
Click "Apply" to actually do the changes.

NOTE that repartitioning can cause loss of data.
NOTE that it will take a loooooong time to resize/repartition the drive, depending on how big the partitions are etc.
*DO NOT* mount your partitions while you are formatting - It's better if you leave it do its magic there, so don't play much with the live cd.

Revision history for this message
Savvas Radevic (medigeek) said :
#2

> NOTE that repartitioning can cause loss of data.
I mean it can cause loss, but it hasn't caused any problems when I tried it 5-6 times so far (personal experience).

Revision history for this message
passionguy (fayazahmedj) said :
#3

How abt creating a swap file & use it for swap memory.
Will this cause any performance issues....

Revision history for this message
Savvas Radevic (medigeek) said :
#4

You mean like.. make a temporary swap file just for the installation? Personally, I have no idea, it might work :)
You could try and do that, but having a 1-2gb swap partition is generally recommended.

Revision history for this message
passionguy (fayazahmedj) said :
#5

I need instructions or links abt creating a temporary swap file.
Thanks very much for your support...

Revision history for this message
passionguy (fayazahmedj) said :
#6

I tried Partition Editor & resized my fat32 partition to create space for swap partition. I then created a swap partition using the remaining space. It showed up two swap partitions in my live CD as i dint do anything with my old swap partition. But i m not able to view my swap partition & it is showing up as 0bytes of swap in normal boot.

Revision history for this message
Best Savvas Radevic (medigeek) said :
#7

Can you boot into Ubuntu from the hard drive?

Can you post the output of:
sudo fdisk -l
ls -l /dev/disk/by-uuid
cat /etc/fstab

My assumption is that the file /etc/fstab should be updated (the UUID identification text string has been changed once the swap partition is changed).

Revision history for this message
passionguy (fayazahmedj) said :
#8

Your assumption is correct.

I searched launchpad & found a similar issue as mine(Question no.43729). Initially i thought i thought of not taking risk & raised up a question thinking that my question may be different. Then i thought of making a try & it worked out.

Revision history for this message
passionguy (fayazahmedj) said :
#9

Thanks Savvas Radevic, that solved my question.