computer not auto swapon ing

Asked by Thinboy00

When I boot my computer, it doesn't automatically swapon (turn on swap). I usually have to manually do sudo swapon /dev/sda5 (my swap partition). I've done some manual repartitioning of my HD using GParted, including increasing the size of my swap significantly. I'm wondering if that was a cause of the problem. Relevent fstab entry:
# /dev/sda5 -- swap
UUID=349dafca-0963-4cc6-8ffb-0ec21ee0da7e none swap sw 0 0

I've edited my fstab manually, but I never touched the /dev/sda5 section, except for the comment (I added the " -- swap"), and even if that could possibly have caused this, it was done well after the issue manifested itself (i.e. just now, because I could).

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gord Allott
Solved:
Last query:
Last reply:
Revision history for this message
Best Gord Allott (gordallott) said :
#1

its likly that in your resizing either the position of your swap changed or the UUID did, you can find out the new UUID by following this: https://help.ubuntu.com/community/UsingUUID

Revision history for this message
Thinboy00 (thinboy00) said :
#2

Thanks Gord Allott, that solved my question.