Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, James Jun 9 '12 at 13:38

This question was marked as an exact duplicate of an existing question.

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.