Mount an ISO image in Solaris
The Solaris lofi file driver allows to handle a file as a block device, this is managed via the lofiadm command. The procedure to mount an ISO image is the following:
1. Use the lofiadm command to create a block device:
lofiadm -a <iso_file>
2. Mount the ISO image:
The previou command returns the name of a block device (typically /dev/lofi/1), use this device name to mount the ISO:
mount -F hsfs -o ro /dev/lofi/1 /mnt
3. To remove the device:
umount /mnt lofiadm -d /dev/lofi/1
Leave a Reply