Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I mount an ISO image under solaris?

Administration

How do I mount an ISO image under solaris?

by  kduffin  Posted    (Edited  )
You can mount an ISO image directly using the lofiadm and mount commands.

Given an ISO image in /export/home/user/program.iso, a loopback file device (/dev/lofi/1) is created with the following command:

lofiadm -a /export/home/user/program.iso /dev/lofi/1

The lofi device creates a block device version of a file. This block device can be mounted to /mnt with the following command:

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

These commands can be combined into a single command:

mount -F hsfs -o ro `lofiadm -a /export/home/user/program.iso` /mnt

You can mount multiple iso images by incrementing /dev/lofi/[x] and using differing mount points.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top