|
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 ).
-
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 }
- You now can run lofiadm to verify that the block device was created successfully.. Example { "lofiadm" }
-
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" }
-
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}
|
|
Last Updated ( Wednesday, 13 August 2008 14:15 )
|