User Tools

Site Tools


ubuntu:iso:mount_iso_image

Ubuntu - ISO - Mount ISO image

Mount a raw ISO 9660 image file as a file system:

mount -t iso9660 -o loop some.iso /mnt/data

Mount a raw ISO 9660 image file as a READ-ONLY file system:

mkdir /mnt/data
mount -o loop,ro some.iso /mnt/data

where:

  • ro = Mount the filesystem read-only.
  • loop = Mount as a loop device.

Mount a raw ISO 9660 image file automatically using an entry in the file: /etc/fstab

/etc/fstab
some.iso /mnt/data iso9660 loop,ro 0 3

NOTE: A loop device is a pseudo-device that makes a file accessible as a block device.

To access the mounted fileshare:

cd /mnt/data
ls -l
ubuntu/iso/mount_iso_image.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki