First you need to restore swap:
Code:
sudo mkswap /dev/'swap partition'
sudo swapon -va
edit your /etc/fstab file
Code:
gksudo gedit /etc/fstab
when you edit your /etc/fstab file make sure that your swap partition has the new UUID.
Code:
UUID='your correct swap UUID' none swap sw 0 0
edit your /etc/initramfs-tools/conf.d/resume file
Code:
gksudo gedit /etc/initramfs-tools/conf.d/resume
put this line in your /etc/initramfs.d/resume file
Code:
RESUME=UUID='your correct swap UUID'
and make this entry:
Code:
sudo update-initramfs -u
Now, you should be able to hibernate, resume and keep your swap file intact.