DINIT(1M) (System Administration Utilities) DINIT(1M)
NAME
dinit - disk initializer
SYNOPSIS
/etc/dinit [-afimnrRsTx] [-d desc] [-b file] [-t file] type
rdev
DESCRIPTION
The dinit program can be used to initialize specified disk
types. The type must be a file in the directory
/etc/dskdefs. Presently, the only valid value is
Drive Name type Value
182Mb CDC Wren ESDI (no sector slip) m323182
For disk types with bad track handling, the alternate track
numbers will be taken from the file /etc/dskdefs/type. There
is no bad track support for floppy diskettes.
The rdev argument specifies a raw device, which must be of
the form /dev/rstring. There must be a corresponding block
device /dev/string with the same minor device number as the
character device. DINIT MUST BE EXECUTED OVER THE SLICE
REPRESENTING THE ENTIRE RAW DEVICE (e.g., SLICE 7, 15, 31).
The following options are provided for dinit:
-r Read bad spot list from disk and print it on
stdout.
-a Use with -r option to print alternates.
-x Use with -r option to print in hexadecimal.
-n Add a new bad spot. (See below).
-s Skip saving and restoring of data when adding a
new spot.
Page 1 May 1989
DINIT(1M) (System Administration Utilities) DINIT(1M)
-f Format disk. When formatting an unformatted disk,
two read errors appear on the screen. These
errors occur because the controller is trying to
read configuration information from the disk. The
messages can be ignored; the disk will be
formatted as requested.
-m Make file systems specified in /etc/dskdefs/type.
Slice table contains entries for slice 0 and slice
(slice count -1); refer to ddefs(1M). This option
only works when the -f option is used.
-i To be used with the -m option. Inquire about gap
size, number of inodes, blocks per cylinder. See
mkfs(1M).
-R Read manufacturer's defect list and point it on
stdout. (NOTE: Currently, only the MVME323 disk
controller supports this function.)
-d desc Use desc as description string in sector 0.
-b file Use file (a.out format) as the bootloader program.
-t file Take bad track numbers from file, instead of
interactively. This option only works when the -f
option is used.
-T file Take bad track numbers in track format, default is
Head Cylinder.
Unless the -f option is given, dinit will use the parameters
and bad spot information existing on the disk. Therefore,
it is not necessary to re-enter bad track numbers on
subsequent use of dinit on a disk. This is useful for
changing the bootloader, description string, etc. To change
other disk parameters, refer to ddefs(1M).
The disk driver may occasionally report an I/O error for a
bad spot not mapped out in the original format (see
Page 2 May 1989
DINIT(1M) (System Administration Utilities) DINIT(1M)
errpt(1M)). In such cases the new bad spot may be mapped
without formatting the entire disk using the -n option only.
The information from errpt(1M), or the error message from
the disk driver will contain the Head and Cylinder of the
new bad spot. Enter this information when prompted by
dinit.
dinit will attempt to save the data from the new bad track
unless the -s option is specified. If attempting to save
data, expect I/O errors from the disk driver while dinit is
executing.
FILES
/etc/dskdefs/* disk definition file
SEE ALSO
ddefs(1M), errpt(1M).
System Administrator's Guide.
Page 3 May 1989