How to mount an optical drive in Linux

Source: Internet
Author: User

How to mount an optical drive in Linux

The ISO file system is an ISO file system released by the International Organization for Standardization (ISO. The goal is to exchange data on different operating systems, such as Windows, Mac OS, and Unix-like systems. When using CD on Linux, You need to perform the mounting operation (most of the desktop versions will automatically help you to mount it ).

1, detects CD/DVD-ROM drives
First, find the available device, that is, find the optical drive in the Linux system, usually use the wodim command to display. Wodim scans the symbol devices in the/dev/directory. If you do not have the wodim command, install the cdrecord package first.
Debian or Ubuntu:
# Apt-get install wodim
# Apt-get install cdrecord
RedHat, Fedora, and CentOS:
# Yum install cdrecord
Once you run the wodim command, some optical drive devices will be available in some Linux systems (if the disc has been mounted, it will not be found). Run the command to see the following:
$ Wodim -- devices
Wodim: Overview of accessible drives (1 found ):
-------------------------------------------------------------------------
0 dev = '/dev/cd0' rwrw --: 'tsstcorp' CD/DVDW SH-S183L'
-------------------------------------------------------------------------
From the above example, we can see that CDRom can be accessed through/dev/cd0.

2. Create a mount point.
The so-called mounting means to map partitions to a directory in Linux. Linux may have created a mount point for you like/cdrom,/media/cdrom,/media/cdrom0, /mnt/cdrom. if none of them exist, create a mount point manually.
# Mkdir/media/cdrom

3. Attach the optical drive
To mount an irrigation district, run the following command:
# Mount-t iso9660/dev/sp_0/media/cdrom
Mount: block device/dev/sr0 is write-protected, mounting read-only
The above command hangs CDROM under/media/cdrom.

4. Uninstall the optical drive
The command to uninstall the optical drive is as follows:
# Umout/dev/hdc
# Eject
Or directly run the following command:
# Eject
If you find that the optical drive cannot be detached, you can use the fuser command to find the processes that occupy the optical drive, and then manually kill these processes.
# Fuser-mk/dev/hdc
# Eject

This article permanently updates the link address:

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.