No Account Yet?

You are not logged in.

Add to: JBookmarks Add to: Facebook Add to: Windows Live Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Technorati Add to: Newsvine Add to: Google Information
How to mount an ISO image under Solaris or OpenSolaris E-mail
OpenSolaris HowTos - Beginner OpenSolaris HowTo's
Written by Allen Sanabria   
Wednesday, 13 August 2008 13:59

Whats up guys here is another quick and simple, yet necessary HowTo...  Since as most of you know, I come from a Linux background and mounting an ISO image under linux is as simple as .... Ok, follow the link HAHAHAHA http://www.linuxdynasty.org/how-to-mount-an-iso-image-under-linux.html.

For me it feels like Solaris tries to make our lives a tad bit more complicated then it needs to be by adding another step to mount an iso image and ahemm quite a few other things as well which I will not get into right now...

So in order to mount an ISO image under Solaris you will need to use the lofiadm command. The lofiadm command adminsters the loopback file driver aka lofi. lofi allows a file ( in this case an ISO image ) to be associated with a block device. That file then can be accessed though the block device ( such as a disk ).


  1. Here we use lofiadm to associate the file to a block device.. Example { "lofiadmin -a /var/tmp/sol-nv-b95-x86-dvd.iso" }
    By default Solaris will use the next available block device, Example of the output of lofiadm { /dev/lofi/1
    }

  2. You now can run lofiadm to verify that the block device was created successfully.. Example { "lofiadm" }

  3. Now you will need to mount the block device as ReadOnly and specify the File System.. Example { "mount -o ro -F hsfs /dev/lofi/1 /mnt" }

  4. Finally all you need or better yet may want to do is run a
    { "df -k" or "df -h"  To verify that the device is mounted and then run a "ls" to view the contents of the directory}

Comments
Search RSS
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Wednesday, 13 August 2008 14:15 )