This command is not available on Sun 386i systems.
eject is used for those removable media devices that do not have a manual eject button. The device may be specified by its name or by a nickname; if no device is specified the default device is used.
Only devices that support eject under program control respond to this command.
It is not recommended to physically eject media from a device which contains mounted filesystems. eject automatically searches for any mounted filesystems which reside on the device and attempts to umount them prior to ejecting the media (see mount.8 If the unmount operation fails, eject prints a warning message and exits. The -f flag may be used to specify an eject even if the device contains mounted partitions.
eject can also display its default device and a list of nicknames.
eject returns the following exit codes:
A short help message is printed if an unknown flag is specified. A diagnostic is printed if the device name cannot be opened or does not support eject.
Device Busy An attempt was made to eject a device that has a mounted filesystem. A warning message is printed when doing a forced eject of a mounted device.
There should be a way to change the default on a per-user basis.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97