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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63527158041 for ; Sun, 10 Mar 2024 12:58:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14A71E2A1F; Sun, 10 Mar 2024 12:58:35 +0000 (UTC) Received: from buffalo.tulip.relay.mailchannels.net (buffalo.tulip.relay.mailchannels.net [23.83.218.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8981E2A03 for ; Sun, 10 Mar 2024 12:58:33 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6FD0B2C1251 for ; Sun, 10 Mar 2024 12:58:32 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1710075511; a=rsa-sha256; cv=none; b=HMTfQ/uWDpFOqNxIJGxQSedlUWjPJv4RKJ751fagQhCNGxcw8FSOaCX9T4EEv8o64YXEnS OTuaf9O4jffYpKocnUY66foMOQiPF3CZOb/0YpxAdE4hI2rKkE+0YpXHICa0jecEbbgg0x D1TAa5edqCeNa6CI5H5rOpeUE7eJNDFfyv1hPw18Gf2NzNEY4EVpKLwTqfgHdeVgjx16VP 8R67H8Ox/sY+MCL4uTBkpB0syn8U7DYYM4RoNf+EGJTtAuC0PH1g1nedqloiQp3JMrrSG3 wdOfkcKJT6VU12leD5043TbJiq4h0CYCbzQpxIPZDjLHo7IHdXbJYyIPppESOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710075511; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=vBYuDGNYWtElFXReWch0Hu1tcEUSR8xcz+vi0Aa/PUw=; b=11Cq6yjXgLmmb957vwFaYUCL/gvu+IaszoL3WSO05LNTRy7RtzbwynowJ9maR97ffX3ll4 BxaB4McDDVkxcQp1pbph2LVo1RT52sTvL83nbAGz0NvKDgsEaq9C3Zd5RsrTIsY+8hh3cd gM/8efrIl1V36Vz+PuZmnh5uT6CUcthwGrU6g58vIqzxx1fylz+r4T5XFqrAGbpdJPiiNe p++PDY4BjE83ErMbV3z/BU+r5k2PcGhxi44bKl3XlFJwHZQ5rYJrtm55FrwlOvDvcO36WY tazwX47S4ywJRNsLuGfQmngdllwO23/tdvppUtmmkWnqNVs9Yq62frlze1+w9g== ARC-Authentication-Results: i=1; rspamd-5db57bc4b6-7g4vs; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Minister-Shade: 05a1b03a4c1b8867_1710075512111_968515496 X-MC-Loop-Signature: 1710075512111:1897765688 X-MC-Ingress-Time: 1710075512111 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.127.222.70 (trex/6.9.2); Sun, 10 Mar 2024 12:58:32 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id DAEC5401EF for ; Sun, 10 Mar 2024 12:58:26 +0000 (GMT) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: How to set up drive with many Linux distros? Date: Sun, 10 Mar 2024 12:58:26 +0000 Message-ID: <1882593.tdWV9SEqCh@rogueboard> 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="nextPart2178356.irdbgypaU6"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <171007550613.4100352.12474596639012907710@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Server: mailclean11 X-Rspamd-Queue-Id: DAEC5401EF X-Rspamd-Action: no action X-Spamd-Result: default: False [-0.61 / 999.00]; SIGNED_PGP(-2.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; ONCE_RECEIVED(0.10)[]; MX_GOOD(-0.01)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; R_DKIM_NA(0.00)[]; NEURAL_HAM(-0.00)[-0.974]; R_SPF_ALLOW(0.00)[+mx]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Archives-Salt: 9853fdb6-1d57-4c6c-808f-6a5f33d3c0cd X-Archives-Hash: c87c19177c76641c40dc16d77c284837 --nextPart2178356.irdbgypaU6 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 Date: Sun, 10 Mar 2024 12:58:26 +0000 Message-ID: <1882593.tdWV9SEqCh@rogueboard> In-Reply-To: References: MIME-Version: 1.0 On Friday, 8 March 2024 23:24:02 GMT Grant Edwards wrote: > On 2024-02-22, Grant Edwards wrote: > > For many years, I've used a hard drive on which I have 8-10 Linux > > distros installed -- each in a separate (single) partition. > > > > [...] > > > > Is there an easier way to do this? > > After some additional studying of UEFI and boot managers like rEFInd, > I decided that my current approach was still the easiest method. I did > switch from DOS to GPT disklabel (I bricked my old drive tring to > update the firmware, so I had to start over anyway). > > In case anybody is interested in the gory details, I documented my > scheme and the helper shell scripts at > > https://github.com/GrantEdwards/Linux-Multiboot Thank you Grant for taking time to share your clear and well structured write up, what with helpful scripts and all! Its easy to follow and should help others, hopefully before they discover belatedly many distro installers can mess up a multiboot scheme, if they don't step in to keep things in check. Perhaps I'm picking up on semantics, but shouldn't this sentence: "... The gap between the DOS disklabel and the first partition" read: "The gap between the MBR and the first partition"? I'm saying this because the MBR in sector 0 contains the bootstrap code (446 bytes), the partition table (a.k.a. DOS disklabel 4x16 bytes) and the boot sector signature (2 bytes). On MBR partitioned disks the core.img is stored after the MBR, in sector 1 onward. Your next paragraph pointed out something which I hadn't considered at any length. Namely, the installation of GRUB's boot.img in a MBR or VBR also hardcodes in a block list format the location of the first sector where the core.img is stored and more importantly, the physical position of this sector can be altered both by COW fs (and by the wear levelling firmware of flash storage devices). I had assumed both the COW fs and/or the flash controller will in both cases translate any physical data position to the logical layer and presented this to inquiring software. Have you actually tried using btrfs as a distro's root fs to see if the VBR installed GRUB boot.img will ever lose access to the core.img? --nextPart2178356.irdbgypaU6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmXtrnIACgkQseqq9sKV ZxmXKRAAxOeiz4c1WUxvyj9VifP3Nt61HXGnZb+3GioOoRmnHlraERGB+2ezAQdc P6jkHMuAjTl/TsisuxSYsUkdlT3uLKIFhtsIeStU16syqWKG5Bm4rRPeKSpPDsJz JPx2a2QGub+IRLBojkDHB8z0RTTwgIfsElMXSJnx2hg1gQRnnu+r09tSAGutSF0i p8fkm9PDRA+IxiX12h/EibnV2L/ulineVDtDL4YEay8/SMsE/57++Nc9f3nXb2Ww ZbnK86XnX6cTa5sQjgOI9I361J6i38jMiv73gobRJnz+V5F/RLXHNM8YsVjiG1Bj XCAgPO4Wo27pvVwWKZgD4bMpYoSloW+jjHisRCSM2qeNWVIPupXuEtGFRzRCUAVK WyPvMhDwsR5HRMPVxkuLTjgKfJXzN3EBCYGgpAVXYSvkZKf9wRbLXI3vBn+mflEQ 2ckLcszpdsrozPrtafxjsZ3TqK9TqgTQNTVcHEGOgHQ+TxF5+z18X/WL8yfBTopY j2zV37CxlFo6bpgNlTIWudlhBKSNLBSAzUDi0EXZ3tX+M+4nuwlFfuGNo5Lo2tOU KOyz1pm/I2WIhzxPiuk1zZBvkIkZHSA3ddZdzRo8V1JYCc8QQWwjpwJm16wdmBMg vodmX2uctj1G1bJIC9pyRMqQpw7xga/kxdW8KHLTL9thvNgLFZg= =diqH -----END PGP SIGNATURE----- --nextPart2178356.irdbgypaU6--