Sun HPC Campus Ambassador @ CESUP/UFRGS Glaucio Souza

Friday Feb 22, 2008

Other day, I was trying to install a software that I've downloaded and oops, it was an iso file. As I didn't wanted to burn a cd, I tried to mount the file. But how can I do that on Solaris?

After questioning the oracle (Google) I found an answer! Use the “lofiadm” command to create a block device for the image and then use “mount” to mount it as a filesystem, as the following:

Make the block device with “lofiadm”:
lofiadm -a /path/to/your/image.iso /dev/lofi/block_device_number

Mount the image as a read-only filesystem:
mount -F hsfs -o ro /dev/lofi/block_device_number /mountpoint

It's important that you use the full path to both the iso file and the mount point, otherwise it won't work.

I found that information at spiralbound.net

Comments:

You should set up the automounter to do it:

http://blogs.sun.com/chrisg/entry/automounting_iso_images

Posted by Chris Gerhard on February 22, 2008 at 04:54 PM BRT #

Very interesting your solution. Thanks

Posted by Glaucio on February 22, 2008 at 05:09 PM BRT #

Post a Comment:
  • HTML Syntax: NOT allowed