| DKCTL(8) | System Manager's Manual | DKCTL(8) |
dkctl — program to
manipulate disks
dkctl |
device |
dkctl |
device command [arg [...]] |
dkctl allows a user or system
administrator to manipulate and configure disks in various ways. It is used
by specifying a disk to manipulate, the command to perform, and any
arguments the command may require. device is the disk
(wdN, sdN, ...) containing the wedges unless noted otherwise. If
dkctl is called without any command, it displays
strategy, cache, and all of the wedges of the specified device.
The following commands are supported:
addwedge
name startblk
blkcnt ptypedkctl will just name it. The wedge will have the
volume name name and the partition type
ptype. Valid choices for ptype would be
unused, swap,
ffs, lfs,
ext2fs, cd9660,
ados, hfs,
msdos, filecore,
raidframe, ccd,
appleufs, ntfs,
cgd, and zfs.
The device name of the virtual block device assigned to the wedge will be displayed after the wedge has been successfully created. See dk(4) for more information about disk wedges.
badsector
flush | list |
retrydelwedge
dkgetcachegetwedgeinfogetgeometrykeeplabel
[yes | no]listwedges
[-e] [-q]-e exit with a non-zero exit status if there are
no wedges configured on that disk. With -q (quiet
mode) there is no output related to the wedges that do, or do not,
exist.makewedgessetcache
none | r |
w | rw
[save]strategy
[name]$ sysctl kern.bufq.strategies
synccache
[force]Note: The addwedge and
delwedge commands only modify the in-kernel
representation of disks; for modifying information on the disks themselves,
refer to fdisk(8) or
gpt(8).
ioctl(2), dk(4), sd(4), wd(4), disklabel(5), atactl(8), fdisk(8), gpt(8), scsictl(8)
The dkctl command first appeared in
NetBSD 1.6.
The dkctl command was written by
Jason R. Thorpe of Wasabi Systems, Inc.
| March 29, 2020 | NetBSD 11.0 |