You are not logged in.
Hi I have some trouble to boot into system after encryption. The root device is not found.
System configuration:
2 x sata on software raid1
sdb1 + sdc1 -> md0 -> boot
sdb2 + sdc2 -> md1 -> luks -> lvm -> main-root main-home main-swap
/etc/fstab
# /dev/mapper/main-root
UUID=de56..... / ext4 rw,realtime,data=ordered 0 1
# /dev/md0
UUID=de56..... /boot ext4 rw,realtime,stripe=4,data=ordered 0 2
# /dev/mapper/main-home
UUID=f497..... /home ext4 rw,realtime,data=ordered 0 2
# /dev/maspper/masin-swap
UUID=8379..... none swap defaults 0 0
/etc/mkinitcpio.conf
MODULES="dm_mod raid1"
HOOKS="base udef autodetect modconf block mdadm_udev keyboard keymap encrypt lvm2 filesystems fsck"
I did mkinitcpio -p linux
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=/dev/md1:main root=/dev/mapper/main-root"
I did grub-mkconfig -o /boot/grub/grub.cfg
ERROR comes every time:
running early hook [udev]
running early hook [lvm2]
running hook [udev]
Triggering uevents ...
running hook [keymap]
Loading [keymap] done.
running hook [encrypt]
password prompt for lvm -> entering the password is working fine!
Waiting 10 Seconds dor device /dev/mapper/main-root
Error: device ' /dev/mapper/main-root' not found. skipüping fsck.
Error: unable to find device ' /dev/mapper/main-root'
You ar being dropped to a recovery shell.
From time to time it is possible to enter 'exit' and continue booting system -> sometimes there are all needed devices in /dev/mapper (main main-root main-home main-swap)
Most of the time 'exit' doesn't work and the devices main-root main-home main-swap) are not there only (main) is available.
Any ideas whats going wrong? Is it possible failing because of the early hook of lvm2?
Offline
Did you create the crypttab?
https://wiki.archlinux.org/index.php/Dm … ire_System
Offline