Following four things:
1) Your advice
2) Linux Encrypted Filesystem with dm-crypt - FrontPage - CentOS ...
wiki.centos.org/HowTos/EncryptedFilesystem
3) How to configure LVM & LUKS to autodecrypt partition? - AskUbuntu
www.askubuntu.com/ questions/ 59487/
how-to-configure-lvm-luks-to-autodecrypt-partition
4) Encrypt an existingDebianGNU/Linuxinstallation with LUKS
ada.adrianlang.de/existing-debian-luks
I changed /etc/crypttab to look something like this:
root UUID= none luks
and my /etc/fstab now contains
/dev/mapper/root / ext4 errors=remount-ro 0 1
I should say that I tried another value in the crypttab (instead of root),
but it didn't work when I tried update-initrafms -u -k a. I kept getting
messages from cryptsetup not knowing how to deal with it:
update-initramfs: Generating /boot/initrd.img-3.5.0-36-generic
device-mapper: table ioctl failed: No such device or address
Command failed
cryptsetup: WARNING: failed to determine cipher modules to load for cryproot
I think that it might have to do with me doing this in busybox:
(initramfs) cryptsetup luksOpen /dev/sda5 root
(initramfs) lvm
lvm> vgchange -a y Lap
lvm> CTRL+D
(initramfs) CTRL+D
I have no clue
I also used the advice from (4) and installed qemu:
aptitude install qemu-system xtightvncviewer
And ran the image on a virtual machine:
sudo qemu-system-x86_64 -hda /dev/sda -vnc :0 &
sudo vncviewer localhost
I am now worried about my keyboard distribution, because the disk is not
un-encrypted in the virtual machine, and it even complains about some .