How to use a virtual optical drive in a Linux operating system

Source: Internet
Author: User

Using a virtual optical drive in Linux does not actually require any virtual optical drive software. You can use the mount command to complete the process.

1. Make the CD into an iso file

$ Cp/dev/cdrom XXXXX. iso

XXXXX. iso: The image file you named. After executing this command, you can make the entire CD into an iso file. You can add a path before XXXXX. iso.

2. Load the iso file on the hard disk to the CD (or virtual optical drive ).

$ Mount-t iso9660-o loop/*/XXXXX. iso/mnt/iso

3. If it is to install the files provided by the system disk, such as adding or deleting a program, the system may prompt you to insert a CD, but we do not have a CD, only the image, what should we do?

For Redhat, first mount iso and then execute

$ Redhat-install-packages -- isodir =/mnt/iso

4. Generally, the virtual Optical Drive

$ Rm-rf/dev/cdrom # Delete the optical drive

$ Ln/dev/loop7/dev/cdrom

$ Losetup/dev/loop7/*/XXXXX. iso

$ Mount/mnt/cdrom

Then you can see if the iso file has become a virtual Optical Drive?

Cancel this optical drive:

$ Losetup-d/dev/loop7

For disk replacement:

Only need to transfer iso to/dev/loop

$ Losetup/dev/loop7/*/XXXXX. iso

Related Articles]

  • Virtual optical drive for 64-bit Windows
  • Use "virtual Optical Drive" in linux"

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.