[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grub failure after fresh system installation with lvm on luks: disk lvmi
From: |
Martin Castillo |
Subject: |
grub failure after fresh system installation with lvm on luks: disk lvmid/.. not found |
Date: |
Tue, 21 Feb 2023 00:51:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 |
Hi,
I'm trying to install guix (inside qemu) with "/" on lvm on luks on
sda2. sda1 contains the efi partition:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
fd0 2:0 1 4K 0 disk
sda 8:0 0 30G 0 disk
├─sda1 8:1 0 600M 0 part /mnt/efi
└─sda2 8:2 0 29.4G 0 part
└─lukspart 253:0 0 29.4G 0 crypt
└─lvmSystem-volRoot 253:1 0 29.4G 0 lvm /tmp
/mnt
sr0 11:0 1 813.9M 0 rom
sr1 11:1 1 1024M 0 rom
The installation finishes with no problem. However on reboot grub errors
out:
error: disk
`lvmid/VyWL64-HaH6-Wnec-fiND-VZye-90JJ-LxWLuj/NvcAEV-u4y7-PAyi-6ctt-
xlrL-Wbzt-eTfVq3' not found.
Entering rescue mode...
grub rescue> insmod lvmi
error: disk
`lvmid/VyWL64-HaH6-Wnec-fiND-VZye-90JJ-LxWLuj/NvcAEV-u4y7-PAyi-6ctt-
xlrL-Wbzt-eTfVq3' not found.
grub rescue> insmod lvm
grub rescue> ls
(hd0) (cd0) (cd1)
grub rescue> insmod lvm
grub rescue> cryptomount (hd0)
Unknown command `cryptomount'.
grub rescue> cryptomount
Unknown command `cryptomount'.
grub rescue> insmod luks2
error: disk
`lvmid/VyWL64-HaH6-Wnec-fiND-VZye-90JJ-LxWLuj/NvcAEV-u4y7-PAyi-6ctt-
xlrL-Wbzt-eTfVq3' not found.
grub rescue> lin
Unknown command `lin'.
grub rescue> insmod luks
error: disk
`lvmid/VyWL64-HaH6-Wnec-fiND-VZye-90JJ-LxWLuj/NvcAEV-u4y7-PAyi-6ctt-
xlrL-Wbzt-eTfVq3' not found.
grub rescue> insmod lvm
grub rescue>
Looks like it cannot load the modules luks / luks2. Is it looking for
those on the root partition? That lvmid belongs to my root partition.
Well, that's still encrypted. I attached the grub.cfg created by guix
system init.
I don't know how this chicken-egg problem is generally solved by grub.
On my day-to-day system I have a similar setup (root on lvm on luks),
but I don't know, why/how this works. I do have a 1M grub partition,
though I believe I just followed a bad guide and it is only used on
bios+gpt systems.
Is there something wrong with my config.scm, or is this a guix bug?
Martin Castillo
config.scm
Description: Text Data
grub lvm not found.png
Description: PNG image
bad.grub.cfg
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grub failure after fresh system installation with lvm on luks: disk lvmid/.. not found,
Martin Castillo <=