How To Mount A ISO Image Under Linux

by lifeLinux on May 27, 2011

An ISO image (International Organization for Standardization) is an archive file (also known as a disc image) of an optical disc, composed of the data contents of every written sector of an optical disc, including the optical disc file system. ISO images can be created from optical discs, or can be used to recreate optical discs using software from many software vendors. ISO image files typically have a file extension of .iso. The name ISO is taken from the ISO 9660 file system used with CD-ROM media, but an ISO image might also contain a UDF (ISO/IEC 13346) file system.

To mount an ISO image under Linux, you need simply to do the following steps.

Step 1. You must be logged in as root. If not root user then switch to root user using following command:

$ sudo -i

If you are using RedHat / CentOS / Fedora

$ su

Step 2. Create a mounpoint, example /mnt/iso

# mkdir -p /mnt/iso

Step 3. Use mount command as follows to mount iso file called image.iso

# mount -o loop image.iso /mnt/iso

-o: Options are specified with a -o flag followed by a comma separated string of options. Some of these options are only useful when they appear in the /etc/fstab file. (More)

loop: A loop device is a pseudo-device that makes a file accessible as a block device. Loop devices are often used for CD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory using above commands.

Related Posts:

Previous post:

Next post: