MKDEV(ADM) UNIX System V
Name
mkdev - calls scripts to add peripheral devices
Syntax
/etc/mkdev dos
/etc/mkdev fd
/etc/mkdev fs [ device file ]
/etc/mkdev hd [ [ disk ] [ controller| adapter ] ] [ lun ]
/etc/mkdev mouse
/etc/mkdev serial
/etc/mkdev shl
/etc/mkdev streams
/etc/mkdev tape
Description
mkdev creates the device file(s) associated with a
peripheral device. Based on the argument supplied, the
mkdev command calls a script found in the directory
/usr/lib/mkdev. (There may be scripts found in this
directory that are specific to a given application or
software package that are not documented here.) If no
arguments are listed, mkdev prints a usage message.
/etc/mkdev dos initializes necessary devices and configures
the system to support mounted DOS filesystems.
/etc/mkdev hd creates device files for use with a peripheral
hard disk. The device files for an internal hard disk
already exist. invokes the following utilities:
dparam(ADM), badtrk(ADM), fdisk(ADM), and divvy(ADM). mkdev
hd includes an extended syntax for use on multiple
controllers. These syntax extensions use numbers to refer
to the disk and controller numbers.
In addition, the codes ST506-, OMTI-, and SCSI- can be used
to refer to the controller/adapter number, as shown in the
tables below.
ST506 disks will install with one of the following commands:
mkdev hd 0 0 (or ST506-0) first disk on first controller
mkdev hd 1 0 (or ST506-0) second disk on first controller
mkdev hd 0 1 (or ST506-1) first disk on second controller
mkdev hd 1 1 (or ST506-1) second disk on second controller
ESDI disks will install with one of the following commands:
mkdev hd 0 0 (or OMTI-0) first disk on controller (root disk)
mkdev hd 1 0 (or OMTI-0) second disk on controller
SCSI disks require three pieces of information: the drive
number, the adapter number, and the lun (logical unit
number). SCSI disks will install with the following
command:
mkdev hd [0-7] [SCSI-0 or SCSI-1] [0-7]
mkdev hd must be invoked twice to install a SCSI disk. The
first time, the kernel will be reconfigured to support the
new disk. The second time, the disk will be initialized.
Use the same mkdev hd arguments both times.
/etc/mkdev serial creates device files for use with serial
cards. The device files for the first and second ports
already exist. Additional device files must be created for
the ports added when expansion cards are added to the
system.
/etc/mkdev streams configures the kernel for streams
support.
/etc/mkdev fs performs the system maintenance tasks required
to add a new filesystem to the system once the device is
created (mknod(C)) and the filesystem is made (mkfs(ADM)).
It creates the /file and /file/lost+found directories,
reserves slots in the lost+found directory, (if either
already exist, they are used unmodified) and modifies
/etc/checklist, /etc/default/filesys and /etc/default to
check (fsck(ADM)) and mount (mount(ADM), mnt(C), rc(C)) the
filesystem as appropriate. It is usually used in
conjunction with mkdev hd when adding a second hard disk to
the system or with mkdev fd when creating a mountable
filesystem on a floppy, but can be used on any additional
filesystem (for example, on a large internal hard disk).
/etc/mkdev fd creates bootable, root and filesystem floppy
disks.
Several floppies can be created during a single mkdev fd
session, but mkdev does not display a prompt to remove the
first floppy and insert the next one. Insert the next
floppy when mkdev prompts ``Would you like to format the
floppy first? (y/n).''
/etc/mkdev tape configures the tape driver in preparation
for linking a new kernel that includes tape support. It adds
a standard quarter-inch cartridge tape driver and/or a
mini-cartridge tape driver.
The current driver configurations can be displayed, and
changed if necessary. A zero in any of the fields means the
driver automatically detects the type of tape device
installed and uses the built-in values for that device. If
the autoconfiguration values are not correct for your drive,
refer to your hardware manual for the correct values,
configure the driver and relink the new kernel. mkdev tape
can also be used to remove a tape driver from the existing
kernel.
SCSI tapes can also be installed using /mkdev hd. Just as
with SCSI disks, the adapter and lun must be specified.
/etc/mkdev shl initializes necessary devices and configures
kernel parameters associated with the number of shell layers
sessions available on the system.
/etc/mkdev mouse initializes necessary devices and
configures the system to use any supported mouse.
Once the driver is configured, you are prompted for re-
linking the kernel. The appropriate devices in /dev are
created.
The various init scripts prompt for the information
necessary to create the devices.
Files
/usr/lib/mkdev/*
See Also
badtrk(ADM), divvy(ADM), dparam(ADM), fd(HW), fdisk(ADM),
filesys(F), format(C), hd(HW), lp(HW), mkfs(ADM), mknod(C),
mount(ADM), serial(HW), usemouse(C), tape(HW)
The System Administrator's Guide has chapters devoted to the
installation of most peripheral devices.
Value Added
mkdev is an extension of AT&T System V provided by the Santa
Cruz Operation.
(printed 9/27/89) MKDEV(ADM)