Manual Reference Pages - EJECT (1)
- Eject removable media
is used to control removable media devices.
Either a device name (with or without a precending
"/dev/"), or a mount point as listed in "/etc/fstab" may be
specified to select the device to eject. If no
device is specified, the default device, "/etc/acd0" is used.
If the device is currently mounted at one or more mount points,
all are unmounted before the eject is performed. If any unmount
fails, the eject is aborted, and the mounts are NOT re-established.
Only devices listed in "/usr/local/etc/eject.allow" can be ejected.
The file format is one entry per line, and shell-style wildcards
(See "sh(1)") are allowed. Lines beginning with # and blank
lines are considered comments.
Display a summary of command usage.
displays arguably useful information about what its doing.
Display the default device.
Close the CDROM tray. ( Not supported by all CDROM drives. )
No operation. Display the normal output, but dont actually eject
or close the device. Often used in conjunction with -v for debugging.
Eject the default device:
Eject a device name:
Eject using mount point:
eject -t /cdrom
eject --trayclose /cdrom
returns 0 if operation was successful, nonzero otherwise. See
sysexits(3) for an explanation of exit codes.
was written by Jason W. Bacon at the Medical College of Wisconsin
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.