From nobody Thu Jan 25 19:27:16 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 4TLW6x5XMKz57sWJ for ; Thu, 25 Jan 2024 19:27:21 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (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 4TLW6w4R7tz4JsH; Thu, 25 Jan 2024 19:27:20 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 3.97.99.32) smtp.mailfrom=cy.schubert@cschubert.com Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id T5LarRuGJxDxGT5Nfr30OI; Thu, 25 Jan 2024 19:27:19 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id T5NdrfU8P9Cr4T5NersgSv; Thu, 25 Jan 2024 19:27:19 +0000 X-Authority-Analysis: v=2.4 cv=etl8zZpX c=1 sm=1 tr=0 ts=65b2b617 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=dEuoMetlWLkA:10 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=Ip5JBLrVCoNIyYqQITEA:9 a=CjuIK1q_8ugA:10 a=fvK8J61VgDcA:10 a=7gXAzLPJhVmCkEl4_tsf: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 E542579D; Thu, 25 Jan 2024 11:27:16 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id DD3B6267; Thu, 25 Jan 2024 11:27:16 -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: Miroslav Lachman <000.fbsd@quip.cz>, Warner Losh , "Rodney W. Grimes" , George Michaelson , Ed Maste , FreeBSD Current Subject: Re: Removing fdisk and bsdlabel (legacy partition tools) In-reply-to: <20240125101308.92E931A6@slippy.cwsent.com> References: <202401242347.40ONlWKZ099356@gndrsh.dnsmgr.net> <20240125050736.A11871AC@slippy.cwsent.com> <20240125055019.CCF1973@slippy.cwsent.com> <84c6f3b1-58b3-44f8-aeaf-35f78e05975d@quip.cz> <20240125101308.92E931A6@slippy.cwsent.com> Comments: In-reply-to Cy Schubert message dated "Thu, 25 Jan 2024 02:13:08 -0800." 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: Thu, 25 Jan 2024 11:27:16 -0800 Message-Id: <20240125192716.DD3B6267@slippy.cwsent.com> X-CMAE-Envelope: MS4xfCxLJYB/LU+fPYSxjjY9QE4L5QICSKVwBpaMkkYEmSYJp4b5IejZ2jOdi7pamUWrJMHCspvUryepJV7lVVc/wDm024TOrry1j0TWeD4BBgGqFIlcIcCJ AaH8dhPAFJCX5Fbapoj7eKMPWLQ+xrqrPXFtHaJlcMljC10EHAxCxVWyc8n9+vojwm1gA6+4QbN/8/Yzs8LTA9FU0GrSREnv3T6d9vbTtFOV0DNQnMVBYkWr HtAKd/ZzCdxikwKFDW4CeYwegR0IwZCgcmVOGUCbzuPU1Z2wiQlse+F4S9ZR7co1dQjwLolZb1uAUnSnHVQcHaLLMemYqrIDml0WXEvlyIwumoCIr2s8Pw1D UMuXeY9G X-Spamd-Bar: - X-Spamd-Result: default: False [-1.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.10)[3.97.99.32:from]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NA(0.00)[no SPF record]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; RCPT_COUNT_FIVE(0.00)[6]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DMARC_NA(0.00)[cschubert.com]; REPLYTO_EQ_FROM(0.00)[] X-Rspamd-Queue-Id: 4TLW6w4R7tz4JsH In message <20240125101308.92E931A6@slippy.cwsent.com>, Cy Schubert writes: > In message <84c6f3b1-58b3-44f8-aeaf-35f78e05975d@quip.cz>, Miroslav Lachman > wri > tes: > > On 25/01/2024 06:50, Cy Schubert wrote: > > > In message l. > > c > > > > > > >> > > >> What can they do that gpart can't do? > > > > > > This was quite a while ago, booted off my recovery USB attempting to repa > ir > > > some self caused damage. The ability to edit (vi) a file with starting > > > addresses and lengths, visually using bsdlabel, was suited to my panicked > > > state as I worked to recover the machine. > > > > > > A visual view of columns of a bsdlabel, editing a label using vi, checkin > g > > > and double checking numbers before committing them is handy.The visual > > > format and the ability to adjust the numbers in an editor before committi > ng > > > them is handy. You can't do this with gpart, as it's transactional. And > > > bsdinstall doesn't give one the opportunity to check the numbers in detai > l > > > on a console before committing them. > > > > If you really like your editor of choice to edit partition table, you > > can use gpart backup and gpart restore like this: > > > > gpart backup ada0 > ada0.part > > vi ada0.part > > gpart restore -F -l < ada0.part > > That would work. > > > > > > Maybe a good GSoC project may be to replace bsdlabel's driect writes to > > > disk with geom calls. Though, t doesn't need to be bsdlabel, but some kin > d > > > of utility that displays the existing label in an editor session where > > > changes can be made, using the editor, and committed. This could even be > an > > > enhancement to bsdinstall: call it expert mode or whatever. > > > > Manipulating partition table in editor session can be achieved by few > > lines of shell script as a wrapper around gpart backup & gpart restore. > > Or just build a gpart edit mode with the functions used to implement backup > and restore. Excellent idea. Thank you. A small project to work on. > > > > > Kind regards > > Miroslav Lachman A freebsd-bsdlabel port has been created making way for its removal. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0