@akwala, I have the same setup (full disk + home folder encryption). I
just ran a mkswap on the swap mapped device that fdisk reports providing
the UUID that blkid gives, and it seemed to work:

~$ sudo blkid # Grab UUID from here (if not for the swap-mapped partition, then 
the root-mapped one)
~$ sudo fdisk -l # Grab device path from here
~$ sudo mkswap -U 7e44a598-e057-42ec-9d1d-f0b693467211 
/dev/mapper/elementary--vg-swap_1

I then just edited the UUID in the /etc/crypttab file to match and ran
swapon which worked (verified in System Monitor). After rebooting,
however, it gave me a message about the swap partition not being ready
yet, though it worked after waiting for a couple seconds until the
device was ready. I didn't want to see the message, so I followed the
instructions here (http://askubuntu.com/questions/341979/what-to-do-
about-the-disk-drive-for-dev-mapper-cryptswap1-is-not-ready-yet-or) to
add the noauto flags to the swap partition in the /etc/crypttab and
/etc/fstab files, and then created a /etc/init/cryptswap1.conf file with
the following:

start on started mountall
script
  /sbin/cryptdisks_start cryptswap1
  /sbin/swapon /dev/mapper/cryptswap1
end script

This got it working well for me.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/953875

Title:
  Encrypted swap no longer mounted at bootup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ecryptfs/+bug/953875/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to