Sun Enterprise 250 Server Owner's Guide

How to Eject a Compact Disc With Software Commands

Before You Begin

If the server is set up without a local console, you need to set up a console on it in order to issue software commands; see:

What to Do

  1. Kill processes accessing the CD-ROM drive, if necessary.

    The disc will not eject while the drive is in use. To kill any processes accessing the CD-ROM drive, become superuser and type the following:


    % su
    Password:
    # fuser -k /cdrom/cdrom0
    


    Note -

    You should warn users before abruptly halting processes. The command fuser -u /cdrom/cdrom0 helps you identify who's accessing the CD-ROM drive. Refer to the Solaris 2.x System Administrator's Guide for more information about the fuser command.


  2. From the console device, enter:


    % eject cdrom0
    

The CD-ROM disc should eject.

What Next

You can also eject a compact disc by using one of these methods: