on using encrypted partitions:
At a first try
had setup a single encrypted partition '/', successfully installed the system, failing at first reboot
clearly grub is failing to recognize an encrypted partition ... test terminated with failure.
The above failure may be a good reason to setup a different /boot filesystem, allowing to start the kernel / initrd from a not encrypted partition and mounting the encrypted '/' later, at least I was thinking so.
I tried a second install
, this time using a plain /boot (unencrypted), at time of disk partitioning had realized that I was not allowed to encrypt a /boot filesystem or a '/' filesystem.
(There is a glitch in diskdrake, that allow you to encrypt the partition and then assign it to /boot, but if you firstly choose the mount point, the encrypt check box become grayed out, so the developer intentions are clear: you are not allowed to encrypt '/' and '/boot' filesystems ...may be others but didn't check about).
Continuing in the disk setup, I choose to encrypt the 'swap', and the '/home' filesystem and performed the system installation.
At first reboot, the system will ask for filesystem encryption password, this is actually causing a minor issue:
- plymouth screen is 'blocked' from password requests
- until you press ESC to terminate plymouth, you don't see the password request.
Pressed ESC, (plymouth terminate), inserted the required password, boot process proceed as expected
until it come the time to activate the swap, which actually fails, but the system continue the boot process
later requesting about keyboard and time setup.
In this second test, the system is fully working
the encrypted swap and
the issue related to plymouth).
this is the resulting /etc/fstab
# Entry for /dev/sda5 :
UUID=661ce798-79bb-4e22-9d94-c41a565a36f6 / ext4 acl,relatime 1 1
# Entry for /dev/sda1 :
UUID=66fbc96a-b06d-4625-a1cd-c20b94e6cff5 /boot ext2 acl,relatime 1 2
/dev/mapper/crypt_sda7 /home ext4 noatime 0 0
none /proc proc defaults 0 0
/dev/mapper/crypt_sda6 swap swap noatime 0 0
none /dev/pts devpts defaults 0 0
the following is the output of df
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 9.0G 1.8G 6.7G 22% /
/dev/sda1 312M 13M 283M 5% /boot
9.9G 162M 9.7G 2% /home
ASEDIT: the swap appear to be activated correctly, see message #8 below: http://www.pclinuxos.com/forum/index.php/topic,93730.msg788014.html#msg788014