<?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>Sat, 21 Nov 2009 18:18:34 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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-15681</link>
		<dc:creator>FMan</dc:creator>
		<pubDate>Fri, 16 Oct 2009 17:52:39 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-15681</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>
	<item>
		<title>By: fishup2008</title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-12494</link>
		<dc:creator>fishup2008</dc:creator>
		<pubDate>Mon, 15 Jun 2009 04:12:04 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12494</guid>
		<description>If you want burn dvd to iso image file or create an iso image from dvd on mac,I share you below website:&lt;br&gt;&lt;a href=&quot;http://www.xihalife.com/blogs/entries/17715.htm&quot; rel=&quot;nofollow&quot;&gt;http://www.xihalife.com/blogs/entries/17715.htm&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>If you want burn dvd to iso image file or create an iso image from dvd on mac,I share you below website:<br /><a href="http://www.xihalife.com/blogs/entries/17715.htm" rel="nofollow">http://www.xihalife.com/blogs/entries/17715.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-2654</link>
		<dc:creator></dc:creator>
		<pubDate>Mon, 16 Jan 2006 00:49:53 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2654</guid>
		<description>Is it possible to mount DVD.iso ?

When I run lofiadm -a /cdrom/cdroot/bo651.iso /cdrom/fakedirectory 

I get:

lofiadm: size of /cdrom/cdroot/bo651.iso is not a multiple of 512 :?:</description>
		<content:encoded><![CDATA[<p>Is it possible to mount DVD.iso ?</p>
<p>When I run lofiadm -a /cdrom/cdroot/bo651.iso /cdrom/fakedirectory </p>
<p>I get:</p>
<p>lofiadm: size of /cdrom/cdroot/bo651.iso is not a multiple of 512 :?:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SolarisSmurf</title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-2528</link>
		<dc:creator>SolarisSmurf</dc:creator>
		<pubDate>Fri, 30 Dec 2005 13:02:30 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2528</guid>
		<description>---------------- mount_iso ---------------------

#!/bin/sh
#
# Mount an ISO image using a loopback filesystem.
#

if [ -z &quot;$1&quot; -o -z &quot;$2&quot; ]; then
  echo &quot;$0 &lt;full_path_to_iso&gt; &lt;mount_point&gt;&quot;
  exit 0
fi

# Add the loopback block device.
# This will return the device path under /dev/lofi/.
printf &quot;Creating loopback device to $1 ... &quot;
LOFS_DEVICE=`lofiadm -a &quot;$1&quot;`
if [ 0 -ne $? ]; then
  exit 1
else
  echo &quot;${LOFS_DEVICE}&quot;
fi

# Now, mount the device to the mount point specified.
printf &quot;Mounting $2 on ${LOFS_DEVICE} ... &quot;
mount -F hsfs -o ro &quot;${LOFS_DEVICE}&quot; &quot;$2&quot;
if [ 0 -ne $? ]; then
  lofiadm -d ${LOFS_DEVICE}
  exit 1
else
  echo &quot;mounted&quot;
fi

-------------------- umount_iso ---------------------------

#!/bin/sh
#
# Unmount an ISO image mounted over the loopback file system.
#

if [ -z &quot;$1&quot; ]; then
  echo &quot;$0 &lt;mount_point&gt;&quot;
  exit 0
fi

# Find the loopback device in the list of mount points.
LOFS_DEVICE=`mount &#124; grep &quot;$1&quot; &#124; awk &#039;{print $3}&#039;`
if [ -z &quot;${LOFS_DEVICE}&quot; ]; then
  echo &quot;Unable to find loopback device for mount point $1&quot;
  exit 1
fi

# Unmount the mount point.
printf &quot;Unmounting $1 on ${LOFS_DEVICE} ... &quot;
umount $1
if [ 0 -ne $? ]; then
  exit 1
else
  echo &quot;unmounted&quot;
fi

# Delete the loopback block device.
printf &quot;Deleting loopback device ${LOFS_DEVICE} ... &quot;
lofiadm -d &quot;${LOFS_DEVICE}&quot;
if [ 0 -ne $? ]; then
  exit 1;
else
  echo &quot;deleted&quot;
fi

--------------------------------------

enjoy!!! w00h00!!!</description>
		<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;&#8212;&#8212;- mount_iso &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>#!/bin/sh<br />
#<br />
# Mount an ISO image using a loopback filesystem.<br />
#</p>
<p>if [ -z "$1" -o -z "$2" ]; then<br />
  echo &#8220;$0 &lt;full_path_to_iso&gt; &lt;mount_point&gt;&#8221;<br />
  exit 0<br />
fi</p>
<p># Add the loopback block device.<br />
# This will return the device path under /dev/lofi/.<br />
printf &#8220;Creating loopback device to $1 &#8230; &#8221;<br />
LOFS_DEVICE=`lofiadm -a &#8220;$1&#8243;`<br />
if [ 0 -ne $? ]; then<br />
  exit 1<br />
else<br />
  echo &#8220;${LOFS_DEVICE}&#8221;<br />
fi</p>
<p># Now, mount the device to the mount point specified.<br />
printf &#8220;Mounting $2 on ${LOFS_DEVICE} &#8230; &#8221;<br />
mount -F hsfs -o ro &#8220;${LOFS_DEVICE}&#8221; &#8220;$2&#8243;<br />
if [ 0 -ne $? ]; then<br />
  lofiadm -d ${LOFS_DEVICE}<br />
  exit 1<br />
else<br />
  echo &#8220;mounted&#8221;<br />
fi</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; umount_iso &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>#!/bin/sh<br />
#<br />
# Unmount an ISO image mounted over the loopback file system.<br />
#</p>
<p>if [ -z "$1" ]; then<br />
  echo &#8220;$0 &lt;mount_point&gt;&#8221;<br />
  exit 0<br />
fi</p>
<p># Find the loopback device in the list of mount points.<br />
LOFS_DEVICE=`mount | grep &#8220;$1&#8243; | awk &#8216;{print $3}&#8217;`<br />
if [ -z "${LOFS_DEVICE}" ]; then<br />
  echo &#8220;Unable to find loopback device for mount point $1&#8243;<br />
  exit 1<br />
fi</p>
<p># Unmount the mount point.<br />
printf &#8220;Unmounting $1 on ${LOFS_DEVICE} &#8230; &#8221;<br />
umount $1<br />
if [ 0 -ne $? ]; then<br />
  exit 1<br />
else<br />
  echo &#8220;unmounted&#8221;<br />
fi</p>
<p># Delete the loopback block device.<br />
printf &#8220;Deleting loopback device ${LOFS_DEVICE} &#8230; &#8221;<br />
lofiadm -d &#8220;${LOFS_DEVICE}&#8221;<br />
if [ 0 -ne $? ]; then<br />
  exit 1;<br />
else<br />
  echo &#8220;deleted&#8221;<br />
fi</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>enjoy!!! w00h00!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guest</title>
		<link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/comment-page-1/#comment-911</link>
		<dc:creator>guest</dc:creator>
		<pubDate>Mon, 25 Oct 2004 07:03:15 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-911</guid>
		<description>Way cool example.  This really helped me.</description>
		<content:encoded><![CDATA[<p>Way cool example.  This really helped me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
