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 439171382C5 for ; Thu, 27 May 2021 08:22:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CB96E11BA; Thu, 27 May 2021 08:22:36 +0000 (UTC) Received: from smarthost01d.mail.zen.net.uk (smarthost01d.mail.zen.net.uk [212.23.1.7]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AEAA9E115D for ; Thu, 27 May 2021 08:22:35 +0000 (UTC) Received: from [82.69.80.10] (helo=wstn.localnet) by smarthost01d.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1lmBHl-0008Iz-Tf for gentoo-user@lists.gentoo.org; Thu, 27 May 2021 08:22:33 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Dual booting with Windows 10 Date: Thu, 27 May 2021 09:22:33 +0100 Message-ID: <4623607.GXAFRqVoOG@wstn> In-Reply-To: <3076758.aV6nBDHxoP@lenovo.localdomain> References: <2793411.e9J7NaK4W3@wstn> <3076758.aV6nBDHxoP@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-smarthost01d-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: a0e41e2e-b7cf-42a0-bc11-573ea3d393a1 X-Archives-Hash: 386ecc1dc56b811af29200017e4356b6 On Wednesday, 26 May 2021 14:49:01 BST Michael wrote: > On Tuesday, 25 May 2021 16:23:01 BST Peter Humphrey wrote: > > Thanks for the offer, Michael, but let me clear a few things up first. > > > > 1. I don't use symlinks in /boot. > > This allows a simpler single boot partition (ESP) & filesystem set up > (VFAT). How do symlinks work on a FAT32 partition? --->8 > I notice you have /dev/nvme1n1p1 named as "boot". Is this a secondary boot > partition? What is its mountpoint? What does it contain? It's a hangover from my attempts earlier. I'll remove it soon. --->8 > > I followed the installation handbook, boot-loader section, to create a > > UEFI > > boot entry. I followed the syntax precisely, with several variations at > > various attempts. In every case, the UEFI BIOS listed the new entry but > > couldn't execute it. > > This should work to launch your systemd-boot: > > efibootmgr --create --disk /dev/nvme0n1 --part 1 --label "systemd-boot" -- > loader "\EFI\Boot\bootx64.efi" It didn't, but ... > This would also work, if vmlinuz-5.10.27-gentoo, config-5.10.27-gentoo, and > System.map-5.10.27-gentoo are stored on the ESP under the EFI/ directory, > e.g. in EFI/Linux/, to launch your current kernel directly: That's the point I was missing - where those three files live. I had them at the root of the FS, as implied by the installation wiki. > efibootmgr --create --disk /dev/nvme0n1 --part 1 --label "Gentoo-5.10.27" -- > loader "\EFI\Linux\vmlinuz-5.10.27-gentoo" --->8 > 2. Use some other better suited 3rd party boot manager (not systemd-boot). > The principle is broadly the same as your present setup. Each boot manager > has its own idiosyncrasies and commands of choice. GRUB is quite automated, > although you can overwrite its grub.conf menu and decline using > update-grub, or grub-mkconfig to generate it. Then again, why would you > select such a heavily automated and complicated piece of software, only to > bypass the very functionality its devs wanted to offer? Contrastingly, > syslinux is very simple and lightweight, but you have to manually configure > its also very simple boot menu. I don't want to start on about grub. I washed my hands of it a few years ago, after struggling to set it up to offer a choice including a kernel with three run-level options: default, no X and no network. > PS. The UEFI firmware will scan more than a single VFAT partition marked as > ESP type, but as far as I know this will only work if the ESP is on the > first disk - I haven't tried it. That may be Wol's answer. Thanks again for all the work you've put into this, Michael. -- Regards, Peter.