When we use the operating system, we sometimes use optical discs and optical drives. Unlike the way Windows accesses disc content, in CentOS7, if you want to access a disc in the CD drive, you need to mount the CDROM to a local directory. I myself think of this as a local image of the contents of the disc. Let's look at how to do this.
Mount-t Auto/dev/cdrom/mnt/cdrom
Explain:
Mount is the Mount command.
The- T auto means to tell the Mount command what type of filesystem is on the device that we need to mount, where auto is used, and CentOS will automatically recognize it.
/dev/cdrom This is an indication of the device access path we are going to mount. In fact, you carefully observe CDROM this file you will find, in fact, CDROM is just a link file, link to sr0.
/mnt/cdrom This is the target path after the mount is said to be mounted. In other words, this is the access path after the disc content is going to be mapped. It is important to note that if this/mnt/cdrom does not exist, then you must first create this directory with mkdir. The general mnt is present, but the CDROM does not exist.
After you mount OK, you can use the CD command to enter the/mnt/cdrom to see what's going on.
This article is from the "Bitterjava" blog, make sure to keep this source http://rickqin.blog.51cto.com/1096449/1770232
CentOS7, accessing the contents of the CD-ROM