From nobody Sat Jun 22 16:06:24 2024 X-Original-To: freebsd-fs@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 4W5zcN4Dccz5Ng2C for ; Sat, 22 Jun 2024 16:06:28 +0000 (UTC) (envelope-from void@f-m.fm) Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 4W5zcM1LJdz594f for ; Sat, 22 Jun 2024 16:06:27 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm2 header.b=jowDB7qh; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="I/GL8w2L"; dmarc=pass (policy=none) header.from=f-m.fm; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 103.168.172.150 as permitted sender) smtp.mailfrom=void@f-m.fm Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id 7E92B13800FC for ; Sat, 22 Jun 2024 12:06:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 22 Jun 2024 12:06:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1719072386; x=1719158786; bh=OoZo/ol2mx W3DN9MD8//RBklBEmj/Dt5PD4DGmVaI+4=; b=jowDB7qhHwNffsuDNAgfiCDsqz gb7hzUaharZMXijiJVs5k2G8K0/54DoBsCeUpViU6cvpOD5tMSjiq7CvRndLB5fn +T1TQFyjPost5ulK2Od3w4mdoEtrcodIacNrwhh/T1FAvDbYEDCt+qdI4gd38T4m N++4eXxbIiaUCC2gfvqdIhkovhPa1FdGBPS9XaIR71nPT9Rr9BtCwkH4rzVHC55x suANcPKzU+D7aVJ9htN2Sq8fyM/xvBgtsEaRkuiK2dSqDEn3KvNkusv5yroghS89 h7G9gb7+NQLWyQSjgGSdc7WISr1i74Ve18a5bHwhzIJnXuRBUKXYq4s632Kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719072386; x=1719158786; bh=OoZo/ol2mxW3DN9MD8//RBklBEmj /Dt5PD4DGmVaI+4=; b=I/GL8w2LgsW8hHrR5e54W9HpgjAqiE8indIyFri9+PPv z6ebvBNZ2L7ta59qcVXRrRdnYAtsZQomuiRoM6X7IEIDhKgcUbuz9gMlU0Pj+fhO 8tnQ/5n3PgyMzfOZfdmaHtNyxZ3fi/0V4/0A953jSfgZK+fat8Znj+IeZY0toyFd h6L2fEg07+tYwdFrXj+F5JWorZ90qnOFMrvtvb78UKIA6yVqtaXsNIho2p8NuiYS ED4L4Vi/c/DmFGeDXBTUDZCkW0b3HS2L9QNCJjSqijrWTKQZJbahDGG8sSKUPNIq UJ7192Ip3m4IWaj3eyOd2PF5nClIs61BuVsmjDrs1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefiedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgr thhtvghrnhepkeeluddvlefhieelfefggffhffektdehleelgfdugfdvgeekjeejuddthe ehgfeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep vhhoihgusehfqdhmrdhfmh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 22 Jun 2024 12:06:25 -0400 (EDT) Date: Sat, 22 Jun 2024 17:06:24 +0100 From: void To: freebsd-fs@freebsd.org Subject: Re: setting currdev correctly after repartitioning Message-ID: Mail-Followup-To: freebsd-fs@freebsd.org References: List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.59 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.990]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm2,messagingengine.com:s=fm2]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.150:from]; FREEMAIL_FROM(0.00)[f-m.fm]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4W5zcM1LJdz594f On Sat, Jun 22, 2024 at 09:46:34AM -0600, Warner Losh wrote: >How do you know disk0 in the boot loader is da5 in FreeBSD? Or that it's >even the disk you think it is? P2 is GPT partitioning, not MBR so you are >chasing shadows here, i think. When it's in the rpi4 it'll be da0 as it's a usb3-connected ssd and it's the boot disk (and the only disk) on that system. When this is plugged into my freebsd *desktop* it's detected as da5. > >=> 63 1953525105 da5 MBR (932G) >> 63 1 - free - (512B) >> 64 524288 1 fat32lba [active] (256M) >> 524352 1952448512 2 freebsd (931G) >> 1952972864 552304 - free - (270M) >> >> >> # gpart show da5s2 >> >> => 0 1952448512 da5s2 BSD (931G) >> 0 16777216 1 freebsd-swap (8.0G) >> 16777216 16777216 2 freebsd-swap (8.0G) >> 33554432 16777216 4 freebsd-swap (8.0G) >> 50331648 16777216 5 freebsd-swap (8.0G) >> 67108864 1885339648 6 freebsd-ufs (899G) > > >Whatever disk this is, it GPT partitioned, may have a kernel but not the >lua support files. It might even not have a recognized filesystem on it, >but we think the ESP was on this disk Why does it say MBR ? --