Comment 19 for bug 435027

bastafidli (ubuntu-bastafidli) wrote :

This is not fixed if both of the swap partitions are encrypted. I am not sure if this is the same bug or different bug (e.g. https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/571682). My root partition is on 2 disks using RAID 1 using mdraid and is encrypted using LUKS. Each of these disks contains also swap partition which is encrypted but not configured using mdraid since kernel doesn't need it.

In my /etc/fstab I have

/dev/mapper/sda2_crypt none swap sw 0 0
/dev/mapper/sdb2_crypt none swap sw 0 0

In my /etc/crypttab I have

/dev/mapper/sda2_crypt none swap sw 0 0
/dev/mapper/sdb2_crypt none swap sw 0 0

Only of these partitions is mounted upon start. The other one is not mounted nor decrypted.