Ubuntu – Swap partition is not recognized

hibernateswap

I think this problem might be related to this one:

Failing to recover from hibernate

Basically, as soon as ive installed ubuntu, using the automatic partitioning, if i run gparted and look at my disk partitions, my swap space is displayed as unknown, with an exclamation mark next to it:

Error image

Ok, next step, i manually assign the 'unknown' section to be a swap partition, and attempt to hibernate. When i switch my system back on, it runs as described in the link above, failing to restore from hibernate. When i run gparted again after its restarted, the swap partition is back to 'unknown'. Any idea whats going on here?

Best Answer

If you've chosen to encrypt your user-directory during the installation, Ubuntu will automatically encrypt your swap. This could be the Problem in this case. You can check your /etc/fstab for the device that is mounted as swap. If it's something like /dev/mapper/cryptswap1 your swap is encrypted and hibernate can't work.