I run a script regularly on my computer that prepares all the configuration. It also reinstalls grub. But recently, it occasionally has a problem with lvm and that causes the machine, which is virtual, to get stuck at the grub screen unable to find the kernel.
Installing for i386-pc platform.
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Installation finished. No error reported.
Grub will get stuck and not be able to find the kernel.
Question
mauricev
I run a script regularly on my computer that prepares all the configuration. It also reinstalls grub. But recently, it occasionally has a problem with lvm and that causes the machine, which is virtual, to get stuck at the grub screen unable to find the kernel.
When I install grub
/usr/sbin/grub-install --target=i386-pc --no-floppy /dev/sda
And it happens to respond
Installing for i386-pc platform. /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. Installation finished. No error reported.
Grub will get stuck and not be able to find the kernel.
Boot.conf looks like this
boot { generate grub default "Funtoo Linux genkernel" timeout 3 } "Funtoo Linux genkernel" { kernel kernel-debian-sources-x86_64-4.8.15-1 initrd initramfs-debian-sources-x86_64-4.8.15-1 params += dolvm real_root=auto rootfstype=ext4 resume=swap:/dev/mapper/funtoo-swap quiet }
Link to comment
Share on other sites
43 answers to this question
Recommended Posts