Wednesday, March 13, 2013

Mount ISO Images in Solaris


Using lofiadm tool, you can pass the -a switch to add a new loopback device.

lofiadm -a
This will create /dev/lofi/, where n: is the sequence number depending on how many /dev/lofi/ is available.

After creating the lofi device, you just mount it with:
mount -o ro -F hsfs /dev/lofi/
Where,
-o ro: mount in read-only mode.
-F hsfs: is Solaris's name for cd9660 or iso9660 in Linux.

To reverse the process, i.e. to umount the image, you simply run:
umount

And then remove the lofi device:
lofiadm -d /dev/lofi/
.

No comments:

Post a Comment