Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have just created ISO using these instructions:

http://serverfault.com/questions/5689

How can I mount this iso image that was created?

share|improve this question

4 Answers 4

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.

share|improve this answer
4  
Better answer than those also specifying -t iso9660. This is better auto-detected, as the image could be UDF or another format. –  jmtd Nov 4 '10 at 13:41
    
+1 For not only the actual command, but for the additional details as well. –  jscott Nov 4 '10 at 13:44
up vote 4 down vote accepted

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/

share|improve this answer
2  
what if the image isn't iso9660 e.g. UDF? –  jmtd Nov 4 '10 at 13:42

like that:

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

share|improve this answer
    
As per Antonio's answer, what if the image is not iso9660? –  jmtd Nov 4 '10 at 13:43
    
The iso9660 option seems to detect most variations of optical disk images including DVD, not just CD or CD-*. –  kmarsh Nov 4 '10 at 13:56

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

share|improve this answer
2  
Please put the instruction in your answers. What if nixCraft went offline? –  Aaron Copley Nov 4 '10 at 17:42
    
Thanks for the tip - I'll do so in the future. –  Dan Nov 4 '10 at 18:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.