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.
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/
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.
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:The
-o
switch is for mount options. Theloop
option tells the mount command to find the first/dev/loopX
device and use it.The following command helped:
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 want to do a loop mount.
http://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html
Follow the simple steps shown below : Just Create a Directory :
Now mount the iso image using below command.
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.