Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkdev(ADM) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

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)


 mkdev(ADM)                      19 June 1992                      mkdev(ADM)


 Name

    mkdev - call scripts to add peripheral devices

 Syntax

    /etc/mkdev aio
    /etc/mkdev bitpad
    /etc/mkdev cdrom
    /etc/mkdev dos
    /etc/mkdev dda
    /etc/mkdev fd
    /etc/mkdev fs [ device file ]
    /etc/mkdev graphics
    /etc/mkdev hd [ drivenum ] [ ctrlnum ] [ [ lun ] [ hatype ] ]
    /etc/mkdev high-sierra
    /etc/mkdev layers
    /etc/mkdev lp
    /etc/mkdev mmdf
    /etc/mkdev mouse
    /etc/mkdev parallel
    /etc/mkdev ptty
    /etc/mkdev serial
    /etc/mkdev shl
    /etc/mkdev streams
    /etc/mkdev tape
    /etc/mkdev vpixld

 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 direc-
    tory 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.

    mkdev aio       adds support for asynchronous disk I/O to the kernel.

    mkdev bitpad    configures supported bitpad devices.

    mkdev cdrom     adds CD-ROM support to the kernel.

    mkdev dos       initializes necessary devices and configures the system
                    to support mounted DOS filesystems.

    mkdev dda       adds direct device access support for SCO VP/ix to the
                    kernel.

    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).''

    mkdev fs        performs the system maintenance tasks required to add a
                    new filesystem to the system after the device is config-
                    ured using mkdev hd.  mkdev fs creates the mountpoint and
                    lost+found directory, reserves slots in the lost+found
                    directory, (if either already exist, they are used unmo-
                    dified) and modifies /etc/checklist, /etc/default/filesys
                    and /etc/default to check using fsck(ADM) and mount the
                    filesystem using mount(ADM) or mnt(C) as appropriate.

    mkdev graphics  configures graphics adapters for use with applications
                    that can take advantage of them.

    mkdev hd        creates device files for use with a peripheral hard disk.
                    The device files for an internal hard disk already exist.
                    It invokes the following utilities (as appropriate):
                    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-, and IDA- SCSI- can be used
                    to refer to the controller/adapter number, as shown in
                    the examples below.

                    ST506 disks will install with one of the following com-
                    mands:

                    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 com-
                    mands:

                    mkdev hd 0 0
                         first disk on controller (root disk)
                    mkdev hd 1 0
                         second disk on controller

                    The SCSI syntax is as follows:

                       mkdev hd id ha lun hatype

                    where:

                       id      is a number from 0-7
                       ha      is SCSI-0 to SCSI-7
                       lun     is a number from 0-7
                       hatype  is the type of host adapter
                               (listed in /etc/default/scsihas)


                    For example, the following command configures the second
                    disk on the first Adaptec SCSI adapter:

                       mkdev hd 1 SCSI-0 0 ad

                    mkdev hd must be invoked twice to install a SCSI disk.
                    The first time, the kernel will be reconfigured to sup-
                    port the new disk.  The second time, the disk will be
                    initialized. Use the same mkdev hd arguments both times.

                    Disks attached to Compaq IDA/Intelligent Array Expansion
                    controllers are added with using the same syntax as stan-
                    dard disk support.  The controller can be specified by
                    number or IDA-n.  Up to six IDA controllers are supported
                    (0-5 or IDA-0 through IDA-5).

    mkdev high-sierra
                    configures a mountable filesystem found on a CD-ROM
                    drive.

    mkdev layers    adds support for serial terminals with AT&T windowing
                    capabilities to the kernel.

    mkdev lp        adds or modifies a printer configuration.

    mkdev mmdf      interactively alters the MMDF configuration.

    mkdev mouse     initializes necessary devices and configures the system
                    to use any supported mouse.

    mkdev parallel  allows the configuration of multiple parallel ports.

    mkdev ptty      adds pseudo-ttys to the system.

    mkdev serial    creates device files for use with serial cards.  The de-
                    vice 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.

    mkdev shl       initializes necessary devices and configures kernel pa-
                    rameters associated with the number of shell layers ses-
                    sions available on the system.

    mkdev streams   configures the kernel for streams support.

    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, a mini-cartridge tape
                    driver, a QIC-40/80 tape driver or a SCSI tape driver.

                    When configuring a cartridge tape drive, 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,
                    reconfigure the driver and relink the new kernel.

                    mkdev tape can also be used to remove a tape driver from
                    the existing kernel.

                    Once the driver is configured, you are prompted for re-
                    linking the kernel. The appropriate devices in /dev are
                    created.

                    The various scripts prompt for the information necessary
                    to create the devices.

    mkdev vpixld    adds the line discipline for SCO VP/ix to the system.

 Files


    /usr/lib/mkdev/*         location of scripts invoked by mkdev
    /etc/default/scsihas     list of supported SCSI host adapters

    The following are additional support scripts invoked indirectly by mkdev:

    /usr/lib/mkdev/.scsi        SCSI support configuration routines
    /usr/lib/mkdev/ida          Compaq-specific scripts
    /usr/lib/mkdev/.hdfuncs
    /usr/lib/mkdev/.cpqs.tape


 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 Opera-
    tion, Inc.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026