Hi there, I believe I patched the issue in ecryptfs-setup-swap which causes 
this problem in the first place.
This program now sets the swap's fstab to noauto, crypttab offset to 6, and 
creates a file in /etc/init which mounts the swap partition automatically as 
soon as it's ready. 

I beleve there are 2 problems with the current setup. The first one is
caused by the cryptswap changing the uuid of the drive. This is fixed by
using an offset of 6 (* 512 bits) to skip the portion where the uuid is
apparently stored. The second one is caused by fstab trying to mount the
swap before cryptab has encrypted the partition. This is fixed by
mounting the partition with the /etc/init file.

This program will still find multiple swap partitions on the harddrive,
encrypt them, and mount them automatically at boot.

You can also use it to fix your current system by doing the following:
Delete all mention to the swap partitions in your /etc/fstab and /etc/crypttab.
Restart your computer.
Reformat your swap partitions.
Enable your swap partitions and make sure they are running working properly.
Finally in the directory containing my patched verson run:
chmod +x ecryptfs-setup-swap 
sudo ./ecryptfs-setup-swap
and restart your computer .

Now your swaps should all be encrypted and working!
If this doesn't work for you please let me know.

** Attachment added: "a patched version of the ecryptfs-setup-swap file."
   
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1310058/+attachment/4309697/+files/ecryptfs-setup-swap

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

Title:
  ecryptfs-setup-swap hints after reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1310058/+subscriptions

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

Reply via email to