Sunday, May 21, 2006

Mounting ISO image

Sometimes, you want to mount an ISO image before burning it to a CD.
It is very easy in Linux (in fact some LiveCD editions use that very technique).

To mount an ISO image just type:
mount -t iso9660 -o loop iso-image-name.iso /path/to/mountpoint

The secret sauce is in the "-o loop" option, which uses the loop device. You can actually customize a lot further by specifying a specific device, for example: -o loop=/dev/loop1,blocksize=1024 .. etc.
But, in most cases the default works perfectly.

Happy mounting!

No comments: