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 91E851382C5 for ; Mon, 24 May 2021 14:01:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2BF63E0824; Mon, 24 May 2021 14:01:41 +0000 (UTC) Received: from smarthost01b.mail.zen.net.uk (smarthost01b.mail.zen.net.uk [212.23.1.3]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 900F2E07DB for ; Mon, 24 May 2021 14:01:40 +0000 (UTC) Received: from [82.69.80.10] (helo=wstn.localnet) by smarthost01b.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1llB9G-0002nv-O2 for gentoo-user@lists.gentoo.org; Mon, 24 May 2021 14:01:38 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Dual booting with Windows 10 Date: Mon, 24 May 2021 14:11:00 +0100 Message-ID: <2588375.mvXUDI8C0e@wstn> In-Reply-To: <1870789.yKVeVyVuyW@lenovo.localdomain> References: <1870789.yKVeVyVuyW@lenovo.localdomain> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-smarthost01b-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: b0e49b08-7c77-424b-ae38-597ce81dc7ec X-Archives-Hash: 0ee09f0a2f943d60935310e86670218b 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. -- Regards, Peter.