From owner-freebsd-questions@freebsd.org Thu May 28 18:02:57 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2A63B2F8E6D for ; Thu, 28 May 2020 18:02:57 +0000 (UTC) (envelope-from salvatorembartolotta@libero.it) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49XwXc6rgFz3ZT6 for ; Thu, 28 May 2020 18:02:56 +0000 (UTC) (envelope-from salvatorembartolotta@libero.it) Received: by mailman.nyi.freebsd.org (Postfix) id EB0072F90D9; Thu, 28 May 2020 18:02:56 +0000 (UTC) Delivered-To: questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EAC412F8E03 for ; Thu, 28 May 2020 18:02:56 +0000 (UTC) (envelope-from salvatorembartolotta@libero.it) Received: from libero.it (smtp-36-i2.italiaonline.it [213.209.12.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49XwXb49y5z3ZMx for ; Thu, 28 May 2020 18:02:55 +0000 (UTC) (envelope-from salvatorembartolotta@libero.it) Received: from oxapps-11-064.iol.local ([10.101.8.74]) by smtp-36.iol.local with ESMTPA id eMrkjWRnhU4WQeMrkjeFQA; Thu, 28 May 2020 20:02:53 +0200 x-libjamoibt: 1601 X-CNFS-Analysis: v=2.3 cv=QsAgIm6d c=1 sm=1 tr=0 a=ojq0VnVTS2/CxZR53wvDZg==:117 a=va6rmY3RZU4A:10 a=IkcTkHD0fZMA:10 a=6COVkljPvkcA:10 a=HfjpIsAm_iaoVAXxfh4A:9 a=QEXdDO2ut3YA:10 Date: Thu, 28 May 2020 20:02:52 +0200 (CEST) From: salvatorembartolotta@libero.it To: Masachika ISHIZUKA Cc: questions@freebsd.org Message-ID: <541290807.815064.1590688972628@mail1.libero.it> In-Reply-To: <20200527.154010.456241527955787106.ish@amail.plala.or.jp> References: <1590634251.1341132.1590515827296@mail1.libero.it> <20200527.154010.456241527955787106.ish@amail.plala.or.jp> Subject: Re: rEFInd and _two_ FREEBSD systems on the same disk on the same UEFI laptop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.1-Rev30 X-Originating-IP: 151.63.216.180 X-Originating-Client: open-xchange-appsuite x-libjamsun: LxhUCEJ8run48ZHw7b45HsA/hGsDKa6aOjyvOVMYJ14= x-libjamv: fgT+FfGMLAc= X-CMAE-Envelope: MS4wfPewrqmtAL1JqlDxX6U4dRbScZ143dbpe9tdG5NWTr1Iftg09SxKG/SI7F7QA052PCFSq8fy2H70lhpOo+PAWJNciVSnFzPbvJJRaKCU9fM/jECiRHAY bnlnW6oMkvEjFE+5K+bWQzozSn1UuQ36sGAWDyP55wOfk7I3yY1eQkYXUshrAScwVoPTYG1hNIKT4dUekjUI0bcvENBQ5AS+AOgnwNazsgcemczubtR36mww X-Rspamd-Queue-Id: 49XwXb49y5z3ZMx X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.08 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[libero.it]; R_SPF_ALLOW(-0.20)[+ip4:213.209.8.0/21]; DKIM_TRACE(0.00)[libero.it:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.12)[-1.123]; DMARC_POLICY_ALLOW(-0.50)[libero.it,quarantine]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[libero.it]; ASN(0.00)[asn:8660, ipnet:213.209.0.0/18, country:IT]; DWL_DNSWL_NONE(0.00)[libero.it:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.995]; R_DKIM_ALLOW(-0.20)[libero.it:s=s2014]; NEURAL_HAM_LONG(-0.96)[-0.961]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NO_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[213.209.12.36:from]; WHITELIST_SPF_DKIM(-3.00)[libero.it:d:+,libero.it:s:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[213.209.12.36:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2020 18:02:57 -0000 > Il 27 maggio 2020 alle 8.40 Masachika ISHIZUKA ha scritto: > > > > Has anyone installed two BSD (say -RELEASE and -STABLE) on the same disk on the same UEFI machine using rEFInd? > > I'm using rEFInd and /dev/ada0p9 is / for 12.1-release and > /dev/ada0p10 is / for 13-current. > > I copied /boot/loader.efi (from current) to /EFI/freebsd/loader.efi. > > /EFI/refind/refind.conf is like the following. > > menuentry FreeBSD-release { > loader /EFI/freebsd/loader.efi > options "rootdev=disk0p9 autoboot_delay=1" > icon /EFI/refind/icons/os_freebsd-release.png > } > > menuentry FreeBSD-current { > loader /EFI/freebsd/loader.efi > options "rootdev=disk0p10 autoboot_delay=1" > icon /EFI/refind/icons/os_freebsd-current.png > } > -- > Masachika ISHIZUKA Good afternoon, Thanks for your swift and to-the-point reply. Three remarks spring to my mind: 1) loader.efi is so smart as to manage, by _itself_, internal disks HDs/SSDs[1] (my laptop hosts a Samsung pm981 SDD),- no refind drivers for FreeBSD filesystems are needed; 2) loader.efi (about 500K in -CURRENT) is, so to speak, a full-fledged program, much smarter than loader(8); and I suppose loader.efi implements a _superset_ of the features of loader(8), documented in loader(8)'s man page; 3) There was a gotcha for my laptop. Setting the rootdev variable, apparently, made no difference and refind only booted the first system in the disk. I guess this has to do with the traditional (split) partition layout I had chosen for both of FreeBSD variants: 512K freebsd-boot[2] type partition, then \, swap, \var, \tmp, \home, and \usr. I reinstalled both variants with almost the same scheme, i.e. with _NO_ freebsd-boot type partition. The rootdev variable then just worked(TM). [1] I have yet to find a Linux distro able to detect my SSD out of the box(TM) - i.e. without requiring changes in the UEFI settings. [2] Such an example can be found in FreeBSD's handbook.