Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OS-Prober doesn't find Windows
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Spargeltarzan
Guru
Guru


Joined: 23 Jul 2017
Posts: 317

PostPosted: Wed Dec 26, 2018 11:11 am    Post subject: OS-Prober doesn't find Windows Reply with quote

Hello,

I use occasionally my dual boot Windows on my notebook, but neither grub nor os-prober doesn't find it.
Also not with the mounted ntfs Windows, /boot and /boot/esp partition.

Any idea how to fix?
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2960
Location: Edge of marsh USA

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

Do you get the same errors noted in this post?

https://forums.gentoo.org/viewtopic-p-8294692.html#8294692

I do, except my error messages are 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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2960
Location: Edge of marsh USA

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

As I noted in the linked article above, the Dec 1 update to grub2 along with editing /etc/lvm/lvm.conf to include the line:
Code:
use_lvmetad = 0

solved my grub2 problems for now.
_________________
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
View user's profile Send private message
Spargeltarzan
Guru
Guru


Joined: 23 Jul 2017
Posts: 317

PostPosted: Sat Dec 29, 2018 5:10 pm    Post subject: Reply with quote

Hello,

Thanks for the hint! I use grub 2.02-r2, do you mean I should try the r3?

In meanwhile I fixed mit Windows MBR with the Windows Rescue Disk and I can boot Windows at least with a 40_custom entry in Grub, but OS-Prober still refuses to find Windows. I do not have the lvme socket error, but can remember, previously, when my OS Prober worked, I had this error too.
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2960
Location: Edge of marsh USA

PostPosted: Sat Dec 29, 2018 8:15 pm    Post subject: Reply with quote

My new grub2 is grub-2.02-r1 with os-prober-1.76-r1

I don't have a Windows partition, but my alternate Gentoo boot partition was found.

But, I continued to have a problem on a laptop with the os-prober action.

Part of the problem on a laptop was an incomplete migration from old grub to grub2. For the os-prober to work correctly, the executables need to NOT be named grub2-whatever. To make that happen, I had to remove the multislot use flag from grub which I originally had in /etc/portage/package.use and then run emerge -uDN grub to change the installed program files. After that, grub2 with os-prober works magnificently.
_________________
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
View user's profile Send private message
Spargeltarzan
Guru
Guru


Joined: 23 Jul 2017
Posts: 317

PostPosted: Sat Dec 29, 2018 8:54 pm    Post subject: Reply with quote

figueroa wrote:

Part of the problem on a laptop was an incomplete migration from old grub to grub2. For the os-prober to work correctly, the executables need to NOT be named grub2-whatever. To make that happen, I had to remove the multislot use flag from grub which I originally had in /etc/portage/package.use and then run emerge -uDN grub to change the installed program files. After that, grub2 with os-prober works magnificently.


I compiled grub with -multislot
Code:

sys-boot/grub
     Verfügbare Versionen:   
     (0)    0.97-r16 0.97-r18
     (2)    2.02-r1(2/2.02-r1)^st (~)2.02-r2(2/2.02-r2)^st{tbz2} ~2.02-r3(2/2.02-r3)^st **9999(2/9999)^st
       {custom-cflags debug device-mapper doc efiemu +fonts libzfs mount multislot ncurses netboot nls sdl static test +themes truetype GRUB_PLATFORMS="coreboot efi-32 efi-64 emu ieee1275 loongson multiboot pc qemu qemu-mips uboot xen xen-32" KERNEL="linux"}

     Installierte Versionen: 2.02-r2(2/2.02-r2)^st{tbz2}(20:30:02 14.08.2018)(fonts mount nls sdl themes truetype -debug -device-mapper -doc -efiemu -libzfs -multislot -static -test GRUB_PLATFORMS="efi-64 -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen -xen-32")

     Startseite:             https://www.gnu.org/software/grub/
     Beschreibung:           GNU GRUB boot loader


I also did a grub-install /dev/sda again.
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Dec 30, 2018 12:40 am    Post subject: Reply with quote

While Grub2 with all its bells and whistles is a great instrument for binary distros I see no point using its automagical scripts with Gentoo. Isn't it just so much easier to write these few lines by yourself and never run the messy unpredictable mkconfig again?

https://wiki.gentoo.org/wiki/GRUB2_Quick_Start#Manual_configuration

And if you keep your kernel name unchanged, like my current kernel image is always bzImage, then you do not need to edit it ever again.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2960
Location: Edge of marsh USA

PostPosted: Sat Jan 05, 2019 4:53 am    Post subject: Reply with quote

EDITED:
Jaglover, this is helpful. I didn't know about the tail end of that wiki article. I've choked down grub2 with its automagical scripts, but I don't like the degree of automation that much.
_________________
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
View user's profile Send private message
Spargeltarzan
Guru
Guru


Joined: 23 Jul 2017
Posts: 317

PostPosted: Thu Jan 10, 2019 1:19 pm    Post subject: Reply with quote

Jaglover wrote:
While Grub2 with all its bells and whistles is a great instrument for binary distros I see no point using its automagical scripts with Gentoo. Isn't it just so much easier to write these few lines by yourself and never run the messy unpredictable mkconfig again?

https://wiki.gentoo.org/wiki/GRUB2_Quick_Start#Manual_configuration

And if you keep your kernel name unchanged, like my current kernel image is always bzImage, then you do not need to edit it ever again.


Are you not afraid that a kernel upgrade breaks something? I mostly keep 3 kernels from a major release to be on the safe side.
_________________
___________________
Regards

Spargeltarzan

Notebook: Lenovo YOGA 900-13ISK: Gentoo stable amd64, GNOME systemd, KVM/QEMU
Desktop-PC: Intel Core i7-4770K, 8GB Ram, AMD Radeon R9 280X, ZFS Storage, GNOME openrc, Dantrell, Xen
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jan 10, 2019 2:30 pm    Post subject: Reply with quote

I keep two kernels, the current is always bzImage and the backup is always bzImage.old - which is the previous working kernel. Two entries in bootloader menu.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2960
Location: Edge of marsh USA

PostPosted: Thu Jan 10, 2019 6:03 pm    Post subject: Reply with quote

Kernel upgrades don't take place automatically. As long as one observes some discipline in naming kernels and maintaining grub, problems are avoided. It's tough for new users. There is much to learn and decide.

I, also keep two or more kernels, naming them variously kernel-4.9.140-gentoo and so on, keeping a symbolic link to the intended active kernel from /boot/vmlinuz
_________________
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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