Mount and un-mount an ISO image. An ISO image is an archive file of an optical disc, a type of disk image composed of the data contents of every written sector of an optical disc, including the optical disc file system. ISO image files usually have a file extension of .iso
Most Linux distros are in an iso form when you download them.
NOTE: This will work on any linux distro.
In order to mount an ISO you must have root privileges type su and switch to root user.
Now we need to create a mount point to mount our ISO on.
Once you have created a mount point, use the “mount” command with options to mount the iso file. I have an ISO file in my downloads folder witch is located in my home directory so I am going to mount it from that folder.
Mount Options Explained
NOTE: These Options are needed in order to mount the ISO correctly.
After the ISO image mounted successfully, go the mounted directory at /mnt/iso using the cd command.
As you can see the prompt has changed to the iso directory.
Now run the ls -l command to list the content of the directory
And you should get an output something like this.
Now to Un-mount the ISO
Simply run the following command
That's it you have successfully mounted and un-mounted your ISO file. Thank you for reading.