Newest Downloads

Mar.08

  [zenoss@zenoss2 ~]$ python Zenoss_Template_Manager.py -husage: Examples: python Zenoss_Templa...

Feb.01

python queryns.py -husage: queryns.py [options] arg --username=username --password=password --net...

How to mount an ISO image under Solaris or OpenSolaris
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}



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
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 on Wednesday, 13 August 2008 14:15