I'm using ArchLinux, I followed their tutorial on encrypting your root filesystem:
But I cannot get grub to boot the encrypted partition.
My grub file looks like this:
root (hd0,2) kernel /vmlinuz-linux cryptdevice=/dev/sda4:root root=/dev/mapper/root ro initramfs /intiramfs-linux.img
I've tried editing this to everything I could think of, and everything I could find online, but nothing will boot. It always gives me this error:
ERROR: device '/dev/mapper/root' not found. Skipping fsck. ERROR: unable to find root device '/dev/mapper/root'.
Any help would be greatly appreciated.