Swap partition doesn't mount after partition resize
I'm fairly new to Ubuntu. I installed it alongside with Windows in a 10GB partition and a 1.4 GB swap partition.
Everything worked fine until I ran short of space and decided to take space from the NTFS Windows partition and add it to my linux partition.
I used GParted live CD to do this. I think I also moved the position of the swap partition a little, I can't remember.
After GParted finished repartitioning I restarted the computer and everything seemed to work fine. However in the next days I noticed that the computer kept crashing and freezing a lot whenever I opened too many programs. Later I realized why this happened: there was no swap mounted anymore. If I open the System Monitor it says 0 bytes of 0 bytes and it's always in 0, no matter how much RAM is in use.
If I open Gparted from Ubuntu I can select the swap partition (sdb5) and click "swapon". After doing this the swap mounts and starts working normally.
However I have to do this every time I boot my computer. So my question is, how can this be done automatically?
I checked for people with similar problems before asking, but it didn't help.
If I put "sudo swapon -a" on a terminal I get the following line:
swapon: cannot find the device for UUID=59a9b836-
Thanks in advance