Feature Description: Exit the pull-out device.
Syntax: Eject [-dfhnqrstv][-a < switch >][-c < Optical drive number >][ device ]
Additional Note: If the device is mounted, the Eject the device is removed before exiting.
Parameters
[ equipment ] The device can be a driver name, or it can be a hang-in point.
-a< Switch > or --auto< Switch > controls the automatic exit function of the device.
-c< Optical Drive Number > or --changerslut< Optical Drive Number > Select the optical drive in the optical drive cabinet.
- D or --default Displays the preset device instead of actually performing the action.
- F or --floppy exit the pull-out disk.
- H or --help displays Help.
- N or --noop displays the specified device.
- Q or --tape exit the tape.
- R or --cdrom exit the disc.
- S or --SCSI in SCSI command to exit the device.
- T or --trayclose Close the disc tray.
- v or --verbose when executed, a detailed description is displayed.
Linux Open the optical drive , turn off the optical Drive command, and the optical drive speed limit command Eject
Parameters
-R
-T
-X
Optical Drive Compartment door open
- R Parameters
Eject
Description
if PC only one optical drive is used directly on the Eject command to eject the storage door of the optical drive device
If you have more than one optical drive, add parameters - R You can eject the specified device compartment door ( eject-r cdrom #cdrom is a /dev/ the name of the device you see below)
Optical drive compartment door closed
- T Parameters
eject-t you can close the door
If you have more than one optical drive device
eject-t-R cdrom To turn off the specified device
Note:
Eject you can automatically attach the optical drive to the file system, and automatically remove the file system when it pops up.
Speed limit of optical drive
- x parameters, actually in use N to be greater than or equal to 4 , there is no limit to the upper limit, but is limited by the speed of the optical drive hardware.
eject-x n cdrom n is the maximum speed.
Read the name of the disc
Eject a small piece of software is also included Volname , the name used to read the disc
Usage: Volname/dev/cdrom ,
If you have Linux No x-windows , in TEXT mode, you can easily know the Volume .
Note: Problem with Chinese file name (not verified)
eject The file system of the CD-ROM on which the characters are " ?? is called. The settings in this file to hang the file system as long as the iocharset=gb2312, codepage=936 add to /dev/cdrom The penultimate column of this line, re-use eject
This article is from "Try to be brave" blog, declined reprint!
Eject command explanation