An ISO image or .iso (International Organization for Standardization) file is an archive file that contains a disk image called ISO 9660 file system format. Every ISO file have .ISO extension has defined format name taken from the ISO 9660 file system and specially used with CD/DVD Roms. In simple words an iso file is a disk image.
Typically an ISO image contains installation of software such as, operating system installation, games installation or any other applications. Sometimes it happens that we need to access files and view content from these ISO images, but without wasting disk space and time in burning them on to CD/DVD.
This article describes how to mount and unmount an ISO image on RHEL to access and list the content of ISO images.
To mount an ISO image, you must be logged in as root user and run the following commands from a terminal to create a mount point.
Once you created mount point, use the mount command to mount an iso file. We'll use a file called rhel-server-6.6-x86_64-dvd.iso for our example.# mkdir /mnt/iso
After the ISO image mounted successfully, go the mounted directory at /mnt/iso and list the content of an ISO image. It will only mount in read-only mode, so none of the files can be modified.# mount -t iso9660 -o loop /tmp/Fedora-18-i386-DVD.iso /mnt/iso/
You will see the list of files of an ISO image, that we have mounted in the above command.# cd /mnt/iso # ls -l
To unmount an ISO image, run the following command from the terminal as root:
# umount /mnt/iso