Dear Frank,

I use this small script i had written for mounting iso images. hope it helps..

Save the below contents in a file called "mountiso.sh"

#!/usr/bin/bash
mkdir $2
lofiadm -a $1 /dev/lofi/1
mount -F hsfs -o ro /dev/lofi/1 $2 && echo -e "\n\t I have mounted $1 under the 
folder $2\n\n"


and then give this script file executable permission form command prompt.

#  chmod +x ./mountiso.sh

and use this script to mount iso images...


For example lets say you have an iso image called "/opt/testfile1.iso" and you 
want to mount it under /testfilecontents

Than use the script as follows :

#  ./mountiso.sh   /opt/testfile1.iso /testfilecontents


and you are done, you will have all the contents of the iso visible under 
/testfilecontents folder.


Best Regards,

-- Chandan Maddanna
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to