CentOS5.5 mount a local ISO image

Source: Internet
Author: User

Procedure:

I. Mount the iso file to the Mount point

[[Email protected] ~ ] # Mount-o loop/mnt/iso/CentOS5.iso/mnt/cdrom

II. View the Mount status

[[Email protected] ~ ] # Df-h

Filesystem Size Used Avail Use % Mounted on

/Dev/mapper/VolGroup00-LogVol00 19G 3.3G 15G 19%/

/Dev/sda1 99 M 12 M 82 M 13%/boot

Tmpfs 62 M 0 62 M 0%/dev/shm

/Mnt/iso/CentOS5.iso 3.9G 3.9G 0 100%/mnt/cdrom

III. Automatic mounting of iso image files upon startup

In the/etc/fstab table, add the last row and permanently mount the iso file to the system.

[[Email protected] ~ ] # Cat/etc/fstab

/Dev/VolGroup00/LogVol00/ext3 defaults 1 1

LABEL =/boot ext3 defaults 1 2

Tmpfs/dev/shm tmpfs defaults 0 0

Devpts/dev/pts devpts gid = 5, mode = 620 0 0

Sysfs/sys sysfs defaults 0 0

Proc/proc defaults 0 0

/Dev/VolGroup00/LogVol01 swap defaults 0 0

/Mnt/iso/CentOS5.iso/mnt/cdrom iso9660 loop 0 0

CentOS5.5 mount a local ISO image

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.