eject [options] [media]Solaris only. Eject removable media, such as a floppy disk or CD-ROM. Necessary for media being managed by vold, or for media without an eject button, such as the floppy drives on Sun SPARC systems. media is either a device name or a nickname, such as floppy or cdrom.
With volume management available, eject unmounts any filesystems mounted on the named media. In this case, it also displays a pop-up dialog if a window system is running. Without volume management, it simply sends an "eject" command to the given device.
-dPrint the name of the default device to be ejected.
-fWhen volume management is not in effect, force the eject, even if the device is busy.
-nDisplay the list of nicknames and their corresponding real devices.
-pDo not use a windowing pop-up dialog.
-qQuery to see if the device has media. Use the exit status to determine the answer.