Friday, February 23, 2007

Mount ISO Image in Linux

Linux fans always download Linux distributions CD/DVD ISO, and bunt it into suitable media. And we have some times to operate ISO images. In this article, I will show Linux users how to mount ISO images as a device.

Strictly speaking, Linux will regard ISO image as a loop device when you mount on a specific directory. The loop device is quite useful, for example, as you know, the localhost IP:, it's a loop network address. When you send packet to this address, the whole data will be back totally. But you can do the entire network test or build network software easily.

Well, switch to the ISO image. At first, you must make a mount point as usual. In this article, I make it called /mnt/iso. Then use mount command to mount the ISO image.

Command Line:
mount -o loop,ro -t iso9660 image.iso /mnt/iso

Now you can go to /mnt/iso directory to read the ISO image. For unmount this ISO, use follow command.

Command Line:
umount /mnt/iso

That's all.