From nobody Thu Jan 25 05:26:06 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 4TL8SJ6LBlz57mNj for ; Thu, 25 Jan 2024 05:26:08 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TL8SJ5m5pz4Yby for ; Thu, 25 Jan 2024 05:26:08 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTPS id SfeLrzb86GAIJSsFcry89s; Thu, 25 Jan 2024 05:26:08 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id SsFar9wndWIKPSsFbrU3dg; Thu, 25 Jan 2024 05:26:08 +0000 X-Authority-Analysis: v=2.4 cv=D+pUl9dj c=1 sm=1 tr=0 ts=65b1f0f0 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=dEuoMetlWLkA:10 a=FcEumLz-AAAA:8 a=iKhvJSA4AAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=NKPrw1LhZS0A0Dez2xMA:9 a=CjuIK1q_8ugA:10 a=F5mQQbX521Z6qs-qo50H:22 a=odh9cflL3HIXMm4fY7Wr:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 827812BD; Wed, 24 Jan 2024 21:26:06 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 79C13D2; Wed, 24 Jan 2024 21:26:06 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: "Patrick M. Hausen" cc: "Rodney W. Grimes" , FreeBSD Current Subject: Re: Removing fdisk and bsdlabel (legacy partition tools) In-reply-to: References: <202401242347.40ONlWKZ099356@gndrsh.dnsmgr.net> Comments: In-reply-to "Patrick M. Hausen" message dated "Thu, 25 Jan 2024 00:53:53 +0100." 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 Content-Type: text/plain; charset=us-ascii Date: Wed, 24 Jan 2024 21:26:06 -0800 Message-Id: <20240125052606.79C13D2@slippy.cwsent.com> X-CMAE-Envelope: MS4xfJVQNcYWQ7FpTTovTISmQ1FaiCTKPTbfQoNMVqjo/PqFt5+tsEYWB+ygKvKVfValPSxvrc13VLg5p8TE70Bf4fUSNr1pcN7+t1c225AoJ6FFSjUAs7tA a7ujUMNJoIG60NV5oe9WDAToGZ44YOkWUJxXLPdkMIORWYvAcDEaADlJT7vn5CLK+VeRQEAluqhFA/cL/VR/Y+8PyvqmVsls9qRocZ8o6x++26Q8+eaHmCnR 3gq3EG1+lC7IOpCK69IFSrXghF1kFrzuvb4y6Fs725g= X-Rspamd-Queue-Id: 4TL8SJ5m5pz4Yby 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:16509, ipnet:3.96.0.0/15, country:US] In message , "Patrick M. Hause n" writes: > Hi all, > > > Am 25.01.2024 um 00:47 schrieb Rodney W. Grimes = > : > >=20 > >> I would agree personally, to moving to ports (eg ports/sysutils) with > >> a DEPRECATED in the DESCR or something, or better yet a Make > >> invokation event to say "superceded, here is how to proceed against > >> advice") or something. > >=20 > > They are totally useless as ports when your booted from install > > media and working from a standalone shell. These are the exact > > times you want things like fdisk and bsdlabel so you can figure > > out wtf is going on, and bsdinstall is NOT gona help you. > >=20 > > I know there are a boat load of people that have built there > > own installers for VM's and stuff, running UFS and I bet you > > they are using MBR disks too. PLEASE do not kick these tiny > > little and very usable and pretty univeral (as far as I know > > ALL BSD's have fdisk and bsdlabel/disklabel) tools out of > > the base system. > >=20 > > The world is NOT 2TB nvme drives with GPT, EFI and ZFS, > > yours might not be, but I am pretty certain I am not > > alone in this other world. > > I totally undestand that point, but what exactly do these tools do that > gpart cannot? On MBR disks? With BSD partitions? > > Ever since I found out that gpart can manage *all* on-disk partition = > formats > I have not been using anything else. You can create your MBR partitions > and BSD labels just fine with gpart. At least in all situations I = > encountered, > there might of course be edge cases I simply don't know. On occasion when trying to manipulate a disk label, gpart will refuse to. Usually when creating or manipulating a label on a zvol one doesn't want to use on the host system, that is destined to be used in a VM. It's simpler to create the partitions and labels beforehand, attach the zvol to the VM, boot and install (or test) within the VM. In this case one doesn't even care if geom sees the "disk" or its partitions on the host because the "disk" is destined for use in a VM. I've created zvols for use by various VMs in this manner. I agree with Rod's remark that when one is in panic mode working through a difficult situation extra tools, not fewer, can help. Regarding extra tools, I do maintain a full copy of FreeBSD on a USB disk, in order to recover from catastrophic situations. They're extremely rare, the last of which was the result of a commit that broke loader (or was it a boot blocks -- I can't remember the exact details anymore) in 12 or 13-CURRENT. The extra tools came in handy as I worked through the mess. > > gpart is not the "GPT partition tool". It's the universal swiss army = > knife > "GEOM partition tool" for all disk partitioning in any format supported. > > Kind regards, > Patrick= > -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0