If the only problem is an incorrect or missing UUID, this should fix it:
Run the following commands:
It should show your memory usage. Your swap line should not be all zeros.
Check for an existing fstab entry and confirm the UUID of the real swap partition:
Code:
grep swap /etc/fstab
sudo blkid -c /dev/null | grep swap
Are the UUIDs the same in both returns. If not, then you need to edit the fstab file and make sure it agrees with the UUID of the seceond command:
Code:
gksu gedit /etc/fstab
Make the change to the swap line, using the correct UUID, save the file, then run
Code:
sudo update-initramfs -uk all
sudo swapon -a
If swap mounts properly, no messages will be generated by the command.
If your system doesn't find a swap partition with the blkid command we'll have to create one.
Bookmarks