Wednesday, June 28, 2006

Mounting ISO images on Solaris

This week at work I needed to test some of our product CD images before they went out the door. We need to use Rock Ridge extensions to make the long filenames readable on unix. In the distant past we'd physically put the CD's in different unix boxes to test them. Well, now almost all of our unix boxes are at an offsite datacenter, so it's harder to test them. We can't just test on Linux, because it understands Windows-style Joliet extensions just fine.

I found that Solaris has a loopback driver that let me mount the cd image:

mount -F hsfs -o ro `lofiadm -a unix.iso` /mnt/iso

then when you unmount, you have to remember to tear down the loopback device you created:

lofiadm -d unix.iso

Pretty cool.

Technocrati tags:

No comments: