diskconf(1M) INTERACTIVE UNIX System diskconf(1M)
NAME
diskconf - get or set disk driver parameters
SYNOPSIS
diskconf [ -g ] [ -s code ] dev
DESCRIPTION
diskconf reports on the configuration parameters of the dev-
ice dev. When no options are used, these parameters are
reported in a human readable format. However, when -g is
specified, a coded string is produced instead. This string
may then be used in subsequent invocations as the argument
to the -s option, where it is used to update the disk
driver's parameters. No sanity checking is performed in
this case, although the disk driver itself may do some value
checking.
The coded string is formatted as:
heads:cyls:sectors:secsize:secovhd:rsrvdcyls:intlv:skew:pheads:pcyls:psecs:flags
The definitions of the configuration parameters are:
heads
The number of tracks per cylinder.
cyls The total number of cylinders.
sectors
The number of sectors per track.
secsize
The number of bytes per sector of user data.
secovhd
The number of bytes used for sector headers. These are
normally unavailable to the user.
rsrvdcyls
The number of cylinders reserved by the disk controller
for its own purposes. Normally these cylinders are not
a part of the disk that is available for user data.
intlv
The interleave factor with which the disk was format-
ted. If unknown by the driver, 0.
skew The skew factor between successive tracks within a
cylinder with which the disk was formatted. If the
interleave is not 1, this value is irrelevant; if its
true value is unknown by the driver, 0 is reported.
pheads
Rev. 1.1 Page 1
diskconf(1M) INTERACTIVE UNIX System diskconf(1M)
The physical number of heads on the device; this is
different from heads if the device operates with a vir-
tual geometry. See disk(7) for more information.
pcyls
The physical number of cylinders in the disk.
psecs
The physical number of sectors in a track.
flags
A 4-digit hexadecimal number followed by at most 4
characters: C, H, T, or S. These indicate that the
driver can be programmed to change its notion of the
number of cylinders, heads, sectors per track, and sec-
tor size, respectively.
DIAGNOSTICS
A nonzero return code is the errno value returned from the
system call that caused the failure, and an appropriate mes-
sage is written to stderr. Usually failure results from an
invalid or nonexistant dev or from the V_CONFIG ioctl call
that failed.
ADDED VALUE
This entry, supplied by INTERACTIVE Systems Corporation, is
an extension of UNIX System V.
Rev. 1.1 Page 2