& Nbsp; 1. soft switch of the optical drive: eject-rcdrom. open the warehouse door of the specified optical drive device. if there is only one optical drive, use eject directly, if there are two optical drive devices that specify the device according to the/dev/device file, for example, there is a COMBOCDROM on my machine, and the device file is/dev/cdrom1, use eject-r
I. soft switch of the optical drive:
Eject-r cdrom: Open the warehouse door of the specified optical drive device. if there is only one optical drive, use eject directly. if there are two optical drive devices, specify the device according to the/dev/device file, for example, if there is a combo cdrom on my machine and the device file is/dev/cdrom1, run it with eject-r cdrom1.
Use the-t parameter to close the warehouse. for example, close my COMBO and run the following command: eject-t-r cdrom1. The advantage of eject is that the optical drive can be automatically attached to the file system, and the file system is automatically removed when the file system is popped up.
II. speed limit of the optical drive:
Eject-x n cdrom, n is the maximum speed. In actual use, n must be greater than or equal to 4, and there is no limit on the upper limit.
The eject also comes with a small software volname, which is used to read the name of the disc. usage: volname/dev/cdrom. if your Linux does not have X-Windows, in TEXT mode, you can easily know the volume of the disc.
Tip: Question about the Chinese character file name. For example, if an eject is attached to an optical drive file system, the file names with Chinese characters on the optical drive will all be "?". After checking the source code of the eject, it is found that the setting in the/etc/fstab file is called to mount the file system, as long as iocharset = gb2312, codepage = 936 is added to the third column of the inverted number in the/dev/cdrom line. re-use eject to mount the disc. you will find that the Chinese character file name is correctly displayed.