Sunday, October 20, 2013

Mount ISO Image in Linux

It is very simple to mount an iso image and this tutorial explains how to mount an ISO image under a directory in linux. This image file is an archive file of an optical disc. It can be created from compact disc and software bootable disc are sustain in ISO images. The extension of the image is (.iso).
Now this tutorial explains how to mount an iso image under a directory. Here already having an image file “rhce.iso” and this ISO image file mount under /mnt/image
First of all you need login as super user means (root user) to mount the file system. To login as root user, the below command is as follows:
[user@linuxpathfinder ~]$ su -
To mount the iso file create a directory under /mnt.
[root@linuxpathfinder ~]# mkdir -p /mnt/media
Mount the iso file now
[root@linuxpathfinder ~]# mount -o loop ~/Downloads/rhce.iso /mnt/media
ISO image file is mounted under the directory. Now check the mounted file as shown below.
[root@linuxpathfinder ~]# ls -l /mnt/media/
How-to remove the mounted iso image
umount command is use to remove the mounted image or mounted directories.
Following command will remove the mounted media.
[root@linuxpathfinder ~]# umount /mnt/media
Hope this tutorial will valuable for you.

Content from Linux Pathfinder