Date: Thu, 25 Jan 2024 19:55:08 -0500 From: Ed Maste <emaste@freebsd.org> To: "Robert R. Russell" <robert@rrbrussell.com> Cc: freebsd-current@freebsd.org Subject: Re: Removing fdisk and bsdlabel (legacy partition tools) Message-ID: <CAPyFy2BT1p4aPVhvTaBP2McwzkbkfKAtrNrfno%2BAwfs6eZbj_w@mail.gmail.com> In-Reply-To: <20240125162558.77a3cde7@venus.private.rrbrussell.com> References: <CAPyFy2CK0Vq8U6J-H4XU3pNA33-uKAxUoNOAbM9SdSFa0Bcqkg@mail.gmail.com> <20240125162558.77a3cde7@venus.private.rrbrussell.com>
index | next in thread | previous in thread | raw e-mail
On Thu, 25 Jan 2024 at 17:26, Robert R. Russell <robert@rrbrussell.com> wrote:
>
> FYI gpart doesn't allow you to create disklabel with more than 8 items
> either.
Specify the number of partitions at `gpart create` time:
# mdconfig -s 1G -t swap
md0
# gpart create -s bsd -n 20 md0
md0 created
# for i in $(jot 19); do gpart add -t freebsd-ufs -s 1M md0; done
md0a added
md0b added
...
md0t added
# gpart show md0
=> 0 2097152 md0 BSD (1.0G)
0 2048 1 freebsd-ufs (1.0M)
2048 2048 2 freebsd-ufs (1.0M)
...
36864 2048 20 freebsd-ufs (1.0M)
38912 2058240 - free - (1.0G)
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2BT1p4aPVhvTaBP2McwzkbkfKAtrNrfno%2BAwfs6eZbj_w>
