How to mount an ISO file in Linux?
Linux has a loopback device which lets you mount files that contain a filesystem on them. This will work for images of partitions (i.e. an ext3 backup image) but also works for cdrom images as well.
This command allows you to mount an iso image. In order of this to work, /mnt/disk
must already exist:
mount -o loop disk.iso /mnt/disk
The -o
switch is for mount options. The loop
option tells the mount command to find the first /dev/loopX
device and use it.
The following command helped:
mount -o loop -t iso9660 file.iso /mnt/test
Found here: http://www.tech-recipes.com/rx/857/mount-an-iso-file-in-linux/
like that:
mount -o loop -t iso9660 whatever.iso /mnt