when running two ubuntu partition,how do i get the swap file up on non default

Asked by Dave Stroud

I am running 9.10 and 10.04 . Lucid being the default on grub Karmic boots without turning swap on. I can turn it on through gparted, but have to do it each time I boot into karmic. How can I fix it to install swap on both partitions. Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Dave Stroud (bigdavesr) said :
#1

I am using one swap for both karmic and lucid

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#2

you can set the swap partition to mount automagically, it will be set as swap once booted, you can also add:

swapon /dev/sdaX

(replace X with the partition number) in /etc/rc.local if the partition isn't automatically enabled. You can read the fstab of the other boot to see the line you need to add. You will need to run:

gksudo gedit /etc/fstab

to get write access to the file.

Revision history for this message
Dave Stroud (bigdavesr) said :
#3

Worked like a charm. Thanks it was easy. Been playing with this for awhile.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Glad you got the gold :)

Revision history for this message
Dave Stroud (bigdavesr) said :
#5

actionparsnip wrote:
> Your question #98824 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/98824
>
> actionparsnip posted a new comment:
> Glad you got the gold :)
>
> thanks again