This is a brand new Ubuntu 12.04 installation on my netbook. During installation I selected to encrypt my home folder. Now I'm trying to set up hibernation, but my swap partition isn't working. First, here's some information that you might find useful:
(parted) print all Model: ATA WDC WD1600BEVT-2 (scsi) Disk /dev/sda: 160GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 158GB 158GB primary ext4 boot 2 158GB 160GB 2135MB extended 5 158GB 160GB 2135MB logical
Here's the swap entry from my fstab:
# swap was on /dev/sdb5 during installation #UUID=311a1b8d-b111-4890-a8ed-32a413d833a6 none swap sw 0 0 /dev/mapper/cryptswap1 none swap sw 0 0
I'm not sure if I'm asking the right question, but here goes: how do I get the mapper entry created so my swap partition works?
amy@amy-netbook:/etc$ swapon -a swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory
I've tried running
sudo mkswap /dev/sda5 but it didn't appear to do anything. I'll also note that
blkid /dev/sda5 does nothing.
amy@amy-netbook:/etc$ blkid /dev/sda1 /dev/sda1: UUID="68e22b54-68ad-487b-a8a3-9c8f05c49788" TYPE="ext4" amy@amy-netbook:/etc$ blkid /dev/sda5 amy@amy-netbook:/etc$
How can I get my swap working again?