View previous topic :: View next topic |
Author |
Message |
elmar283 Guru
Joined: 06 Dec 2004 Posts: 316 Location: Haarlem, Netherlands
|
Posted: Sun Aug 05, 2018 11:18 am Post subject: [SOLVED] os-prober and grub failes |
|
|
When I run 'grub-mkconfig -o /boot/grub/grub.cfg' I get an error:
Code: |
errornix /usr/src/linux # grub-mkconfig -o /boot/grub/grub.cfg
Aanmaken van GRUB-configuratiebestand...
Linux-image gevonden: /boot/vmlinuz-4.14.52-gentoo
Linux-image gevonden: /boot/vmlinuz-4.14.52-gentoo.old
Linux-image gevonden: /boot/vmlinuz-4.9.95-gentoo
Linux-image gevonden: /boot/vmlinuz-4.9.95-gentoo.old
Linux-image gevonden: /boot/vmlinuz-4.9.76-gentoo-r1
Linux-image gevonden: /boot/vmlinuz-4.9.76-gentoo-r1.old
/run/lvm/lvmetad.socket: connect failed: Bestand of map bestaat niet
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
voltooid
|
[Bestand of map bestaat niet] means 'file or folder does not excists'.
What can I do to solve this? What I want is that my MacOS is also bootle from Grub. Now I'll have to hit 'Alt' during boottime to boot MacOs.
Here are some config files of my system:
http://www.elmarotter.eu/bestanden/boxmodel/index.php?dir=Gentoo/grub
Last edited by elmar283 on Sun Aug 12, 2018 3:20 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Mon Aug 06, 2018 1:21 pm Post subject: |
|
|
Hi.
Similar topic here might be somehow interesting.
++
Gi) |
|
Back to top |
|
|
elmar283 Guru
Joined: 06 Dec 2004 Posts: 316 Location: Haarlem, Netherlands
|
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2963 Location: Edge of marsh USA
|
Posted: Thu Dec 27, 2018 6:20 pm Post subject: |
|
|
This problem with Grub2 and os-prober not finding other operating systems seems to need a solution. Grub2 works fine on other distributions, i.e. Linux Mint, MX Linux, and so on. On my three Gentoo systems, Grub2 with os-prober does not find anything on any other partition. I get the same errors that elmar283 gets, except in English. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2963 Location: Edge of marsh USA
|
Posted: Sat Dec 29, 2018 2:44 pm Post subject: |
|
|
This morning os-prober worked with Grub2, possibly because of the December 1 Grub2 update. This was the output:
Code: | bethel # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-4.9.140-gentoo
Found initrd image: /boot/early_ucode.cpio
Found linux image: /boot/kernel-4.4.164
Found initrd image: /boot/early_ucode.cpio
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Found Gentoo/Linux on /dev/sdb1
done |
The first section is grub finding the kernels on my main boot partition, the section that begins with /run/lvm... is os-prober trying to use lvm, failing and falling back to internal scanning where it found by installed backup on /dev/sdb1.
I don't know what the lvm stuff is about. I don't see that on other distros, specifically Mint or MX.
In order to get rid of the warnings about lvmetad, I had to edit /etc/lvm/lvm.conf and insert:
My problem is solved. Does this work for you? _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
brokendreams n00b
Joined: 11 Nov 2018 Posts: 22 Location: clinton,ia US
|
Posted: Mon Dec 31, 2018 4:42 pm Post subject: |
|
|
If this is inside a chroot its normal and expected behavior. Since lvm isnt running. I think it would so the same thing while booted into the system if lvm wasn't running. Do you use lvm or raid? If not is grub built with device-mapper support? Use "emerge -info grub" without the quotes to check. If you dont use lvm or raid and grub is built with device-mapper support simply disabling it i would assume would get rid of this error...maybe not. I use lvm and raid (mdadm) so i always have it enabled and running...only get that error in chroot though. Could also enable lvm2 to autostart at boot. Either rc-update add lvm boot && openrc to enable and start it (if you use openrc) or systemd enable lvm2 && systemctl start lvm2 (if you use systemd). That might solve it as well. Its not technically and error or a problem. It's just letting you know that lvm isnt running. It still creates a correct grub.cfg. i cant help with your mac issue though. Sorry about that |
|
Back to top |
|
|
|