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.

Advertisement

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

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

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. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.