B    Compact Disc Overview

This appendix contains the following topics:

B.1    Operating System CD-ROMs

The operating system software is distributed on four read-only compact discs (CD-ROM):

B.2    CD-ROM Device Names

There are two types of device names that identify a CD-ROM drive. The first name is the regular device special file name, which is used to specify the CD-ROM drive when the system is in single-user or multiuser mode. The second name is the console device name, which is used when the system is in the console mode.

B.2.1    Determining the CD-ROM Device Name

Enter the following command to determine the device name of a CD-ROM drive:

$ ls /dev/disk/cdrom*c
/dev/disk/cdrom0c

Use this CD-ROM device name to boot from the CD-ROM drive when the system is in single-user mode, for instance, when starting an Update Installation of the operating system.

B.2.2    Determining the CD-ROM Console Device Name

To determine the CD-ROM console device name, the system must be shut down to the console mode as shown in the following example:

  1. As superuser or root, shut down the system to console mode:

    # shutdown -h now
    

  2. Display the table of device names:

    >>> show device
    

    Depending upon your system type, a device information table similar to the following is displayed:

    dka0.0.0.0.0               DKA0                           RZ28
    dkb0.0.0.1.0               DKB0                           RZ28
    dkc0.0.0.2.0               DKC0                           RZ26
    dkc100.1.0.2.0             DKC100                         RZ26
    dkc200.2.0.2.0             DKC200                         RZ26
    dkc300.3.0.2.0             DKC300                         RZ26
    dke100.1.0.4.0             DKE100                         RRD43   <=
    mka500.0.0.0.0             MKA500                         TLZ04
    mke0.0.0.4.0               MKE0                           TZ85
    ewa0.0.0.6.0               EWA0              08-00-2B-2C-CE-DE
     
     
    

    In the third column to the right, look for the line with the characters RRD or CD-ROM. These characters denote a CD-ROM device. The second column in the table shows the console device name assigned to each device on your system.

    In this example, the RRD43 CD-ROM is assigned to console device name DKE100.

Use the console device name to boot from the CD-ROM drive when the operating system is not running and the system is in console mode.

B.3    Mounting a CD-ROM

Before you can access the files and directories on a CD-ROM, it must be mounted on a mount point. Follow these steps to mount a CD-ROM:

  1. Log in as root or become superuser.

  2. Enter the following command to find the CD-ROM device name if necessary:

    # ls /dev/disk/cdrom*c
    /dev/disk/cdrom0c
    

  3. Use the mkdir command to make a directory to be the mount point for the CD-ROM. Then mount the CD-ROM using the mount command with the following syntax, substituting the unit number of your CD-ROM drive for the unit_number.

    mount /dev/disk/cdrom<unit_number>c /mount-point

    For example, to mount the CD-ROM in drive /dev/disk/cdrom0c on the directory /cdrom, enter the following commands:

    # mkdir /cdrom
    # mount -r /dev/disk/cdrom0c /cdrom
    

  4. To ensure that the CD-ROM is remounted in the event that your system crashes or is rebooted, add the following line to the /etc/fstab file:

    /dev/disk/cdrom0c       /cdrom   ufs   ro   0  0
    

    The system will mount the CD-ROM on the /cdrom mount point on every system reboot.

B.4    Unmounting a CD-ROM

You must unmount a CD-ROM from its mount point by using the umount command before you can eject it from the disc drive. To unmount a CD-ROM, you must be superuser or root and you must be at least one directory above the mount point of the CD-ROM. Use commands similar to the following to unmount a CD-ROM:

# cd /
# umount /cdrom

If you do not unmount the CD-ROM before trying to remove it, the CD-ROM will not eject from the drive when you press the EJECT button. If you are in the directory of the mount point of the CD-ROM when you execute the umount command, you will see the message device busy.

To remove the disc from the disc drive after it is unmounted, press the EJECT button on the disc drive.

If the EJECT button is disabled by software or if the drive does not eject the caddy after you press the EJECT button, see your Optical Disc Drive Owner's Manual for instructions.