| Linux / Unix Command: eject |
NAME
eject - eject removable mediaSYNOPSIS
eject -heject [-vnrsfqp] [
eject [-vn] -d
eject [-vn] -a on|off|1|0 [
eject [-vn] -c slot [
eject [-vn] -t [
eject [-vn] -x
eject -V
DESCRIPTION
Eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ or ZIP disk) to be ejected under software control. The command can also control some multi-disc CD-ROM changers, the auto-eject feature supported by some devices, and close the disc tray of some CD-ROM drives.
The device corresponding to
There are four different methods of ejecting, depending on whether the
device is a CD-ROM, SCSI device, removable floppy, or tape. By default
eject tries all four methods in order until it succeeds.
If the device is currently mounted, it is unmounted before ejecting.
Eject the default device:
Eject a device or mount point named cdrom:
Eject using device name:
Eject using mount point:
Eject 4th IDE device:
Eject first SCSI device:
Eject using SCSI partition name (e.g. a ZIP drive):
Select 5th disc on mult-disc changer:
Turn on auto-eject on a SoundBlaster CD-ROM drive:
Returns 0 if operation was successful, 1 if operation failed or command
syntax was not valid.
mount(2), umount(2), mount(8), umount(8)
Important:
Use the man command (% man) to see how a command is used on your
particular computer.
COMMAND-LINE OPTIONS
LONG OPTIONS
All options have corresponding long names, as listed below. The long
names can be abbreviated as long as they are unique.
-h --help
-v --verbose
-d --default
-a --auto
-c --changerslot
-t --trayclose
-x --cdspeed
-n --noop
-r --cdrom
-s --scsi
-f --floppy
-q --tape
-V --version
-p --proc
EXAMPLES
EXIT STATUS
SEE ALSO
/usr/src/linux/Documentation/cdrom/

