From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2D8831382C5 for ; Mon, 24 May 2021 15:15:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BEC9E0824; Mon, 24 May 2021 15:15:00 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE6C4E07DB for ; Mon, 24 May 2021 15:14:59 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 335A660000B7 for ; Mon, 24 May 2021 16:14:57 +0100 (BST) X-ASG-Debug-ID: 1621869296-05541363b37d6a40001-LfjuLa Received: from cloud220.unlimitedwebhosting.co.uk (cloud220.unlimitedwebhosting.co.uk [149.255.60.183]) by mailgw01.thundermail.uk with ESMTP id HtAhZUGbFCr46Edc (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 24 May 2021 16:14:56 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud220.unlimitedwebhosting.co.uk[149.255.60.183] X-Barracuda-Apparent-Source-IP: 149.255.60.183 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud220.unlimitedwebhosting.co.uk (Postfix) with ESMTPSA id 26CF1C8D840 for ; Mon, 24 May 2021 16:14:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1621869295; bh=/EJMI6hS9wvgEoaYgiA4E6HnsnLbAn3MszfA5UPnNYM=; h=From:To:Subject; b=sCtUo/ZWZVHnXK2uUtS4lQNQy84hYc5mIqdpFbm/z6y++MZyIIqVs8R+ZMg7czNHR 1jsMwCdGHd+2vuoTIhMgtmp1YaNGObmSUSVD2VgYLe62JsAKpiT0f79B+awT1q7NJF CrrX/jjQskN7DRrj8FA1pJP6/2nsaz7dnUbDdopQ= From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Dual booting with Windows 10 Date: Mon, 24 May 2021 16:14:43 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] Dual booting with Windows 10 Message-ID: <1829103.taCxCBeP46@lenovo.localdomain> In-Reply-To: <2588375.mvXUDI8C0e@wstn> References: <1870789.yKVeVyVuyW@lenovo.localdomain> <2588375.mvXUDI8C0e@wstn> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1759998.atdPhlSkOF"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20210524151455.3581026.37761@cloud220.unlimitedwebhosting.co.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud220.unlimitedwebhosting.co.uk[149.255.60.183] X-Barracuda-Start-Time: 1621869296 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-ASG-Orig-Subj: Re: [gentoo-user] Dual booting with Windows 10 X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 4042 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.90166 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: b4022ca2-6afe-498a-9151-13ba871cb6fb X-Archives-Hash: 7b229ea0b6c561c70dbe932ad7466031 --nextPart1759998.atdPhlSkOF Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] Dual booting with Windows 10 Date: Mon, 24 May 2021 16:14:43 +0100 Message-ID: <1829103.taCxCBeP46@lenovo.localdomain> In-Reply-To: <2588375.mvXUDI8C0e@wstn> References: <1870789.yKVeVyVuyW@lenovo.localdomain> <2588375.mvXUDI8C0e@wstn> On Monday, 24 May 2021 14:11:00 BST Peter Humphrey wrote: > On Friday, 21 May 2021 20:06:25 BST Michael wrote: > > On Friday, 21 May 2021 15:42:01 BST peter@prh.myzen.co.uk wrote: > > > Hello list, > > > > > > Mynew machine has Win-10 installedon /dev/nvme0n1 with the ESP as > > > partition > > > 1. I want to install Gentoo on /dev/nvme1n1. So far I haven't found a > > > way > > > to set up a working boot arrangement. I've tried mounting the ESP on > > > /efi, > > > on /EFI and on /boot/EFI. Efibootmgr seems to write a boot entry in some > > > of > > > those cases, and it's still there after a reboot - but it isn't visible > > > to > > > the BIOS. > > > > > > Can anyone offer some enlightenment, please? > > > > If your ESP is on /dev/nvme0n1 and you are using vmlinuz symlinks, you can > > use /boot/EFI as the mountpoint for the ESP VFAT partition. Your > > kernels/config/ System.map/initrd.img files will go into /boot, which will > > be on the same fs as / on /dev/nvme1, using a fs which supports symlinks. > > > > The efibootmgr '--loader' option should/could be used to specify the path > > to your bootloader image, or if you are not using a bootloader image to > > chainload your kernel with, point it directly to the path of your kernel; > > e.g. > > > > efibootmgr --create --disk /dev/nvme0n1 --part 1 --label "gentoo-5.10.27" > > \ > > --loader "\EFI\gentoo\gentoo-5.10.27.efi" > > > > The BIOS/UEFI menu should be able to list entries of bootable *.efi > > images, > > as long as they are within the subdirectory of /boot/EFI on the ESP, but > > if > > you are using a bootloader, then it is the bootloader image which will run > > and chainload your OSs and their kernels. > > Thanks Michael. I've finally got it booting, by resorting to the same hack > as I did on my previous machine. > > Using efibootmgr to add a UEFI boot record does create it, but selecting it > in the BIOS fails and it just drops to the next in line: Windows 10. No > adjustments to the --create command resulted in a bootable system, so I had > to run bootctl-install as well and then remove the hex-numbered directory > and restore my own loader.conf. I spent days wrestling with this. > > It's clear that I just don't understand UEFI booting. It sounds simple > enough, but it clearly isn't. I've read everything I could find on the > subject, to no avail. Peter, what efibootmgr stanza do you use to create your UEFI boot records? It seems the UEFI firmware fails to process what you provided and proceeds to the next bootable option (Windows 10). Typically you would either run efibootmgr to inform the UEFI firmware of your OSs kernels directly, or you would engage the services of a boot manager to list and boot your chosen OS. In the former, the UEFI firmware will boot the OS directly. In the latter, the UEFI firmware will load the boot manager and then the boot manager will select and boot the OS. The process for updating the UEFI boot menu with available kernel images using the efibootmgr command, is different to updating the boot menu of a 3rd party boot manager. The two are not related, other than ultimately loading the selected kernel/initrd. Something you should note is unlike 3rd party boot managers, the UEFI firmware cannot boot directly symlinked vmlinuz and initrd.gz files. This is because the UEFI parses the contents of the ESP, which is formatted in VFAT - a filesystem which does not support symlinks. In this case, a 3rd party boot manager will be launched by the UEFI firmware from within the ESP, which will be in possession of required 'os-prober' and filesystem drivers to access and launch the OS kernel/initrd image from your root partition. You can contact me off list if you want to work through the detail of configuring your system with and without a boot manager. I think once it clicks, you'll be able to apply your preferred solution without much trouble in the future. --nextPart1759998.atdPhlSkOF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmCrwuMACgkQseqq9sKV ZxlGmg/9F2xs2cXFwVDxSNzx9ZzZQrq+dprvHsRvbB+SW/ksNCp/wDoN9Ph/H4WE HbQ1vxr0mcF7reuFxf0EpRkwJ/aBJpgDCXxHwyKY2e9j/cLuUCFtDK3vFmF20kkr p+Y0nel5BDM9gat3aP2DxczbAA1iaT7ckl6EolP/2qsfjaYCdefAHGR+EWQTsiqh 5uN/cYt8Bf/8rRcP3Qh4bkInd/BLwXpjjPC1r/t0PoXXz2fl/ynFenmuLL/ulPay gMtSnk1FTbIVqMFKoUcC6CMJl8ICJQ4Etvs85F1TxJa0+1w2CPHHEPbdxHR7PcFR DaiDSP2GasPXWg0uX8RJShnZgukSVMfmZE8Q1iT4XgmUF5CRPwVBvDUjCa/+0/lW jO2PofZ+1bL6sxRSIC7v5Rq06YqFK3/q766CT9i7awLCG8U/hX9+zwVddW+vXf3J yjLxVosPxHmDaxvy6n+4N9wOgiP6IlMDs4sixCZtXHurKOqy8KkSMzCakCGHUmCd 3B55b5Uzrusa7Cip/ZfCeqedkV1XoHBhdpewTaHrz7H1ANIVdfqKRiXM6y4t1rjS k8UdfyB2LaNX1QnCbSE72V0pzKWbN7FtO9ysvGPi2fc6/0eIKYHntMGQM/9Q5/lY hEOQ0/dXrePNuRrQzgGfBoc2BpDw53y2HzHFXb8mwydsaSpSSLw= =T+VM -----END PGP SIGNATURE----- --nextPart1759998.atdPhlSkOF--