From nobody Tue Jun 21 16:43:02 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C6D5587D575 for ; Tue, 21 Jun 2022 16:43:07 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LSC4V4z7Rz3Lx6 for ; Tue, 21 Jun 2022 16:43:06 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1655829783; bh=kz6cftidjjPRNr/ZATsZli/IwsNMP1/X+dySRuWELLc=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=CtWccofPB9xuaVTQKMWa4QN19fYAKCV8UaySxfuV8bft+2ofCxXmV1nh5mDoMpwxI JufeuvL7WfNP7+ZXNpHd4gzBwhypRPTK7vG35w4Rwzj5W7ni25VE1U2JLPL6ZUPTxP edXF050tb8YiMpw3oIYrTe5LUZ0jXU12WT2otgYl/17VLYAyjkdmHXrz37gyPZltuG DsoB0Uxm26WwXKhOR/lvaii/yM4Aiz7usBdL4ScFHVRnsLEv0MKHVVD4i7LAf8EgvK GSMMnFcxxZTryAtY6mA5b2MEMLSbW8opixBT2sjDBQlSteFW6VKSg4ozV444r0kh5v r6xBkzTlN+SKBISuGhX4EFP9VKzbR78RenPVTRskc/4Q9ZIpnmkrZHnNKgyMX3f9jh gZKhVMWw5SRETPh3VnuUp59gL/gEsmhQ6SNLgt+66np/WCN6CrrKWm0aGXUkel5dk5 wuMerne5dzaBMk6iZzfjmGii01HxR3bYRq63c5qLulk3IOsAH6+niS0BCyz3XYljx7 RZ6TGGyQnukrvmPwUXGfF+2HdaMLzbNKwUCi0st0a7CVcHLLAMkIGRLK/h6jXMhIBV Z+d1QuZkW4+W4I+TLr75kle6B2mvVgNkdmwcVRA0dq978ez7e5glS0Av0BQ948xLzd qIaLcL2prrU4s7qcPwCDSRbg= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Tue, 21 Jun 2022 09:43:03 -0700 Message-ID: Date: Tue, 21 Jun 2022 09:43:02 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: BIOS/MBR drive enumeration order, FreeBSD dev nodes, GELI ZFS root, and ZFS boot Content-Language: en-US To: questions@freebsd.org References: <20220621053741.3dbb0d2e.freebsd.ed.lists@sumeritec.com> <8341d336-4115-f1a6-9591-412f14aef7ea@holgerdanske.com> <20220621080337.79d9700c.freebsd.ed.lists@sumeritec.com> From: David Christensen In-Reply-To: <20220621080337.79d9700c.freebsd.ed.lists@sumeritec.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4LSC4V4z7Rz3Lx6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=CtWccofP; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[holgerdanske.com:+]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[questions]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 6/21/22 01:03, Erich Dollansky wrote: > Hi, > On Mon, 20 Jun 2022 23:24:44 -0700 David Christensen wrote: >>> On Mon, 20 Jun 2022 11:35:01 -0700 David Christensen wrote: >>>> I have installed a HBA: >>>> >>>> Promise Technology Ultra 133 TX2 >>>> >>>> >>>> Connected the HDD to the HBA: >>>> >>>> Maxtor 6L200P0 >>>> >>>> >>>> And set the CMOS Setup boot order so that the SSD is before the >>>> HDD. >>>> >>>> >>>> When I boot the machine I see the first prompt: >>>> >>>> GELI Passphrase: >>>> >>>> >>>> No matter what passphrase I enter, I always see the second prompt: >>>> >>>> Enter passphrase for ada1s1d: >>>> >>>> >>>> Note that "ada1" no longer corresponds to the device node name of >>>> the SSD when FreeBSD was installed. (I suspect the HDD is "ada0".) >>>> >>>> >>>> No matter what passphrase I enter at the second prompt, it is >>>> always rejected. FreeBSD will not boot. >> >> >> On 6/20/22 22:37, Erich Dollansky wrote: >> > Hi, >> > >> > allow me a general answer on top: FreeBSD has support for labels. >> > Just give each partition a name and use the partitions via their >> > names. This works then even if you move the devices to other >> > machines. >> >> >> Thank you for the reply. >> >> >> I have several older machines in my SOHO network. BIOS/MBR is the >> lowest common denominator, so that is what I use. AIUI MBR does not >> support partition labels, only GPT. >> > GEOM and UFS also support labels. It should not matter then what > BIOS/MBR thinks of the disk. I use ZFS, not UFS. I will look into GEOM labels. >> I seem to recall that it is possible to slice/ partition the boot/ >> root drive with a hybrid MBR/ GPT scheme such that BIOS thinks the >> drive is MBR but the FreeBSD boot loader switches to GPT at some >> point (?). Can this be achieved with the FreeBSD installer per >> "Guided Partitioning Using Root-on-ZFS"? >> >> https://docs.freebsd.org/en/books/handbook/bsdinstall/#bsdinstall-partitioning >> > I use gpart by hand like this: > > gpart destroy -F Device > gpart create -s GPT Device > gpart destroy -F Device > gpart create -s MBR Device > gpart bootcode -b /boot/mbr Device > gpart add -t freebsd -i 1 Device > gpart set -a active -i 1 Device > gpart destroy -F Devices1 > gpart create -s GPT Devices1 > gpart destroy -F Devices1 > gpart create -s BSD -n 10 Devices1 > gpart bootcode -b /boot/boot Devices1 > gpart add -t freebsd-ufs -a 4k -s 1G Devices1 > glabel label root Devices1a > newfs -S 512 /dev/label/root > gpart add -t freebsd-swap -a 4k -s 16G Devices1 > glabel label swap Devices1b > > I repeat then: > > gpart add -t freebsd-ufs -a 4k -s xxG Devices1 > glabel label Devices1a > newfs -S 512 /dev/label/xxx > > until all required partitions are done. I ZFS is used, I do not use > newfs but the ZFS tool. Wow. That is complex. And, it does not appear to produce encrypted swap nor encrypted ZFS root (?). I will see if I can use the FreeBSD installer to achieve a suitable result. David