How to mount an ISO image on a Solaris system (Legacy KB ID CNC TS32761 )

Document ID : KB000051849
Last Modified Date : 14/02/2018
Show Technical Document Details
(In the solution below, indented lines preceded by # are commands you enter, and the indented lines below them are screen output. You must run them as root.)

Use lofiadm to attach a block device:

    # lofiadm -a /path/to/image/dvdImage.iso

lofiadm picks the device and prints the device name to the standard output. You can run lofiadm again by issuing the following command:

    # lofiadm
    Block Device     File
    /dev/lofi/1      /path/to/image/dvdImage.iso

Or, you can give it one name and ask for the other, by issuing the following command:

    # lofiadm /dev/lofi/1

Use the mount command to mount the image:

    # mount -F hsfs -o ro /dev/lofi/1 /mnt

Check to ensure that Solaris understands the image:

    # df -k /mnt
    Filesystem            kbytes    used   avail capacity  Mounted on
    /dev/lofi/1            512418  512418       0   100%    /mnt
    # ls /mnt
    <other files in the mounted image>

Solaris can mount the CD-ROM image, and understand the filenames. The image was created properly, and you can now use the DVD with confidence.

At this point you must follow the instructions in the eHealth Installation Guide to copy the contents of the eHealth and Oracle Software DVDs to a disk. The eHealth installer will not recognize the mounted images as true DVDs.

As a final step, unmount and detach the images:

    # umount /mnt
    # lofiadm -d /dev/lofi/1
    # lofiadm
    Block Device             File


Related Issues/Questions:
How to mount an ISO image on a Solaris system

Problem Environment:

Causes of this problem:
With the release of eHealth 6.1, most customers download ISO images of the installation DVDs instead of receiving physical media. The problem arises when they have moved the ISO images to their Solaris server, and there is no way to access the data within. The current installation documentation makes no reference to ISO images. This article explains how to mount the ISO file as if it were an actual DVD.
lofiadm administers lofi, the loopback file driver. lofi allows a file to be associated with a block device. That file can then be accessed through the block device. This is useful when the file contains an image of some filesystem (such as a floppy, CD-ROM, or DVD image), because the block device can then be used with the normal system utilities for mounting, checking or repairing filesystems.

Use lofiadm to add a file as a loopback device, remove such an association, or print information about the current associations.

The lofi driver is not available and will not work inside a zone.

Additional Information:
The full path to the command is /usr/sbin/lofiadm

(Legacy KB ID CNC TS32761 )