I made a mistake and added a luks partiton inside a md raid to the crypttab that seems to not be mounted when crypttab is processed.
This md raid does not contain any meaningfull data.
Yet the boot process stops with:
You are in emergency mode. After logging in, type “journalctl -xb” to view system logs “systemctl reboot” to reboot, “systemctl default” or "exit to boot into default mode.
Give root password for maintenance (or press Control-D to continue):
But no matter what I do, providing the actual root password or pressing Control-D, first it shows
And after a minute and a half I end up with the exact same prompt from above again, but not in the emergency console. There is also no error saying that the password was wrong or anything else helpful.
I would start all over. That’s a precarious and inadvisable setup. Arrays work best (and are safest) when they have exclusive use over a physical device. Much can go wrong in the future.
That’s my opinion, and you might have reasons for trying your setup. I honestly find it too complex and shaky for comfort.
However, what I said earlier can still be used to do “recovery” steps (i.e, booting into a live USB session and using manjaro-chroot to enter the system to make modifications to important files.)
Haha, originally it was only one md array. Set up for the root filesystem.
I prefer LUKS as it does not even leak metadata of the file system
I use md raid as then I can have the luks partition on it, requireing to only encrypt once instead of twice. Not sure if this would be possible with btrfs without md. Also I am far more familar with it than with btrfs.
Setting this all up and get it running was quite the task, I rather not repeat it.
Why the second mdraid? Simple. I got a bigger set of drives. I dd’d the data over to the new drives.
First I wanted to extend the existing mdraid, but this seemed to be quite the chore. Instead I just created a new partition and wanted to set up another raid.
This worked fine. But when trying to get it mounted automatically this happend…