Mounting of virtual optical drive (iso) in Linux

Source: Internet
Author: User

1. Mount the iso file

Generally, you only need:

# Mount-t iso9660-o loop xxx. iso/mnt/cdrom

You can see the xxx. iso content under/mnt/cdrom.

2. Copy the CD to an iso Image

# Dd if =/dev/hdb of = xxx. iso

Or

# Cp/dev/cdrom xxx. iso

3. The virtual iso is a device.

# Rm-rf/dev/cdrom // Delete the original symbolic connection. You 'd better check it first and remember to restore it :-)

# Ln-s/dev/loop7/dev/cdrom // create a symbolic connection

# Losetup/dev/loop7/path/to/xxx. iso // The virtual iso is the loop7 device.

# Mount/dev/cdrom/mnt/cdrom // mount Virtual Devices

Here are the steps for changing the disk:

# Losetup-d/dev/loop7 // delete a Virtual Device

# Losetup/dev/loop7/path/to/yyy. iso

# Mount/dev/cdrom/mnt/cdrom

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.