For the time being, everything is fine with my Grub using UEFI., os-prober being enabled. However, I lost confidence is os-prober. We had a big problem at the end of last month. Worse still, I can see that the “segmentation error”, though presently inocuous, has not yet been eliminated after more than a month, I think disaster could strike any time…
For this reason, I would like to ditch os-prober. This is easy to do , but first, as I have a dual boot (W10 and Linux), I’d like to write the Windows menu entry in the file /etc/grub.d/40_custom and I do not know how to write it. I think writing this entry, I would never lose this W10.
Could some knowledgeable person give me an example of a Windows menu entry?
Though the Gentoo wiki (thanks cactux) provides indeed a menu-entry for a W10 with UEFI, I used the solution of Manuel (thanks Manuel) which looks easier. It indeed created a new Windows2 entry, after that I could disable os-prober (thanks Stephane) . For good measure, I used both mk-config and grub-install, then I rebooted without os-prober and I am now left with Linux and W10.