MKDEV(ADM) XENIX System V MKDEV(ADM)
Name
mkdev - Calls scripts to add peripheral devices.
Syntax
/etc/mkdev lp
/etc/mkdev hd
/etc/mkdev serial
/etc/mkdev fs [ device file ]
/etc/mkdev fd
/etc/mkdev tape
/etc/mkdev shl
/etc/mkdev mouse
Description
mkdev calls the scripts to create the requested type of
device file(s). mkdev calls scripts found in the directory
/usr/lib/mkdev. If no arguments are listed, mkdev prints a
usage message.
/etc/mkdev lp creates device files for use with line
printers. (See lpinit(ADM).)
/etc/mkdev hd creates device files for use with a peripheral
hard disk. The device files for an internal hard disk
already exist. hdinit invokes the following utilities, where
appropriate: dparam(ADM), badtrk(ADM), fdisk(ADM), and
divvy(ADM).
/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. The /etc/ttys and /etc/ttytype files are updated.
/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 and root file system floppy
disks. The three basic options are: boot and root on a
single disk (96 or 135 tpi only), boot and root pair (48
tpi) or filesystem only. Use with mkdev fs when creating a
Page 1 (printed 2/7/91)
MKDEV(ADM) XENIX System V MKDEV(ADM)
filesystem-only floppy.
Several boot and/or root 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.
/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), lpinit(ADM),
mkfs(ADM), mknod(C), mount(ADM), serial(HW), usemouse(C),
tape(HW).
Page 2 (printed 2/7/91)