An ISO file (often ending in .iso) is a complete, uncompressed sector-by-sector copy of an optical disc, such as a CD or DVD. Historically, you would have to burn these files onto physical media to access the contents. Today, Linux allows you to create a “virtual” disc drive and “mount” the ISO file directly into your filesystem, giving you instant access to the files inside without needing a physical disc.
This is commonly required when extracting software installers, reviewing archived backups, or examining game discs. This guide explains how to mount an ISO file using the terminal.
Step 1: Create a Mount Point
In Linux, you cannot simply click on an ISO file to open it like a folder. You must create an empty directory that will serve as the gateway (the “mount point”) through which you access the contents of the ISO.
A common convention is to create this folder inside the /mnt directory.
Open your terminal and create the directory using the mkdir command (you will need root privileges):
sudo mkdir -p /mnt/iso
Step 2: Mount the ISO File
Now that you have a destination folder, you use the mount command to attach the ISO file to that folder.
The standard syntax requires the -o loop option. This tells the Linux kernel to use a “loop device,” which allows a regular file (the ISO) to be treated as if it were a physical block device (like a hard drive or CD-ROM).
Execute the following command, replacing the path with the location of your actual ISO file:
sudo mount -o loop /home/user/Downloads/software_archive.iso /mnt/iso
The command usually executes silently. However, you may see a warning stating mount: /mnt/iso: WARNING: source write-protected, mounted read-only. This is completely normal; ISO files are designed to represent physical CDs, which cannot be modified after being burned. You can read and copy files out of the ISO, but you cannot save new files into it.
Step 3: Access the Files
The ISO is now mounted. To view the files inside, simply navigate to the mount point directory you created in Step 1.
cd /mnt/iso
ls -l
You can also open your graphical file manager and navigate to /mnt/iso to view the files visually.
Step 4: Unmount the ISO
When you are finished copying files or running the installer, you must properly detach the ISO file from the system to free up the loop device.
Crucial: Ensure your terminal (and any file manager windows) are not currently inside the /mnt/iso directory, otherwise the system will report that the target is “busy.” Change back to your home directory (cd ~), and then run the umount command:
sudo umount /mnt/iso
The ISO is now safely detached.