Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2024 14:21:29 -0600
From:      Mike Karels <mike@karels.net>
To:        "\"Rodney W. Grimes\"" <freebsd-rwg@gndrsh.dnsmgr.net>
Cc:        Warner Losh <imp@bsdimp.com>, Ed Maste <emaste@FreeBSD.org>, FreeBSD Current <freebsd-current@FreeBSD.org>
Subject:   Re: Removing fdisk and bsdlabel (legacy partition tools)
Message-ID:  <0862D1C2-3C6F-479F-924C-9D68021BC0C6@karels.net>
In-Reply-To: <202401241850.40OIoJ9o098489@gndrsh.dnsmgr.net>

index | next in thread | previous in thread | raw e-mail

On 24 Jan 2024, at 12:50, Rodney W. Grimes wrote:

>> On Wed, Jan 24, 2024 at 8:45?AM Ed Maste <emaste@freebsd.org> wrote:
>>
>>> MBR (PC BIOS) partition tables were historically maintained with
>>> fdisk(8), but gpart(8) has long been the preferred method for working
>>> with partition tables of all types. fdisk has been declared as
>>> obsolete in the man page since 2015. Similarly BSD disklabels were
>>> historically maintained with bsdlabel. It does not yet have a
>>> deprecation notice - I have proposed a man page addition in
>>> https://reviews.freebsd.org/D43563.
>
> man page additions are not going to reach the people who may be
> using this.  This should be a gonein(15) added to the binary.
> I also suspect that all of the people doing ufs installs
> are doing so via bsdlabel, not gpart.

I suspect that more ufs installs are done with bsdinstall than with
bsdlabel.  The interactive mode is much easier to use than bsdlabel -e,
where you have to do your own arithmetic.  A couple of wrappers around
bsdinstall could make it a much better replacement for bsdlabel -e, etc.
(No criticism of bsdlabel, but it's so old I don't remember if I wrote
it; I think I did.)  I have a number of test systems using ufs, and I
do my modifications with gpart, which accepts humanized numbers and
does the arithmetic.

		Mike


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0862D1C2-3C6F-479F-924C-9D68021BC0C6>