TA # Date Created Date Updated   Printer Friendly Version of This TA   Print Article
  E-mail This TA   E-mail Article
103844 06/01/1992 04:57 PM 04/25/2001 09:53 PM
Using CD-ROM drives under Version 4.x of SCO UNIX or SCO ODT 2.0, 3.0
unix how to use cdrom cd-rom tape driver scsi high-sierra hs mkdev dos installation devices mount rcd0 rcdt0 nrcdt0 xcdt0 v4
SCO UNIX System V/386 Release 3.2 Operating System Version 4.0->4.2
SCO Open Desktop Release 2.0 -> 3.0

          I want to use my CD-ROM drive under one of the above listed 
           operating systems.  The operating system is now shipped on a 
           CD-ROM, so the drive may be used for installation.  How does 
           this affect the general performance after installation, whether 
           or not the CD-ROM distribution was used?

          The operating systems listed above provide drivers for
           configuring a SCSI CD-ROM drive.  Non-SCSI CD-ROM drives are 
           not supported.  SCSI CD-ROM drives can be used to install the 
           operating system if you have the CD-ROM distribution.  In
           addition, there is a driver to support the ISO9660/High-Sierra 
           standard filesystem format for CD-ROMs.

           For a list of supported CD-ROM drives, please check the Hardware
           Compatibility Handbook (July 1993), the Release Notes for the
           operating system, or another article in this database entitled
           "Models of SCSI CD-ROM drives that work under SCO UNIX and 
           Open Desktop".  The functionality of other CD-ROM drives can't 
           be guaranteed.

           For information relating to CD-ROMs on SCO UNIX Release 3.2
           Version 2.0 or SCO Open Desktop Release 1.1, please see the 
           related article in this database entitled, "Using CD-ROM drives 
           under Version 2.0 of SCO UNIX or SCO ODT 1.1". 

    (A)         Installing the SCO operating system with the CD-ROM distribution:

         In general, simply follow the Installation Guide on instructions
         to install the operating system using the CD-ROM distribution.
         Check the Release Notes for supported SCSI host adapters and
         supported SCSI CD-ROM drives.  For these supported hardware
         devices, the drivers that are contained in the operating system,
         such that BTLD's, or Boot Time Loadable Drivers, are not required.

         The installation requires that the SCSI ID of the CD-ROM drive 
         be at ID 5.  You will be asked during the installation to confirm 
         that the CD-ROM is at SCSI ID 5 on the first SCSI host adapter.  
         If these settings are not correct, you will need to stop installa-
         tion and reconfigure the CD-ROM drive correctly. 

    (B)         Configuring CD-ROM drive for use after installation:

         To provide support in the operating system for use of a CD-ROM
         drive, you will need to run the         'mkdev cdrom' script.  Please
         note that this is still required even if you installed the
         operating system with the CD-ROM distribution.  Do as follows:

                  # mkdev cdrom


                  1. Install a CD-ROM Drive

         When asked to configure the CD-ROM driver, answer 'y'.
           You will then be asked the following questions:

                  Enter the prefix of the SCSI host adapter that supports 
                  this device or press <Return> for the default: 'ad'
                  Enter h for a list of host adapter or enter q to quit:

         Name the driver that will be used to support your SCSI host adapter.
         Enter 'h' to get a list of these drivers.

                  Which 'ad' SCSI host adapter supports this device?
                  Select 0-1, or enter q to quit:

         This value will be 0 if the CD-ROM drive is on the first
         SCSI host adapter, or 1 if it's on the second SCSI host adapter. 

                  What is the Target ID for this device?
                  Select 0-7, or h for help, or q to quit: 

         This is the SCSI ID of the CD-ROM drive itself.  The SCSI ID 
         should be unique on the scsi bus, and can have a value of 0-7, 
         but in general, the host adapter will use ID=7, and a SCSI hard 
         drive is usually ID=0.  Check the ID setting on your CD-ROM drive.
         For installing SCO UNIX Version 4.0 with the CD-ROM, a SCSI ID of 
         5 is required on the CD-ROM drive.

                  What is the LUN of this device?  
                  Press <Return> to use the default: 0
                  Select 0-7, or h for help, or q to quit:

         The operating system will only support a LUN of 0 at this time.

         After verifying the information that you just gave, you may be
         asked the following:

                  Do you want to configure a CD-ROM/TAPE installation device? 

         This is only necessary if you have the CD-ROM distribution of
         SCO UNIX Release 3.2 Version 4.0.  If you have just installed,
         this device will already be configured.

         The last configuration question is for support of the 
         ISO9660/High-Sierra filesystem format for CD-ROMs:

                  Do you want to add a high-sierra file system?

         Answer 'y' as this is necessary to allow you to read filesystem
         CD-ROMs.  By answering 'y', you will be taken into the "mkdev
         high-sierra" script automatically.  After adding this filesystem
         support, you will be returned to the "mkdev cdrom" script.

         You can now quit from the mkdev script, after which you will be
         asked to relink the kernel.  It is necessary to answer 'y' to 
         "create a new kernel" and to have the "kernel environment rebuilt"
         in order for the changes to take effect.  After this is completed,
         reboot the system to make use of this new kernel with CD-ROM support.

    (C)  Using the CD-ROM drive:

         After configuring both the CD-ROM driver and the High-Sierra
         filesystem format driver, relink the kernel and reboot the system.
         The CD-ROM drive will then be ready for use.  Please note that the 
         CD-ROM drive will not be recognized at boot time, and will only be  
         recognized in hwconfig each time the drive is mounted.  You can add 
         it to /etc/default/filesys for automatic mounting at boot time.

         The CD-ROMs available in the market are generally directed 
         for use on DOS systems.  There is not a problem accessing the 
         data on many of these CD-ROMs as they use the High-Sierra file-
         system format, a format which is supported by SCO UNIX System. 

         To access the data on the CD-ROM, you must first mount(ADM) the
         CD-ROM filesystem just as you would any other SCO UNIX filesystem.

         An example to mount the CD-ROM would be:

                  # mount -r /dev/cd0 /mnt
                  # cd /mnt

         See a related article in this database on mount options for CD-ROMs.

         Once a CD-ROM is mounted, you can use ls(C), cp(C), tar(C), and
         other utilities for viewing and copying the data on the CD-ROM.

         The devices provided for accessing the CD-ROM are as follows:

         For High-Sierra filesystem CD-ROMs:

                  /dev/cd0         This is the block device used for mounting.
                  /dev/rcd0         This is the raw character device. 

         For the SCO UNIX System Release 3.2 Version 4.0 distribution, CD-ROM
         is written using a multiple-archive tar format:

                  /dev/rcdt0         This is the "rewind" device 
                  /dev/nrcdt0         This is the "no-rewind" device
                  /dev/xcdt0         This is the control device

         By using custom(ADM) to access the files on your CD-ROM distribution,
         it will not be necessary to specify any of the last 3 device files.

Related Articles
•  File has group read permissions and exclusive is off, terminal hangs.
•  What is nfsstat(NADM) and what does its output represent?
•  Minor numbers for first 4 hard disks, fdisk partitions, divvy divisions
•  What does Support Level Supplement (SLS) unx331 contain?
•  Adding more than 8 pseudo ttys for remote logins with SCO TCP/IP.