I install on a clean archlinux beech with luks.
I do everything calmly and easily:
Все ставлю как обычно, иду в chroot pacman -S sudo grub-bios os-prober sed -i -e 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers Вставляю в Хуках файла /etc/mkinitcpio.conf: encrypt и lvm2 перед filesystems mkinitcpio -p linux sed -i -e 's/use_lvmetad = 1/use_lvmetad = 0/' /etc/lvm/lvm.conf systemctl enable lvm2-lvmetad.service systemctl enable lvm2-lvmetad.socket grub-install --recheck /dev/sda sed -i -e 's|GRUB_CMDLINE_LINUX=""|GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:main"|' /etc/default/grub grub-mkconfig -o /boot/grub/grub.cfg
The error falls out:
[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg Генерируется файл настройки grub … Найден образ linux: /boot/vmlinuz-linux Found initrd image(s) in /boot: initramfs-linux.img Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img /usr/bin/grub-probe: ошибка: диск «lvmid/XmgzMS-K5fu-W0XR-X2pa-UBHg- 0Its-jXvKL9/05gmdw-q9Wc-2aYm-n76Y-B9OW-ppcP-fvjSN1» не найден.
completed
Wherein
[root@archiso /]# vgdisplay | grep UUID VG UUID XmgzMS-K5fu-W0XR-X2pa-UBHg-0Its-jXvKL9
There is already a coincidence and
[root@archiso /]# lvdisplay | grep -E "(Path|Name|UUID)" LV Path /dev/main/root LV Name root VG Name main LV UUID 05gmdw-q9Wc-2aYm-n76Y-B9OW-ppcP-fvjSN1 LV Path /dev/main/swap LV Name swap VG Name main LV UUID kv7eYn-WZDe-YuTz-Sw9i-cIdn-uMQm-hqanQl LV Path /dev/main/home LV Name home VG Name main LV UUID kVam6w-zyUs-pemv-ffL0-2qNU-A34N-lBNOMh
That is, the disks / partitions themselves are in place, but grub does not see them ...
How to be, tell me please?
I will add.
The problem was solved. At the beginning of the encrypted section
cryptsetup --verbose --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random luksFormat /dev/sda
After various attempts to fix everything, I re-wrote the keyless section - use-random
cryptsetup --verbose --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 luksFormat /dev/sda
After that, everything was established and it was normal. Be careful)