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


You will probably need to create folder first like this..

$ mkdir/mnt/cd/

$ mount -o loop -t iso9660 whatever.iso /mnt/cd/

and think this work 

$ umount /mnt/cd/
$ mount -o loop -t iso9660 whatever.iso /mnt

if you need to mount hardrive , usb .. osv..
find out name and place..

$ fdisk -l
Device        Start      End  Sectors  Size Type
/dev/sdb1      2048  1050623  1048576  512M BIOS boot
/dev/sdb2   1050624 18020351 16969728  8,1G Linux filesystem
/dev/sdb3  18020352 30365695 12345344  5,9G Linux swap

$ mkdir /mnt/sdb2
$ mount /dev/sdb2 /mnt/sdb2
$ cd /mnt/sdb2/