Comandos de la terminal/eject

De WikiCabal
Saltar a: navegación, buscar

eject

[rrc@Llawyr ~]$ eject --help

Usage:
 eject [options] [<device>|<mountpoint>]

Options:
 -a, --auto <on|off>         turn auto-eject feature on or off
 -c, --changerslot <slot>    switch discs on a CD-ROM changer
 -d, --default               display default device
 -f, --floppy                eject floppy
 -F, --force                 don't care about device type
 -i, --manualeject <on|off>  toggle manual eject protection on/off
 -m, --no-unmount            do not unmount device even if it is mounted
 -M, --no-partitions-unmount do not unmount another partitions
 -n, --noop                  don't eject, just show device found
 -p, --proc                  use /proc/mounts instead of /etc/mtab
 -q, --tape                  eject tape
 -r, --cdrom                 eject CD-ROM
 -s, --scsi                  eject SCSI device
 -t, --trayclose             close tray
 -T, --traytoggle            toggle tray
 -v, --verbose               enable verbose output
 -x, --cdspeed <speed>       set CD-ROM max speed
 -X, --listspeed             list CD-ROM available speeds

 -h, --help     display this help and exit
 -V, --version  output version information and exit

By default tries -r, -s, -f, and -q in order until success.

For more details see eject(1).
[rrc@Llawyr ~]$ eject --version
eject from util-linux 2.24

[rrc@Llawyr ~]$ eject -d
eject: default device: `/dev/cdrom'

[rrc@Llawyr ~]$ eject

[rrc@Llawyr ~]$ eject -n
eject: device is `/dev/sr0'

[rrc@Llawyr src]$ eject /dev/sr0

[rrc@Llawyr ~]$ eject -sv
eject: using default device `/dev/sr0'
eject: device name is `/dev/sr0'
eject: /dev/sr0: not mounted
eject: /dev/sr0: is whole-disk device
eject: /dev/sr0: is removable device
eject: /dev/sr0: trying to eject using SCSI commands
eject: SCSI eject succeeded

[rrc@Llawyr ~]$ eject -rv
eject: using default device `/dev/sr0'
eject: device name is `/dev/sr0'
eject: /dev/sr0: not mounted
eject: /dev/sr0: is whole-disk device
eject: /dev/sr0: is removable device
eject: /dev/sr0: trying to eject using CD-ROM eject command
eject: CD-ROM eject command succeeded

[rrc@Llawyr ~]$ eject -pv
eject: using default device `/dev/sr0'
eject: device name is `/dev/sr0'
eject: /dev/sr0: not mounted
eject: /dev/sr0: is whole-disk device
eject: /dev/sr0: is removable device
eject: /dev/sr0: trying to eject using CD-ROM eject command
eject: CD-ROM eject command succeeded

[rrc@Llawyr ~]$ eject -X
24 

[rrc@Llawyr ~]$ eject -Xv
eject: using default device `/dev/sr0'
eject: device name is `/dev/sr0'
eject: /dev/sr0: not mounted
eject: /dev/sr0: is whole-disk device
eject: /dev/sr0: is removable device
eject: /dev/sr0: listing CD-ROM speed
24