Answer the question
In order to leave comments, you need to log in
Why won't gentoo start with LVM2 root?
I'm trying to install gentoo rooted on a lvm2 partition. I'm doing all this on a machine with debian already installed, which is also installed on lvm2. It is necessary that both systems work (I will probably remove Debian later).
I am compiling the kernel for dzhent with the help genkernel --install --lvm all
of croot.
Everything is assembled correctly, then I manually write to /boot/grub/grub.cfg
Manually, because grub2 makes a bad config (or I'm doing something wrong).
Then I boot, and an error appears:
Block device /dev/mapper/hdd-gentoo is not valid root device
Answer the question
In order to leave comments, you need to log in
1. wiki.gentoo.org/wiki/LVM
2. wiki.gentoo.org/wiki/Initramfs
3. You can also use the command to create an initrd
lvm2create_initrd -c /etc/lvm/lvm.conf -M gentoo `uname -r`
from the package sys-fs/lvm2
She will tell, after execution, what parameters need to be added to the kernel. And try not to edit grub.cfg with your hands, but grub2-mkconfig -o /boot/grub/grub.cfg
He usually adds the necessary parameters to the kernel, including real_root. (Before that, in order for grub2 to find the initrd, remove the "lvm2-" from its name). Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question