From nobody Fri Jan 26 08:13:23 2024 X-Original-To: freebsd-current@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 4TLr7N3TJDz57s5J for ; Fri, 26 Jan 2024 08:13:52 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (P-256)) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TLr7N1dHtz4gYf; Fri, 26 Jan 2024 08:13:52 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1706256823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XEdMwBngN8F7/pcX+6sT0YFYsA+bMKlMAmfWKOQX2iA=; b=iRA5x9i/qlcgfRUqDYNyheqVYf/zaMoRrxttZYrEGHAae07/S8G/8gUhNA9YJtk0jVqKfP MS148yIiBrxEVipzf1gDnA2flSaDEuZgkrXjSdQkUV8NzKDEZY2a/v7oZlOc/G3pIYwV6h 9662zTcrN8H3z1CHqxQ8BjobruIz9uCTk85UrprJJp+m5wKWBpqqsCbdsPh2UjWJMUR1ER xeuD5sNSn2ak2zIcgvGtbCeaxKqwOqZFNqw4a1/IwtedOjc9mH+xyp/m6GjGd5T++FxLJF cMQY1xmwh606/gz25LJIKjz4TBRHWEsCzTdNvoUIgnFx6ZD9qZ4TEVILgtjOCQ== Date: Fri, 26 Jan 2024 09:13:23 +0100 From: Alexander Leidinger To: "Rodney W. Grimes" Cc: Warner Losh , Ed Maste , FreeBSD Current Subject: Re: Removing fdisk and bsdlabel (legacy partition tools) In-Reply-To: <202401251749.40PHnu4E002568@gndrsh.dnsmgr.net> References: <202401251749.40PHnu4E002568@gndrsh.dnsmgr.net> Message-ID: Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_b987b87161fd71d7c7851653ddedd759"; micalg=pgp-sha256 X-Rspamd-Queue-Id: 4TLr7N1dHtz4gYf X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE] This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_b987b87161fd71d7c7851653ddedd759 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Am 2024-01-25 18:49, schrieb Rodney W. Grimes: >> On Thu, Jan 25, 2024, 9:11?AM Ed Maste wrote: >> >> > On Thu, 25 Jan 2024 at 11:00, Rodney W. Grimes >> > wrote: >> > > >> > > > These will need to be addressed before actually removing any of these >> > > > binaries, of course. >> > > >> > > You seem to have missed /rescue. Now think about that long >> > > and hard, these tools classified as so important that they >> > > are part of /rescue. Again I can not stress enough how often >> > > I turn to these tools in a repair mode situation. >> > >> > I haven't missed rescue, it is included in the work in progress I >> > mentioned. Note that rescue has included gpart since 2007. >> > >> >> What can fdisk and/or disklabel repair that gpart can't? > > As far as I know there is no way in gpart to get to the > MBR cyl/hd/sec values, you can only get to the LBA start > and end values: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 8388513 (4095 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 15/ sector 63 > > gpart show ada0 > => 63 8388545 ada0 MBR (4.0G) > 63 8388513 1 freebsd [active] (4.0G) > 8388576 32 - free - (16K) What are you using cyl/hd/sec values for on a system which runs FreeBSD current or on which you would have to use FreeBSD-current in case of a repair need? What is the disk hardware on those systems that you still need cyl/hd/sec and LBA doesn't work? Serious questions out of curiosity. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_b987b87161fd71d7c7851653ddedd759 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmWzabQACgkQEg2wmwP4 2IYBERAAiPW9C5KJet7l/yfjJh6rj3dN4RuQXM39kfOfABMDA/VDH1gyx8N9gbvy jIBymEfrIfYZlRsDkY4BOhf30FnKhT4qV8FmzlZ3Z7fQBE1VtSkscZrQ9TOxCvg/ xJd2QPTEXwa6m1A2o3WBjAgGHKHp6I51zLu0PbGJuGe1YBuStmM0H0djkNO2gRJN xTLkeRiKAvefXctfiO/IqpjEtRoWLVoiuF/CtjDxSfz9cQjvsR+B6k0p9kzjc5P0 VM96npv3GtBDYvDOMOlulvk2F7KFUJrRaabCJr73CD+oUM528XrJbEEesgHC+xFu 0siWGpH4MChX3zdXPDoFoXewGYK7BzDxOz6WL4S0sLR3kQ+00GKogHAAj0ascx00 bD+1RfmH3iFfPzCbCB1HXHlwWzpZe+KBbjJGdSvfJoLVSQJzql2rQPAI9DWhHOFX wtG1j9k6rPyyCbjK/oVgdqBb9Htd4PlwnvJAV4qoPUDU2Wms3w+Gg6s0toG7ts8E tz3O1E38YIf/vDTS2tvBQ6um9RIzJ7Qqsry7yMP3PI4SsK06fjfAfmq9gDfyBZt/ UOXqn7dt+BsG6UQnQn7VXPAcDTtVx6CDNmjlq4Kxdny7Fsv7KVjoi9BgqoeWtqP7 G6X/kBar5iWg2048hvJUnmK288OA6b/0vX0uVvrU4JAE/vUB5Aw= =Zh4g -----END PGP SIGNATURE----- --=_b987b87161fd71d7c7851653ddedd759--