<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mount an ISO image on a Solaris filesystem with lofiadm</title>
	<atom:link href="http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lucien Hercaud</title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-48657</link>
		<dc:creator>Lucien Hercaud</dc:creator>
		<pubDate>Wed, 01 Jun 2011 12:54:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48657</guid>
		<description>Hmmm ... the lines did not wrap up

Here it is again :

mkdir -p /etc/fs/isofilecd /etc/fs/isofile# Create the files &quot;mount&quot; and &quot;umount&quot; with the contents below### mount:#!/bin/bashif [[ X&quot;$1&quot; = X ]]thenecho isofile usage: mount -F isofile file.iso directoryexit 32else_iso=$1shiftfiif [[ X&quot;$1&quot; = X ]]thenecho isofile usage: mount -F isofile file.iso directoryexit 32else_dir=$1shiftfi[[ ! -r &quot;$_iso&quot; ]] &amp;[[ ! -d &quot;$_dir&quot; ]] &amp;exec /usr/sbin/mount -F hsfs $(/usr/sbin/lofiadm -a $_iso) $_dir### umount:#!/bin/bashif [[ X&quot;$1&quot; = X ]]thenecho isofile usage: umount &#039;{special &#124; mount-point &#124; isofile}&#039;exit 32fiif [[ -d $1 ]]then_lofi=$(/usr/sbin/mount &#124; nawk -v _d=$1 &#039;{ if ($1==_d) print $3}&#039;)/etc/fs/isofile/_umount $1 &amp;&amp; /usr/sbin/lofiadm -d $_lofiexit $?elif [[ -L $1 ]]thencase $1 in/dev/lofi/*)_lofi=$1_dir=$(/usr/sbin/mount &#124; nawk -v _l=$1 &#039;{ if ($3==_l) print $1}&#039;)/etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1;;*)/etc/fs/isofile/_umount $1esacelif [[ -f $1 ]] &amp;&amp; [[ -s $1 ]]then_lofi=$(/usr/sbin/lofiadm $1 2&gt;/dev/null)[[ X&quot;$_lofi&quot; = X ]] &amp;_dir=$(/usr/sbin/mount &#124; nawk -v _l=$_lofi &#039;{ if ($3==_l) print $1}&#039;)/etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1elseecho isofile ERROR: No such file, mount-point or lofi device $1exit 33fi### compile the file below as: &quot;gcc -m32 -o _umount _umount.c&quot;### _umount.c:#include #include main(int ac, char *av[]){int r;r=umount(av[1]);if (-1 ==r) {perror(&quot;umount&quot;);exit(33);}exit(0);}### Then use it as :# mount -F isofile /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso /mnt# /etc/fs/isofile/umount /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso### Can also be added to /etc/vfstab as :/jumpstart/isos/sol-10-u8-ga-x86-dvd.iso - /mnt isofile - yes -### To totally unmount and free the lofi device, please always care to use the &quot;/etc/fs/isofile/umount&quot; command </description>
		<content:encoded><![CDATA[<p>Hmmm &#8230; the lines did not wrap up</p>
<p>Here it is again :</p>
<p>mkdir -p /etc/fs/isofilecd /etc/fs/isofile# Create the files &#8220;mount&#8221; and &#8220;umount&#8221; with the contents below### mount:#!/bin/bashif [[ X"$1" = X ]]thenecho isofile usage: mount -F isofile file.iso directoryexit 32else_iso=$1shiftfiif [[ X"$1" = X ]]thenecho isofile usage: mount -F isofile file.iso directoryexit 32else_dir=$1shiftfi[[ ! -r "$_iso" ]] &amp;[[ ! -d "$_dir" ]] &amp;exec /usr/sbin/mount -F hsfs $(/usr/sbin/lofiadm -a $_iso) $_dir### umount:#!/bin/bashif [[ X"$1" = X ]]thenecho isofile usage: umount &#8216;{special | mount-point | isofile}&#8217;exit 32fiif [[ -d $1 ]]then_lofi=$(/usr/sbin/mount | nawk -v _d=$1 &#8216;{ if ($1==_d) print $3}&#8217;)/etc/fs/isofile/_umount $1 &amp;&amp; /usr/sbin/lofiadm -d $_lofiexit $?elif [[ -L $1 ]]thencase $1 in/dev/lofi/*)_lofi=$1_dir=$(/usr/sbin/mount | nawk -v _l=$1 &#8216;{ if ($3==_l) print $1}&#8217;)/etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1;;*)/etc/fs/isofile/_umount $1esacelif [[ -f $1 ]] &amp;&amp; [[ -s $1 ]]then_lofi=$(/usr/sbin/lofiadm $1 2&gt;/dev/null)[[ X"$_lofi" = X ]] &amp;_dir=$(/usr/sbin/mount | nawk -v _l=$_lofi &#8216;{ if ($3==_l) print $1}&#8217;)/etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1elseecho isofile ERROR: No such file, mount-point or lofi device $1exit 33fi### compile the file below as: &#8220;gcc -m32 -o _umount _umount.c&#8221;### _umount.c:#include #include main(int ac, char *av[]){int r;r=umount(av[1]);if (-1 ==r) {perror(&#8220;umount&#8221;);exit(33);}exit(0);}### Then use it as :# mount -F isofile /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso /mnt# /etc/fs/isofile/umount /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso### Can also be added to /etc/vfstab as :/jumpstart/isos/sol-10-u8-ga-x86-dvd.iso &#8211; /mnt isofile &#8211; yes -### To totally unmount and free the lofi device, please always care to use the &#8220;/etc/fs/isofile/umount&#8221; command</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucien Hercaud</title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-48656</link>
		<dc:creator>Lucien Hercaud</dc:creator>
		<pubDate>Wed, 01 Jun 2011 12:51:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48656</guid>
		<description>mkdir -p /etc/fs/isofile
cd /etc/fs/isofile
# Create the files &quot;mount&quot; and umount with contents below
# mount
#!/bin/bashif [[ X&quot;$1&quot; = X ]]then        echo isofile usage: mount -F isofile file.iso directory        exit 32else        _iso=$1        shiftfiif [[ X&quot;$1&quot; = X ]]then        echo isofile usage: mount -F isofile file.iso directory        exit 32else        _dir=$1        shiftfi
[[ ! -r &quot;$_iso&quot; ]] &amp;[[ ! -d &quot;$_dir&quot; ]] &amp;exec /usr/sbin/mount -F hsfs $(/usr/sbin/lofiadm -a $_iso) $_dir# umount
#!/bin/bashif [[ X&quot;$1&quot; = X ]]then        echo isofile usage: umount &#039;{special &#124; mount-point &#124; isofile}&#039;        exit 32fi
if [[ -d $1 ]]then        _lofi=$(/usr/sbin/mount &#124; nawk -v _d=$1 &#039;{ if ($1==_d) print $3}&#039;)        /etc/fs/isofile/_umount $1 &amp;&amp; /usr/sbin/lofiadm -d $_lofi        exit $?elif [[ -L $1 ]]then        case $1 in        /dev/lofi/*)                _lofi=$1                _dir=$(/usr/sbin/mount &#124; nawk -v _l=$1 &#039;{ if ($3==_l) print $1}&#039;)                /etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1                ;;        *)                /etc/fs/isofile/_umount $1        esacelif [[ -f $1 ]] &amp;&amp; [[ -s $1 ]]then        _lofi=$(/usr/sbin/lofiadm $1 2&gt;/dev/null)        [[ X&quot;$_lofi&quot; = X ]] &amp;        _dir=$(/usr/sbin/mount &#124; nawk -v _l=$_lofi &#039;{ if ($3==_l) print $1}&#039;)        /etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1else        echo isofile ERROR: No such file, mount-point or lofi device $1        exit 33fi# compile the file below as: &quot;gcc -m32 -o _umount _umount.c&quot;
#include #include main(int ac, char *av[]){        int r;        r=umount(av[1]);        if (-1 ==r) {                perror(&quot;umount&quot;);                exit(33);        }        exit(0);}
# Then use it as :
# mount -F isofile /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso /mnt
# /etc/fs/isofile/umount /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso
</description>
		<content:encoded><![CDATA[<p>mkdir -p /etc/fs/isofile<br />
cd /etc/fs/isofile<br />
# Create the files &#8220;mount&#8221; and umount with contents below<br />
# mount<br />
#!/bin/bashif [[ X"$1" = X ]]then        echo isofile usage: mount -F isofile file.iso directory        exit 32else        _iso=$1        shiftfiif [[ X"$1" = X ]]then        echo isofile usage: mount -F isofile file.iso directory        exit 32else        _dir=$1        shiftfi<br />
[[ ! -r "$_iso" ]] &amp;[[ ! -d "$_dir" ]] &amp;exec /usr/sbin/mount -F hsfs $(/usr/sbin/lofiadm -a $_iso) $_dir# umount<br />
#!/bin/bashif [[ X"$1" = X ]]then        echo isofile usage: umount &#8216;{special | mount-point | isofile}&#8217;        exit 32fi<br />
if [[ -d $1 ]]then        _lofi=$(/usr/sbin/mount | nawk -v _d=$1 &#8216;{ if ($1==_d) print $3}&#8217;)        /etc/fs/isofile/_umount $1 &amp;&amp; /usr/sbin/lofiadm -d $_lofi        exit $?elif [[ -L $1 ]]then        case $1 in        /dev/lofi/*)                _lofi=$1                _dir=$(/usr/sbin/mount | nawk -v _l=$1 &#8216;{ if ($3==_l) print $1}&#8217;)                /etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1                ;;        *)                /etc/fs/isofile/_umount $1        esacelif [[ -f $1 ]] &amp;&amp; [[ -s $1 ]]then        _lofi=$(/usr/sbin/lofiadm $1 2&gt;/dev/null)        [[ X"$_lofi" = X ]] &amp;        _dir=$(/usr/sbin/mount | nawk -v _l=$_lofi &#8216;{ if ($3==_l) print $1}&#8217;)        /etc/fs/isofile/_umount $_dir &amp;&amp; /usr/sbin/lofiadm -d $1else        echo isofile ERROR: No such file, mount-point or lofi device $1        exit 33fi# compile the file below as: &#8221;gcc -m32 -o _umount _umount.c&#8221;<br />
#include #include main(int ac, char *av[]){        int r;        r=umount(av[1]);        if (-1 ==r) {                perror(&#8220;umount&#8221;);                exit(33);        }        exit(0);}<br />
# Then use it as :<br />
# mount -F isofile /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso /mnt<br />
# /etc/fs/isofile/umount /jumpstart/isos/sol-10-u9-ga-x86-dvd.iso</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-44458</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 04 Dec 2010 05:51:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44458</guid>
		<description>thank you</description>
		<content:encoded><![CDATA[<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FMan</title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-35134</link>
		<dc:creator>FMan</dc:creator>
		<pubDate>Fri, 16 Oct 2009 19:52:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-35134</guid>
		<description>How about how to place this in /etc/vfstab </description>
		<content:encoded><![CDATA[<p>How about how to place this in /etc/vfstab</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/11 queries in 0.691 seconds using memcached
Object Caching 311/315 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 10:36:03 -->
