10

I have just created ISO using these instructions:

Creating an iso file in Linux

How can I mount this iso image that was created?

Antonio
  • 760

6 Answers6

29

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.

Kyle Brandt
  • 85,693
8

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/

Antonio
  • 760
2

like that:

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

Kyle Brandt
  • 85,693
tsg
  • 284
1
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/
hynt
  • 21
-1

You want to do a loop mount.
http://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html

Dan
  • 1,298
-2

Follow the simple steps shown below : Just Create a Directory :

mkdir /mnt/isomount

Now mount the iso image using below command.

mount -t iso9660 -o loop /app/file.iso /mnt/isomount/

Where :

-t : Used to Indicate the File System Type.

iso9660 : It is an Standard by International Organisation Standardiztion (ISO) for Medias (CD/DVD).

-o : Options are specified with a -o flag followed by a comma separated string of options.

loop : It is a pseudo-device or a fake device that is allow you to mount a file and makes a file accessible as a block device. Loop devices are often used for ISO images. We can check the mounted devices by below command.

bummi
  • 162
  • 2
  • 2
  • 9