Encrypted swap partition not loaded automatically on startup

From Useful Data
Revision as of 18:53, 15 June 2017 by Simon (talk | contribs) (Recreated page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If, when creating a new installation, you choose to have an encrypted swap partition, you may find it does not load automatically. I have being going into GPartEd to load it.

To load all swap partitions (and be given any hint it worked at all):

sudo swapon -a -v

A good command for finding your partitions is:

sudo blkid

Check the UUID of the swap partition matches the UUID in /etc/fstab. On one occasion there was a trailing '#' after the UUID for the swap file preventing it from loading. Weird.