Re: I would like to eject my cdrom
On Tuesday 08 September 2009 16:33:00 John Hasler wrote:
> Sjoerd writes:
> > Yes, but the point of this questin is:
> > $ eject -i
> > eject: invalid option -- i
> "-i" takes an argument. man eject
<quote from man>
This option causes eject to display a brief description of the command
This makes eject run in verbose mode; more information is displayed about
what the command is doing.
If invoked with this option, eject lists the default device name.
This option controls the auto-eject mode, supported by some devices. When
enabled, the drive automatically ejects when the device is closed.
With this option a CD slot can be selected from an ATAPI/IDE CD-ROM changer.
Linux 2.0 or higher is required to use this feature. The CD-ROM drive can not
be in use (mounted data CD or playing a music CD) for a change request to
work. Please also note that the first slot of the changer is referred to as
0, not 1.
With this option the drive is given a CD-ROM tray close command. Not all
devices support this command.
With this option the drive is given a CD-ROM tray close command if it's
opened, and a CD-ROM tray eject command if it's closed. Not all devices
support this command, because it uses the above CD-ROM tray close command.
With this option the drive is given a CD-ROM select speed command. The speed
argument is a number indicating the desired speed (e.g. 8 for 8X speed), or 0
for maximum data rate. Not all devices support this command and you can only
specify speeds that the drive is capable of. Every time the media is changed
this option is cleared. This option can be used alone, or with the -t and -c
With this option the CD-ROM drive will be probed to detect the available
speeds. The output is a list of speeds which can be used as an argument of
the -x option. This only works with Linux 2.6.13 or higher, on previous
versions solely the maximum speed will be reported. Also note that some drive
may not correctly report the speed and therefore this option does not work
With this option the selected device is displayed but no action is performed.
This option specifies that the drive should be ejected using a CDROM eject
-s This option specifies that the drive should be ejected using SCSI commands.
This option specifies that the drive should be ejected using a removable
floppy disk eject command.
This option specifies that the drive should be ejected using a tape drive
This option allow you to use /proc/mounts instead /etc/mtab. It also passes
the -n option to umount(1).
This option allows eject to work with device drivers which automatically
mount removable media and therefore must be always mount()ed. The option
tells eject to not try to unmount the given device, even if it is mounted
according to /etc/mtab or /proc/mounts.
This option causes eject to display the program version and exit.
All options have corresponding long names, as listed below. The long names
can be abbreviated as long as they are unique.
</quote from man>