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 756311382C5 for ; Sat, 26 Dec 2020 12:53:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CD0BE0BA3; Sat, 26 Dec 2020 12:53:10 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.77]) (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 08532E0B06 for ; Sat, 26 Dec 2020 12:53:09 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id A41316007AA3 for ; Sat, 26 Dec 2020 12:53:07 +0000 (GMT) X-ASG-Debug-ID: 1608987185-0554130f6532eeaf0001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id 2moENdqmQaHGzQT8 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sat, 26 Dec 2020 12:53:05 +0000 (GMT) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Apparent-Source-IP: 149.255.58.40 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud307.thundercloud.uk (Postfix) with ESMTPSA id 0C741C74DED for ; Sat, 26 Dec 2020 12:53:04 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1608987185; bh=Xw3bM/kc0cbFeZxSODaZYoszfttGt0RFf2vRYinpvBc=; h=From:To:Subject; b=deSntSFtAxP1eDzE2RN5JeTbWytdaohBwRWE/a/MabMuiDn+WsqjrVxuRXUNMe+xp ekIAyW96kqtWtLCBWNBDxOvctXz45RMr4wlEE4ymRI28I/LruGt2od0ZKXXPEzC5Q7 Il3qIAjI5KRaEWa8taBnSU+qvrNtrWkMC99vt5aU= Authentication-Results: cloud307.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=lenovo.localdomain Received-SPF: pass (cloud307.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] UEFI install noob questions Date: Sat, 26 Dec 2020 12:52:36 +0000 X-ASG-Orig-Subj: Re: [gentoo-user] UEFI install noob questions Message-ID: <4078098.ejJDZkT8p0@lenovo.localdomain> In-Reply-To: References: 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="nextPart2056992.Mh6RI2rZIc"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20201226125305.99049.14385@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1608987185 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] UEFI install noob questions X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 3755 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.86803 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: a708a948-1dd6-46a7-89a7-01b5d4303633 X-Archives-Hash: 8d6c0b97613c9bd362b3b5c0a5ecde69 --nextPart2056992.Mh6RI2rZIc 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] UEFI install noob questions Date: Sat, 26 Dec 2020 12:52:36 +0000 Message-ID: <4078098.ejJDZkT8p0@lenovo.localdomain> In-Reply-To: References: On Saturday, 26 December 2020 06:28:44 GMT Walter Dnes wrote: > This is my first UEFI install, so please pardon the questions. > > 1) Partitioning questions: The standard layout example in > https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#What_is_the_BI > OS_boot_partition.3F says... > > > The BIOS boot partition is needed when a GPT partition layout is used > > with GRUB2 in BIOS/Legacy mode. It is not required when booting in > > EFI/UEFI mode. > > The standard layout example is... > > Number Start End Size File system Name Flags > 1 1.00MiB 3.00MiB 2.00MiB grub bios_grub > 2 3.00MiB 131MiB 128MiB boot boot > 3 131MiB 643MiB 512MiB swap > 4 643MiB 20479MiB 19836MiB rootfs > > Given that my machine is incapable of booting in BIOS/Legacy mode, I > assume that the 2-megabyte partition is unnecessary, grub or no grub. Your assumption is correct. This BIOS-GRUB partition is used on GPT partitioned drives to hold the GRUB 2nd Stage files. Since you're not familiar with GRUB it may help to add some background on the GRUB boot manager architecture. It contains two stages, some argue 3 stages if you include /boot/grub/. The Boot Loader code takes up 446 bytes and is stored in the MBR - sector 0 of the disk. This is the 1st Stage. The 2nd Stage contains files and drivers required by GRUB to be able to jump to and read the contents of any filesystems used on the OS /boot partition. On a disk with a conventional DOS partition table, the 2nd stage files would be normally stored in the "MBR gap", the empty space in the sectors following sector 0 and before the OS partitions start. This presents a problem on disks partitioned with a GPT, when installed on a legacy BIOS MoBo. This is because sector 1 of the GPT partitioned disk is used by the GPT partitioning structure to store the partition table. So, the solution for a GPT disk is to use a dedicated partition, the GRUB-BIOS partition, in which the 2nd Stage GRUB files can be stored. On a UEFI MoBo, the Boot Loader code is in the UEFI firmware itself, stored in the EEPROM. This code contains all requisite drivers to be able to scan the disk, identify the ESP partition and pick up any .efi executables in its VFAT filesystem. No other boot loader MBR code is required. 3rd party Boot Managers like GRUB will install their grubx64.efi image in the ESP and this in turn will load any necessary drivers and files to load the GRUB boot menu and any selected OS kernel image thereafter. > Also, given bloat over time, is 128 megabytes still sufficient for the > boot partition today? I plan to keep 2 kernels around at all times, > "Production" and "Experimental". I tend to keep 2 - 3 kernels at a time in the ESP. Along with their corresponding System.map and kernel config files also stored there, 2 kernels currently occupies 26MB. This is on a Gentoo system with no other OS present and no 3rd party boot managers. A laptop, which also has MSWindows OS on it, takes up 54MB of the ESP. I use the UEFI firmware to switch between kernels and live media at boot time. I manage the UEFI menu entries and their order using the efibootmgr application on a CLI, whenever I install a new kernel. If you switch between OSs and live media all the time, then GRUB, rEFInd, et al., would arguably be more convenient. I use 250-500MB for ESP partitions and for my needs this is way more than adequate. If you install 10s of multiple OSs, initramfs, and other applications, then you might need more space. HTH. --nextPart2056992.Mh6RI2rZIc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl/nMhQACgkQseqq9sKV ZxlXqg/7BqX6nmC0KlhtYHXOHVCnXkpEf0UrRxSvetcqyugKi4HEt+yz2TpkP4wn b4joC/EIoxxoyV+3yCjfP4Q/0XtaqY5LFDZVUFXPoH49OxwvO4rLP6U11rR7+Vpk KWMEDnBU2XuBun8DCC0haF7Ojmk0ld6kVnQ0PTplbOp5DBiISo6kMSWZ9nBFd/lA deNfZYbMK/PcROrryRmHbk3ZVrrdyjxlXx6r9l0HYZjlQ4IAGzgUaBTnwJ1MeBz1 DteKRfe71G/puYCoLLTyx4fHsmK0KsuNyA/ZlhEMRdUC326+o6BQP/JlcoZ+Hxjg S4cT1moRiOlIS2N8Sq9qTMck0vshjFROiowrAPNqDHuh9lm7epGoyu32+GurawSY CrheYpmI7yaawsm8wH44OWTesjG6UrevNvHKM3CKyJfmdj3CfdlsNtXWi9r/niW0 onIDr/vQcv1CzQOcXxsrE4KS2+w2quNIQRXzP1kjz3duftVH4jSxZykP5mDNOn18 I4dccDyJZ/3G82f5GVP9lnVPvWIDcEUi7uqsnAg8r8u+yAll1DG6c1Fn9LN2kR+a WDkjlvohEcChPOUgwgq0NtguwtMlqOq3iJrlax7rS2mW0/U71Z8AtIYFl6NP4EYB 0uFdgBJh1V/QnRX4BdThCKesiwHvsNxdZ8x7TOtW1647N4DopYs= =8F23 -----END PGP SIGNATURE----- --nextPart2056992.Mh6RI2rZIc--