Disks on NetBSD: what McdeSys mcde_sys_disks and the disk actions follow.  Collected 2026-11-11.

== src/share/man/man7/sysctl.7:231-232
.It Li hw.disknames ( Dv HW_DISKNAMES )
The list of (space separated) disk device names on the system.

== src/sbin/dkctl/dkctl.8:131-152 (getwedgeinfo, getgeometry, listwedges)
.It Ic getwedgeinfo
Display information about the specified disk wedge.
.Ar device
in this case is the wedge name.
.It Ic getgeometry
Display media and sector size of the specified disk, wedge or volume.
.It Ic keeplabel Op Ar yes | no
Specify to keep or drop the in-core disklabel on the last close of
the disk device.
(Keep if
.Ar yes
is specified, drop if
.Ar no
is specified.)
.It Ic listwedges Oo Fl e Oc Op Fl q
List all of the wedges configured on the specified disk.
With
.Fl e
exit with a non-zero exit status if there are no wedges
configured on that disk.
With
.Fl q
-- makewedges
155:.It Ic makewedges
156-Delete all wedges configured on the specified disk, and autodiscover
157-the wedges again.
158-Wedges that are in use are not deleted and conflicting
159-or overlapping wedges are not created.
160-You need to list wedges to find out what has changed.
161-.It Ic setcache Ar none | r | w | rw Op Ar save

== the output, measured in the build VM (2026-11-11)
/dev/rwd0: 68719476736 bytes in 134217728 blocks of 512 bytes
/dev/rwd0: 2 wedges:
dk0: abb63a74-..., 113246080 blocks at 64, type: ffs
dk1: 3852a581-..., 20971520 blocks at 113246144, type: swap
/dev/rcd0: 0 bytes
atactl wd0 identify: Model: QEMU HARDDISK, Rev: 2.5+, Serial #: QM00001

== src/sbin/gpt/gpt.8:452 (create)
.It Nm Ic create Oo Fl AfP Oc Oo Fl p Ar partitions Oc
The
.Ic create
command allows the user to create a new (empty) GPT.
By default, one cannot create a GPT when the device contains an MBR,
however this can be overridden with the
.Fl f
option.
If the
.Fl f
option is specified,
an existing MBR is destroyed and any partitions
described by the MBR are lost.
See the
.Cm migrate
== src/sbin/gpt/gpt.8:507 (destroy)
.It Nm Ic destroy Oo Fl r Oc
The
.Ic destroy
command allows the user to destroy an existing,
possibly not empty,
GPT.
.Pp
The
.Fl r
option instructs
.Nm
to destroy the table in a way that it can be recovered.
.\" ==== header ====
.Pp
.It Nm Ic header
== src/sbin/gpt/gpt.8:238 (add)
.It Nm Ic add Oo Fl a Ar alignment Oc Oo Fl b Ar blocknr Oc \
Oo Fl i Ar index Oc Oo Fl l Ar label Oc Oo Fl s Ar size Oc \
Oo Fl t Ar type Oc
.Pp
The
.Ic add
command allows the user to add a new partition to an existing table.
By default,
it will create an unlabeled UFS partition
starting at the first available block of an unused disk space.
The command-specific options can be used to control this behaviour.
.Pp
The
.Fl a Ar alignment
option allows the user to specify an alignment for the start and size.
== src/sbin/gpt/gpt.8:866 (show)
.It Nm Ic show Oo Fl AagHhlpuwx Oc \
Oo Fl i Ar index Oc \
Oo Fl b Ar startsec Oc \
Oo Fl W Ar width Oc
The
.Ic show
command displays the current partitioning on the listed device and gives
an overall view of the disk contents.
.Pp
There are three output variants, each of which is available in
a form intended for human viewing, and another for machine parsing.
The formats for some of the data for human viewing can be varied
by several of the options.
.Pp
The

== src/sbin/newfs/newfs.8 (-O 2: FFSv2; -V)
215:.It Fl O Ar filesystem-format
216-Select the filesystem-format.
217-.Bl -tag -width 3n -offset indent -compact
218-.It 0
219-4.3BSD; This option is primarily used to build root file systems that can be
--
296:.It Fl V Ar verbose
297-This controls the amount of information written to stdout:
298-.Bl -tag -width 3n -offset indent -compact
299-.It 0
300-No output.

== src/sbin/newfs_msdos/newfs_msdos.8 (-F 32, -L label)
96:.It Fl F Ar FAT-type
97-FAT type (one of 12, 16, or 32).
98-.It Fl I Ar volid
99-Volume ID.
100:.It Fl L Ar label
101-Volume label (up to 11 characters).
102-The label should consist of only those characters permitted
103-in regular DOS (8+3) filenames.

== src/sbin/fsck_ffs/fsck_ffs.8 (-n: no changes)
276:.It Fl n
277-Assume a no response to all questions asked by
278-.Nm
279-except for
280-.Ql CONTINUE? ,
