Repairing swap partition for suspend

Original article at Ubuntu Forums
With thanks to 56Phil...
First you need to restore swap:

sudo mkswap /dev/'swap partition'
sudo swapon -va

edit your /etc/fstab file

gksudo gedit /etc/fstab

when you edit your /etc/fstab file make sure that your swap partition has the new UUID.

UUID='your correct swap UUID' none swap sw 0 0

edit your /etc/initramfs-tools/conf.d/resume file

gksudo gedit /etc/initramfs-tools/conf.d/resume
put this line in your /etc/initramfs.d/resume file

RESUME=UUID='your correct swap UUID'

and make this entry:

sudo update-initramfs -u

Now, you should be able to hibernate, resume and keep your swap file intact.
First you need to restore swap: