How to mount ISO images under Linux

Source: Internet
Author: User
Tags gpg

New Catalog/mnt/cdrom

Execute Command mount/dev/cdrom/mnt/cdrom

[[email protected] cdrom]# Mount/dev/cdrom/mnt/cdrommount:/dev/sr0 write protection, will be mounted as read-only

Enter the/mnt/cdrom folder to find that the inside is empty, indicating that the mount failed.

Now in many distributions, the optical drive is not/dev/cdrom, but/dev/sr0.
The result of the command ls-l/dev/cdrom |grep cdrom:
[Email protected] cdrom]#  ls-l/dev/cdrom |grep cdromlrwxrwxrwx. 1 root root 3 September   4 18:31/dev/cdrom-Sr0


Change the command map to Mount/dev/sr0/mnt.
If you want to write more complete, it can be/mount-t iso9660-o,loop/dev/sr0/mnt.

And that word. Block Device/dev/sr0 is write-protected,mounting read-only (block device/dev/sr0 is write-protected, mount as read-only)
If you put the-T iso9660-o,loop behind the mount as I said, then that sentence won't be there.
Also, after you execute mount, there is a line in the returned content/dev/sr0 on/mnt type iso9660 (RO) can also prove that the CD has been mounted successfully
。 Because the format of the disc is usually iso9660, it means that the/dev/sr0 is mounted on the/mnt directory, and the type is iso9660. (RO) is readonly read only. The discs are read-only. It can only be written once, even if it is to be written.

Execute/mount-t Iso9660-o,loop/dev/sr0/mnt/cdrom

[Email protected] dev]# mount-t iso9660-o,loop/dev/sr0/mnt/cdrom[[email protected] dev]# Cd/mnt/cdrom[[email Protect Ed] cdrom]# lsaddons  GPL       LiveOS      release-notes            rpm-gpg-key-redhat-releaseefi     Images    Media.repo  repodata                 TRANS. Tbleula    isolinux  Packages    Rpm-gpg-key-redhat-beta

This is the directory that already has something that indicates the success of the Mount

How to mount ISO images under Linux

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.