Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] os-prober and grub failes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
elmar283
Apprentice
Apprentice


Joined: 06 Dec 2004
Posts: 282
Location: Haarlem, Netherlands

PostPosted: Sun Aug 05, 2018 11:18 am    Post subject: [SOLVED] os-prober and grub failes Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Mon Aug 06, 2018 12:51 pm    Post subject: Reply with quote

Suggest scrapping grub and using refind and efi stub kernel
https://www.rodsbooks.com/refind/installing.html#osx
https://wiki.gentoo.org/wiki/EFI_stub_kernel
_________________
Defund the FCC.
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 380
Location: France

PostPosted: Mon Aug 06, 2018 1:21 pm    Post subject: Reply with quote

Hi.

Similar topic here might be somehow interesting.

++
Gi)
Back to top
View user's profile Send private message
elmar283
Apprentice
Apprentice


Joined: 06 Dec 2004
Posts: 282
Location: Haarlem, Netherlands

PostPosted: Sun Aug 12, 2018 3:23 pm    Post subject: Reply with quote

I now use Refind. I installed it from portage.
I used:
1. https://wiki.gentoo.org/wiki/Refind;
2. https://wiki.gentoo.org/wiki/EFI_stub_kernel;
3. https://wiki.gentoo.org/wiki/Efibootmgr
for installing it.

Now I can boot from Refind on my Gentoo Linux and MacOS.
Back to top
View user's profile Send private message
figueroa
Guru
Guru


Joined: 14 Aug 2005
Posts: 370
Location: GA-USA

PostPosted: Thu Dec 27, 2018 6:20 pm    Post subject: Reply with quote

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
andy@andyfigueroa.net Working with Unix since 1983.
Back to top
View user's profile Send private message
figueroa
Guru
Guru


Joined: 14 Aug 2005
Posts: 370
Location: GA-USA

PostPosted: Sat Dec 29, 2018 2:44 pm    Post subject: Reply with quote

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:
Code:
use_lvmetad = 0


My problem is solved. Does this work for you?
_________________
Andy Figueroa
andy@andyfigueroa.net Working with Unix since 1983.
Back to top
View user's profile Send private message
brokendreams
n00b
n00b


Joined: 11 Nov 2018
Posts: 11
Location: clinton,ia US

PostPosted: Mon Dec 31, 2018 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum