Soft Switch and speed limit of optical drive in Linux

Source: Internet
Author: User
I. soft switch of the optical drive: eject-rcdrom is used to open the warehouse door of the specified optical drive device. if there is only one optical drive, you can use eject directly. if there are two

I. soft switch of the optical drive:

Eject-r cdrom # unlock the warehouse door of the specified optical drive device

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, use the following command to close my COMBO:

Eject-t-r cdrom1 # Parameters of-t for warehouse access

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 # specify the drive speed as n

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.

Eject also comes with a small software volname, which is used to read the name of the disc. usage: If your Linux does not have X-Windows, you can easily know the volume of the disc in TEXT mode.

Volname/dev/cdrom

Tip:Question about the Chinese character file name. for example, if an eject is attached to an optical drive file system, the files with Chinese characters on the disc 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 last and third columns of the/dev/cdrom line. re-use eject to mount the disc. you will find that the Chinese character file name is correctly displayed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.