You are not logged in.
Hi,
I just encrypted my raid device. Everything seemed fine until reboot. Then, the device was not opened. Already having two encrypted devices, I did not expect any problems with this third one.
When I manually luksOpen the device /dev/md0p1, everything is there again until reboot.
This is my HOOKS configuration from /etc/mkinitcpio.conf:
HOOKS="base udev autodetect modconf block keyboard keymap mdadm encrypt_all lvm2 resume filesystems fsck"
where encrypt_all is a modified version of the original encrypt hook that handles all of my encrypted devices in one hook. And it works for the other two cryptdevices (one of them is the root filesystem).
I modified it again and added
ls -l ${cryptdevice}
and I got the error message that that /dev/md0p1 does not exist.
I think that's strange, because I added the mdadm hook before the encrypt_all hook and AFAIK, they are processed in the same order as they are configured. And the raid parts are partitions on physical harddisks, no layer in between, so no dependencies (other than block).
Any ideas what I could have done wrong ?
Thanks and Regards,
Markus
Offline
Have you tried using the mdadm_udev hook instead of mdadm?
Offline
What is in your /etc/mdadm.conf and /etc/crypttab?
I have this working with no problem.
Non-root filesystems need to be listed in /etc/crypttab if you want them to be mounted on boot.
Offline