An ISO file is an image file of a CD/DVD or other disc. It contains all the files from the disc, neatly packed into a single
.iso file. This allows users to burn new copies of the disc, or they can open the ISO file to browse and copy its contents to their system.
An ISO file can also be mounted, which is the virtual equivalent to inserting a disc into your PC. The operating system will treat the ISO as a physical CD rom. In this guide, we’ll see how to open and mount an ISO file on Ubuntu Linux. This can be done from both command line and GUI, so we’ll be covering the steps for both methods.
In this tutorial you will learn:
- How to open and mount an ISO file via GNOME GUI
- How to open and mount an ISO file via command line
|Category||Requirements, Conventions or Software Version Used|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
How to open and mount an ISO file via GNOME GUI
GNOME comes with the “Disk Image Mounter” application installed by default. If you’re using the default GNOME GUI on Ubuntu, you can follow along with the step by step instructions below to mount and open an ISO file.
- Right click the ISO file and then click on “Open With Disk Image Mounter.”
- We can see that our ISO file has been mounted, and is accessible in GNOME’s file browser.
- Simply click on the mounted disc in order to access its contents.
- To unmount the ISO file, click the eject icon in the file browser.
- Note that you can also unmount or access the ISO from GNOME’s quick launch toolbar.
- If you simply want to extract the contents of the ISO file, without actually mounting it, you can right click the file and select the “Extract Here” option.
- Your files will now be extracted into the same directory where the ISO file resides.
How to open and mount an ISO file via command line
Mounting ISO files via the command line will work independently of whatever GUI you’re using. Follow the instructions below to mount and open an ISO file via command line.
- Start by creating the directory where you’d like to mount the ISO file.
$ sudo mkdir /media/mydisc
- Next, use the
mountcommand to mount the ISO file to the directory we created.
$ sudo mount ~/Downloads/ubuntu-20.04.2-live-server-amd64.iso /media/mydisc -o loop
Of course, replace our ISO file path with that of your own.
- You can now access the contents of the ISO file through the mounted directory.
$ ls -l /media/mydisc total 74 dr-xr-xr-x 1 root root 2048 Feb 1 12:57 boot dr-xr-xr-x 1 root root 2048 Feb 1 12:57 casper dr-xr-xr-x 1 root root 2048 Feb 1 12:57 dists dr-xr-xr-x 1 root root 2048 Feb 1 12:57 EFI dr-xr-xr-x 1 root root 2048 Feb 1 12:57 install dr-xr-xr-x 1 root root 34816 Feb 1 12:57 isolinux -r--r--r-- 1 root root 26452 Feb 1 12:57 md5sum.txt dr-xr-xr-x 1 root root 2048 Feb 1 12:57 pool dr-xr-xr-x 1 root root 2048 Feb 1 12:57 preseed lr-xr-xr-x 1 root root 1 Feb 1 12:57 ubuntu -> .
- When you’re ready to unmount the ISO file, use the
$ sudo umount /media/mydisc
In this guide, we saw how to mount and open an ISO file on Ubuntu Linux through GNOME GUI and command line. This allows us to access all the contents of a disc image file, and optionally copy them over to our system.