How to mount ISO on Linux using command line

This tutorial is going to show you how to mount an ISO file on Linux system. Here I will show you how to mount the ISO using command line from Terminal. It does not require any additional packages or software. We simply use the mount command on Terminal.

Supported Linux:

Ubuntu, Fedora, OpenSUSE, Debian, CentOS and many other Linux distribution.

Mount ISO file to a directory on Linux

mkdir -p /mnt/isofile
mount -o loop CentOS.iso /mnt/isofile

Now check if it mounted correctly by listing the directory

cd /mnt/isofile
ls -l

You should see the content of the iso file. Thank you


Leave a Reply

Your email address will not be published. Required fields are marked *