From nobody Tue Jun 21 08:03:37 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 AAB3C868979 for ; Tue, 21 Jun 2022 08:04:14 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from out1-34.antispamcloud.com (out1-34.antispamcloud.com [185.201.16.34]) (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) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LRzYm5Z8Hz4yM5 for ; Tue, 21 Jun 2022 08:04:12 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=out.niagahoster.com; s=spamexpert; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date: reply-to:sender:bcc; bh=qKmFA/kNGwrTUFstBCOH6lzR9JnMq/DmPYx5VRUR0sw=; b=XMtHC 3xJ/DZ97fmJCmeQHOam1fSuqICCPCKaAuyUfaVnPTQY5BV2R7kZ2k7T3l3/2M/cl8gXV9q7CSOVKU jE9EstkRvreM96O9lIAhlwkLAvCbg6//aC2OfdT3CfFXdvFElkKYQgmro8FsF0oB3GN4ItUFkRoWL TfbJI8TcR/ZJ4hYFO3D3l9FXAYdiymsDU/lQEN5QPKZXJoCauhmt9jH/ymCMywJhkm8GZM/g+7jJi n3y/uWCKLXnBa20yK6QxTw9VEIEsoDtq/3Km8RCertBoz/KqHliZXPkVYBpch3TQlqCEcY/bUbjBP odFQ3tGAKEEPCLPbv6cgVgD0RNICw==; Received: from srv31.niagahoster.com ([153.92.8.101]) by mx177.antispamcloud.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1o3Yrc-000Ayy-P5; Tue, 21 Jun 2022 10:04:03 +0200 Received: from p4fca9d60.dip0.t-ipconnect.de ([79.202.157.96]:43655 helo=X280.sumeritec.com) by srv31.niagahoster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1o3YrM-0006NU-IM; Tue, 21 Jun 2022 15:03:43 +0700 Date: Tue, 21 Jun 2022 10:03:37 +0200 From: Erich Dollansky To: David Christensen Cc: questions@freebsd.org Subject: Re: BIOS/MBR drive enumeration order, FreeBSD dev nodes, GELI ZFS root, and ZFS boot Message-ID: <20220621080337.79d9700c.freebsd.ed.lists@sumeritec.com> In-Reply-To: <8341d336-4115-f1a6-9591-412f14aef7ea@holgerdanske.com> References: <20220621053741.3dbb0d2e.freebsd.ed.lists@sumeritec.com> <8341d336-4115-f1a6-9591-412f14aef7ea@holgerdanske.com> 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: freebsd.ed.lists@sumeritec.com X-Originating-IP: 153.92.8.101 X-Spampanel-Domain: out.niagahoster.com X-Spampanel-Username: niaga X-Spampanel-Outgoing-Class: ham X-Spampanel-Outgoing-Evidence: Combined (0.03) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT8jv+OUGY3FxBsPjCLY+4SPPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x4WZzB7FgipLlQvGhYPzyulNuc5TeRyKSBzYEqm+Z86B4L tVNR2GsLCoRH0v3X0GkynjmeIWN5pQjJZ4uJmHwdQXbe+Z12XOPRjYo7N4c3I1prjQPFk8m4tSTf ORUp3yn8qwQcwkW9qHuCQjXdrDqXcUXzzsskg25zjRSNGC/UZrwz2MpogAD7xcut2fULfiJlN+9h yy0OFIPdlNhKGNtQXgDVwbH+wn3W7gZdvbK7nWfPfoYZI4Eyb6mxKZxvI9NDW4euK8QwXmFbDmM0 Tz84c+FLhHnvcfW+JZd2P5ZUE1ghFiuDCY0EdD8+W8Mu0Tb1cHrX9rHXFIDsxfZTVODirN/5ANM2 X9aXxryziPgHX4WzllmvP1zzwP6QFs7NVJ5EDBffVZVjmVaNbG4ZJG7FT/h9BFftdbbPqfw1bwNa o5E3duSpl3s+9JzXSKJpDvDlgTl6fJxyntEfhZCKje4ZIDy33TYYV/ggu8f6D7asqSERbInMiTBI UBbQ/Dy6Ip6K5JcF3YIFzPX+75dI4GbSs253c+DMoZnzyKh2h2r9h9VYyUehaHtgnvRgGTw3nLHo nV+E7OMXRvgtdyMlnmWiSUC97KoABGPSQpU3kCYa9DuB8JQdwcZZovjHYIkg9lHm71RFWOlfiiYm 5gUjRNsNqzupA9xNz98NMSjx+yrh8abAvktuOzccmiJIz3CLNOD3Y80OmAux3oN13+ztUzne3pvX RZNEJbQK0Q2fNkug28iOCZMHSCplR2umg2mSwTEMNumn5qfus1JxGI7WlPiBFVaupYelnxmlrF1U 7ssO1yG7X+t1TW39Ja77LGPpOwAIhRtCat5Jqg3iWVo+xMzRbGMwes7NyHuYBdQjd1YteHtlcwBP EDuRgX2nw2sDgpSnnLuW2tr8CQy0KP6p8xxx76WS0gK94wcwLRgYWRwLFGUVrBsPGnNiJ83AD/4J scDdCjZWwS9m+thmP7o+KTTRU4CFxkJsiU0wAYZv/89420APDwuTQXrMTv4HNiPj/KkNN2ukizYS ekNdv+I2Wu4x X-Report-Abuse-To: spam@quarantine10.antispamcloud.com X-Rspamd-Queue-Id: 4LRzYm5Z8Hz4yM5 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=out.niagahoster.com header.s=spamexpert header.b="XMtHC 3x"; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd.ed.lists@sumeritec.com has no SPF policy when checking 185.201.16.34) smtp.mailfrom=freebsd.ed.lists@sumeritec.com X-Spamd-Result: default: False [-1.88 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[out.niagahoster.com:s=spamexpert]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sumeritec.com]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[out.niagahoster.com:+]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[185.201.16.34:from]; MLMMJ_DEST(0.00)[questions]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.58)[-0.577]; ASN(0.00)[asn:8972, ipnet:185.201.16.0/24, country:DE]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[79.202.157.96:received] X-ThisMailContainsUnwantedMimeParts: N 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: > > > >> freebsd-questions: > >> > >> > >> I have a desktop computer: > > > >> When I boot the machine, I see a prompt: > >> > >> GELI Passphrase: > >> > >> > >> If I enter the correct passphrase, boot succeeds. > >> > >> > >> If I enter an incorrect passphrase, I see another prompt later in > >> boot: > >> > >> Enter passphrase for ada0s1d: > >> > >> > >> Note that "ada0" corresponds to the device node name of the SSD > >> when FreeBSD was installed. > >> > >> > >> If I enter the correct passphrase, boot continues and succeeds. > >> > >> > >> I would now like to use the computer to examine an EIDE HDD. > >> > >> > >> 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 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. Erich