Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
Adding swap partition after system installation

Somehow I loaded 12.04 onto my netbook with no swap partition and I've tried to make a new one.

It's on a separate partition from the boot partition and I haven't found a way to have it recognized yet. I don't understand the code I've read online and hope there's a program with a GUI that can help me with this.

If not, can anyone explain to me how I can have a swapspace on this netbook

share|improve this question

marked as duplicate by Takkat, jrg Jun 9 '12 at 13:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

Not positive about this, but I think this is right:

Now that you have the partition, let's assume it's /dev/hdb1

Let's make it a swap: mkswap /dev/hdb1

Now let's activate it: swapon /dev/hdb1

Let's update our fstab file to make it activate on boot: gksu gedit /etc/fstab

add this line: /dev/hdb1 none swap sw 0 0

I THINK that should work, and the community will correct me where I went wrong. Good luck!

share|improve this answer
    
i tried but it denied me permission. groan. –  newboldrob Jun 8 '12 at 3:56
    
Did you try sudo? Where exactly are you getting the permission error? –  Matt2 Jun 8 '12 at 3:59
    
I just did. newb - oldrob. I now have a ridiculously large swap partition (9.8 GB) and it's recognized in the system monitor as active. none of it's being used yet but it's there if I the system needs it. –  newboldrob Jun 8 '12 at 4:53

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