From nobody Tue Jun 21 05:37:41 2022 X-Original-To: freebsd-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 7CD6D87B42F for ; Tue, 21 Jun 2022 05:38:17 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from out3-87.antispamcloud.com (out3-87.antispamcloud.com [185.201.18.87]) (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 4LRwKK1qXXz4fLg for ; Tue, 21 Jun 2022 05:38:11 +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=6fwDmj4E1fzFlhEOVHNf2zC3F1Wplq5smqwYCR00I70=; b=UlK9z ehxElJI6W5INm3kg228Lw66eLUZYbdWAubp/Tk2e+ocVSOMO22NYmEhYTEWtSRUOH/G5KtK+vM8+N m9NiXXwht/x15PlpfCaU11Tuh0Tw3zZ6GCJRMmGgFCMdCyncBCeKTYD3PfhyipB8WEJ3VcbR9lWT7 MtHED54Q6w23PGO6k5fAMczPZbhb+0o13aYYgV8le5JT5X38l/iCtAcjvGNg1MoJiBNY1uP1cVGqg 5dIZuleR4reU4HsabNzBhrjQdfFnQvT2ljRoYjxso0dh/3h1yAQXKu2JBDGKsjN7p0BhFObdO4pze XHoPsSDdugzoM3l3+NjhMalvTkNRw==; Received: from srv31.niagahoster.com ([153.92.8.101]) by mx227.antispamcloud.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1o3WaP-0001t0-UR; Tue, 21 Jun 2022 07:38:03 +0200 Received: from p4fca9d60.dip0.t-ipconnect.de ([79.202.157.96]:29027 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 1o3Wa9-0009xL-QE; Tue, 21 Jun 2022 12:37:52 +0700 Date: Tue, 21 Jun 2022 07:37:41 +0200 From: Erich Dollansky To: David Christensen Cc: freebsd-questions@freebsd.org Subject: Re: BIOS/MBR drive enumeration order, FreeBSD dev nodes, GELI ZFS root, and ZFS boot Message-ID: <20220621053741.3dbb0d2e.freebsd.ed.lists@sumeritec.com> In-Reply-To: References: 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.04) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/C01kc4z00y2duMWb/t3jgPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x4WZzB7FgipLlQvGhYPzyulNuc5TeRyKSBzYEqm+Z86OFO WRBGLXYDu0jYCApJeSTrB+Dy9P5cCcmX+iM87LlqQJBw/2yqfjbjLhjlh6IlSIyqCKn9fDq1YBcp S4Q7T6lkg5BhoNcHfSWweO3uPweQZ7Hyem+xukREiMZBm6R5ftOyOZ0LCWyRLTW+ixPGoQE5gTaz BDK69CwS36gfwbRUy2nx01MzulNm7LYm67aaMfwfP4SDdCaLgoB+kGYVRlegfLHN10fRctRdQTX2 802EIRFsicyJMEhQFtD8PLoiniQuqoY92JLFmKrUcp4834mHaVNT607M9kZNEaIQSUchXwM3QL0y 4aiXz3iuZ8QvJ3/YQoz26CDuNHrVE7BU3YYXlZmncCN2hGQStKtYx8lAJOtZf5L2uvoi2o2jkjoE YVB5/oJ5rDS3IR4cpmOSVOt4cv7CGEB0q5bWMdGki162H6LhGwY4A2xoDuuQ5/yqtF0kg590xB0v aQG57Y9gB3eP0EVGJ0baKVQseEPDGjIHm7RVhDC6rGajPOQMsilQygZImPb9UZXs+o5qEZeRpTi3 BT/xcase7lCw0EQdzS0QtwEkPu8FwPEdtQVd7B3D8TmpvotsdgflqerkTFJGkI7gtC7936/zAi86 2Wzr6TQ9fbpy5IhsjaCyVtE5POMSLkEkn+xPE2K8LaUtmsVe0ut1MIAJ/gZKb99itOfkkJi9nvj3 AjIz1eVdUbWlquASQVS5p/RPodJh3mi0BZLMlLnRhDxLQr7Y/1uHkxd/ldHkc6YNN7Ox6pvfaB64 kkHB/nDsvMOZBEiR9EWP72YYSaopgek0EkqoN+CuBSyZ2BXhLnZY8Wm4+bPtZjqO4oH7K5Jv891S +syc21lzW/Z2ur+c0TwPIBJnngHP89wHBJTrBz5dcKQCgm9R6DkrAcSAlRamLrrkgBVkLG62GBAZ bE6Z3JKVmi72ocgY5kMQSjs7nud0Eldt9znR76WK7wkEDvSU8i/nexo62BIacM/ac/OdBaPnT6cE 5fI9Blqc69lo X-Report-Abuse-To: spam@quarantine10.antispamcloud.com X-Rspamd-Queue-Id: 4LRwKK1qXXz4fLg X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=out.niagahoster.com header.s=spamexpert header.b="UlK9z eh"; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd.ed.lists@sumeritec.com has no SPF policy when checking 185.201.18.87) smtp.mailfrom=freebsd.ed.lists@sumeritec.com X-Spamd-Result: default: False [-2.30 / 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)[-0.999]; 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.18.87:from]; MLMMJ_DEST(0.00)[freebsd-questions]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; ASN(0.00)[asn:30083, ipnet:185.201.18.0/24, country:US]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[79.202.157.96:received] X-ThisMailContainsUnwantedMimeParts: N 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. Erich On Mon, 20 Jun 2022 11:35:01 -0700 David Christensen wrote: > freebsd-questions: > > > I have a desktop computer: > > Intel DQ67SW motherboard > Intel Core i7-2600S processor > Corsair CMV8GX3M2A1333C9 2 @ 4 GB memory module kit > Intel 520 Series SSD 60 GB > > > EFI is disabled in CMOS Setup. > > > FreeBSD was installed onto the SSD with a USB flash drive containing: > > FreeBSD-12.3-RELEASE-amd64-memstick.img > > > As follows: > > FreeBSD - Welcome to FreeBSD Boot Multi user > FreeBSD Installer - Welcome Install > Keymap Selection Continue with default keymap > Set Hostname f4.tracy.holgerdanske.com > Distribution Selection > Partitioning Auto (ZFS) > Pool Type/Disks stripe: 1 disk > ada0 INTEL SSDSC2CW060A3 > Pool Name f4_zroot > Force 4K Sectors YES > Encrypt Disks YES > Partition Scheme MBR (BIOS) > Swap Size 2g > Mirror Swap YES > Encrypt Swap YES > >>> Install Proceed with installation > ZFS Configuration > Last Chance! YES > Enter a strong passphrase ******** > Re-enter password ******** > Root - New Password ******** > Retype New Password ******** > Network Configuration em0 > Configure IPv4 Yes > Use DHCP Yes > Configure IPv6 No > Search tracy.holgerdanske.com > IPv4 DNS #1 192.168.5.1 > IPv4 DNS #2 208.67.222.222 > CMOS clock set to UTC Yes > Time Zone > Region America -- North and South > Country or region United States of America > Zone Pacific > Time & Date - month, year, day > Time & Data - time > Services to start at boot sshd, ntpdate, ntpd, powerd > System hardening options > Add users No > Final configuration Exit > Open shell No > Complete Reboot > > > On May 29, 2022, I upgraded to: > > 2022-06-20 10:48:55 toor@f4 ~ > # freebsd-version ; uname -a > 12.3-RELEASE-p5 > FreeBSD f4.tracy.holgerdanske.com 12.3-RELEASE-p5 FreeBSD > 12.3-RELEASE-p5 GENERIC amd64 > > > 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. > > > It appears that GELI and/or ZFS for the root partition is tied to the > FreeBSD device node name "ada0s1d" (?), which is tied to the BIOS > drive numbering. When I insert the HBA, the BIOS drive numbering > changes, the root partition device node changes to "ada1s1d", GELI > and/or ZFS breaks, and boot fails (?). > > > CMOS Setup does not appear to provide a mechanism for influencing > BIOS drive enumeration order. > > > The HBA does not appear to have a POST hotkey/ setup program. > > > I recall encountering this device node name issue when cloning > FreeBSD installations between SSD's (device node names "adaN") and > USB flash drives (device node names "daN"), and that the work-around > was to boot FreeBSD installation media into a rescue shell, mount the > boot filesystem, and delete zfs/zpool.cache (?). > > > I would prefer a work-around that involves entering configuration > settings during FreeBSD boot. > > > Please advise. > > > TIA, > > David >