Ubuntu Linux Mount an Iso Image

How do I mount an Iso image under Ubuntu Linux?

Under UNIX and Linux like oses a loop device (a pseudo-device) can make a file accessible as a block device. It is is often used for CD / DVD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory.

ADVERTISEMENTS

Mount an ISO Image

Open terminal and create a mount point:
$ sudo mkdir /mnt/iso
If your iso image is at /tmp/file.iso, type the following to mount it:
$ sudo mount -o loop /tmp/file.iso /mnt/iso
To view and copy files from mount iso image:
$ cd /mnt/iso
$ ls -l
$ cp test.txt /tmp

umount – unmount File Systems

To unmount type the command:
$ sudo umount /mnt/iso

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • Aislan Mar 24, 2013 @ 15:51

    Thanks for the tip. It worked very well.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.