[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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>
COMMAND-LINE OPTIONS


-h 
 This option causes eject to display a brief description of the command 
options. 
-v 
 This makes eject run in verbose mode; more information is displayed about 
what the command is doing. 
-d 
 If invoked with this option, eject lists the default device name. 
-a on|1|off|0 
 This option controls the auto-eject mode, supported by some devices. When 
enabled, the drive automatically ejects when the device is closed. 
-c <slot> 
 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. 
-t 
 With this option the drive is given a CD-ROM tray close command. Not all 
devices support this command. 
-T 
 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. 
-x <speed> 
 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 
options. 
-X  
 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 them. 
-n 
 With this option the selected device is displayed but no action is performed. 
-r 
 This option specifies that the drive should be ejected using a CDROM eject 
command. 
-s This option specifies that the drive should be ejected using SCSI commands. 
-f 
 This option specifies that the drive should be ejected using a removable 
floppy disk eject command. 
-q 
 This option specifies that the drive should be ejected using a tape drive 
offline command. 
-p 
 This option allow you to use /proc/mounts instead /etc/mtab. It also passes 
the -n option to umount(1). 
-m 
 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. 
-V 
 This option causes eject to display the program version and exit. 
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 
 -T --traytoggle 
 -x --cdspeed 
 -X --listspeed 
 -n --noop 
 -r --cdrom 
 -s --scsi 
 -f --floppy 
 -q --tape 
 -V --version 
 -p --proc 
 -m --no-unmount 
 
EXAMPLES
</quote from man>

-i??

Lisi


Reply to: