How to Mount ISO Files on Linux (with Examples)

Learn to effortlessly mount ISO files on Linux with our easy-to-follow instructions to gain quick access to the ISO image content.

Mounting an ISO file on Linux is a simple process, but it can confuse those new to the Linux operating system. Fear not, as this article aims to demystify the procedure and guide you to mount ISO files on Linux effortlessly.

What’s ISO File?

ISO files (or ISO images) are a common and indispensable format for distributing software, operating systems, and other digital content. They are a perfect replica of a CD, DVD, or Blu-ray disc, containing all the data and files from the original disc in a single file.

ISO files are commonly used in Linux distributions to distribute installation media. In addition, they can also be used to create bootable USB drives or virtual machines.

The name ISO originates from the file system used by optical media, ISO 9660 – an international standard from the International Organization for Standardization (ISO).

How to Mount ISO Files on Linux

Mounting an ISO file in Linux allows the user to access its contents like a physical disc. This can be done using the mount command or a graphical user interface. Below we show you how to use both approaches.

Users can browse its contents once the ISO file is mounted and copy files to their system. When finished, the ISO file can be unmounted to release the system resources it was using.

Mount ISO file from Command Line

The first step is to create the mount point where our ISO file will be mounted. The โ€œmntโ€ directory is a good candidate, so we will create a subdirectory โ€œisoโ€ where to mount the ISO image.

sudo mkdir -p /mnt/iso

Now, let’s mount the ISO file itself. Assume we downloaded one named “debian-12.1.0-amd64-netinst.iso” in our “Downloads” directory. To mount it to our local file system, use the following command:

sudo mount -o loop Downloads/debian-12.1.0-amd64-netinst.iso /mnt/iso
Mount the ISO file in Linux from the command line.
Mount the ISO file in Linux from the command line.

The message “WARNING: source write-protected, mounted read-only.” should not bother you. It is perfectly fine. Why? Because ISO files are always mounted as read-only by default.

To mount the ISO file from the command line, we used the mount command, which instructs the operating system to make a file system available for use at a specified location.

To it, we passed the “loop” option, which specifies the so-called loop device, which is a pseudo (“fake”) device, actually just a file, that makes a file accessible as a block-based device.

Now, we can access the contents of the ISO file by running the well-known “ls -l” command.

ls -l /mnt/iso/
List the content of the ISO file.
List the content of the ISO file.

Alternatively, you can use the file manager of your desktop environment by navigating to the โ€œ/mnt/isoโ€ directory.

List the contents of the ISO file in a GUI file manager.
List the contents of the ISO file in a GUI file manager.

Mount ISO Files using GNOME

Mounting an ISO file using the GNOMEโ€™s Files application is extremely easy, thanks to the โ€œgnome-disk-utilityโ€ package, usually preinstalled by default with the GNOME desktop environment.

Navigate to the file, then right-click on it and select “Open With Disk Image Mounter” from the context menu that appears.

Mount ISO files using GNOMEโ€™s File app.
Mount ISO files using GNOMEโ€™s File app.

The ISO file will be automatically mounted and displayed in the File app sidebar. To view a list of its contents, click on it.

List the ISO file content using GNOME's File app.
List the ISO file content using GNOME’s File app.

Mount ISO Files using KDE Plasma

Dolphin, the file manager of the Plasma desktop environment, has supported ISO file mounting since version 20.08 of the KDE App suite. However, make sure the โ€œdolphin-pluginsโ€ package is installed on your system; if it isnโ€™t, you installed it.

Hover your mouse over the ISO file and right-click to open the context menu. “Mount” is one of the available options. Choose it.

Mount ISO files using KDE Plasmaโ€™s Dolphin app.
Mount ISO files using KDE Plasmaโ€™s Dolphin app.

The ISO file will be automatically mounted and appear as a link in the Dolphin file manager sidebar. Click on the name to view the contents of the mounted ISO file.

List the ISO file content using KDE Plasmaโ€™s Dolphin app.
List the ISO file content using KDE Plasmaโ€™s Dolphin app.

To unmount it, right-click on the device name and choose โ€œUnmount.โ€

How to Unmount ISO Files on Linux

Remember to unmount it when youโ€™re done working with the ISO file. Unmounting a mounted ISO file in Linux is very easy.

To do this, type the umount command followed by the path to the location on the filesystem where you mounted the ISO image.

sudo umount /mnt/iso

The command will not return any output.

Conclusion

This article explored the step-by-step process of mounting ISO files on Linux, ranging from the straightforward command-line methods to the user-friendly GUI tools available.

By following these instructions, you can now seamlessly access the content within ISO files, whether installing software, extracting specific files, or exploring the contents of an operating system image.

Thanks for using our guide! If you have any questions or feedback, feel free to comment.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%