LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Join two swap partitions (https://www.linuxquestions.org/questions/linux-newbie-8/join-two-swap-partitions-496009/)

rpagnin 10-27-2006 04:42 AM

Join two swap partitions
 
Is it possible? I've a Suse 9.0 with two swap partitions, the second originated from the need to have more swap space, now I've 1Gb but Oracle Forms&Reports wants more.
I've tried to resize the swap partition with GpartEd but it wasn't allowed so I created a new one hoping to join it to the old one.
How can I do ?
Thanks

Rob

J_K9 10-27-2006 05:02 AM

Are the swap partitions next to each other in the partition table? If they are, delete the two and create a new swap partition taking up the full space.

rpagnin 10-27-2006 05:10 AM

Quote:

Originally Posted by J_K9
Are the swap partitions next to each other in the partition table? If they are, delete the two and create a new swap partition taking up the full space.

Thx, but unfortunately they aren't.
Any other advice ?
R.

michaelk 10-27-2006 07:05 AM

linux can use multiple swap partitions so no need to attempt to resize. Just add another swap entry to your /etc/fstab using the new partition. Be sure to format it first.

mkswap /dev/hdx (Use its real partition ID)

to activate now.
swapon /dev/hdx

The top or free command should show total swap space as the sum of both partitions.


All times are GMT -5. The time now is 04:09 PM.