<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Mount an ISO image on a Solaris filesystem with lofiadm | Solaris system administration | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Fri, 16 Oct 2009 15:52:39 -0000</lastBuildDate><item><title>Re: Mount an ISO image on a Solaris filesystem with lofiadm | Solaris system administration | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/#comment-20227681</link><description>How about how to place this in /etc/vfstab</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cnn-474564be7dc711a57dc361103c</dc:creator><pubDate>Fri, 16 Oct 2009 15:52:39 -0000</pubDate></item><item><title>Re: Mount an ISO image on a Solaris filesystem with lofiadm | Solaris system administration | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/#comment-2767143</link><description>Is it possible to mount DVD.iso ?&lt;br&gt;&lt;br&gt;When I run lofiadm -a /cdrom/cdroot/bo651.iso /cdrom/fakedirectory &lt;br&gt;&lt;br&gt;I get:&lt;br&gt;&lt;br&gt;lofiadm: size of /cdrom/cdroot/bo651.iso is not a multiple of 512 :?:</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 15 Jan 2006 19:49:53 -0000</pubDate></item><item><title>Re: Mount an ISO image on a Solaris filesystem with lofiadm | Solaris system administration | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/#comment-2767142</link><description>---------------- mount_iso ---------------------&lt;br&gt;&lt;br&gt;#!/bin/sh&lt;br&gt;#&lt;br&gt;# Mount an ISO image using a loopback filesystem.&lt;br&gt;#&lt;br&gt;&lt;br&gt;if [ -z "$1" -o -z "$2" ]; then&lt;br&gt;  echo "$0 &amp;lt;full_path_to_iso&amp;gt; &amp;lt;mount_point&amp;gt;"&lt;br&gt;  exit 0&lt;br&gt;fi&lt;br&gt;&lt;br&gt;# Add the loopback block device.&lt;br&gt;# This will return the device path under /dev/lofi/.&lt;br&gt;printf "Creating loopback device to $1 ... "&lt;br&gt;LOFS_DEVICE=`lofiadm -a "$1"`&lt;br&gt;if [ 0 -ne $? ]; then&lt;br&gt;  exit 1&lt;br&gt;else&lt;br&gt;  echo "${LOFS_DEVICE}"&lt;br&gt;fi&lt;br&gt;&lt;br&gt;# Now, mount the device to the mount point specified.&lt;br&gt;printf "Mounting $2 on ${LOFS_DEVICE} ... "&lt;br&gt;mount -F hsfs -o ro "${LOFS_DEVICE}" "$2"&lt;br&gt;if [ 0 -ne $? ]; then&lt;br&gt;  lofiadm -d ${LOFS_DEVICE}&lt;br&gt;  exit 1&lt;br&gt;else&lt;br&gt;  echo "mounted"&lt;br&gt;fi&lt;br&gt;&lt;br&gt;-------------------- umount_iso ---------------------------&lt;br&gt;&lt;br&gt;#!/bin/sh&lt;br&gt;#&lt;br&gt;# Unmount an ISO image mounted over the loopback file system.&lt;br&gt;#&lt;br&gt;&lt;br&gt;if [ -z "$1" ]; then&lt;br&gt;  echo "$0 &amp;lt;mount_point&amp;gt;"&lt;br&gt;  exit 0&lt;br&gt;fi&lt;br&gt;&lt;br&gt;# Find the loopback device in the list of mount points.&lt;br&gt;LOFS_DEVICE=`mount | grep "$1" | awk '{print $3}'`&lt;br&gt;if [ -z "${LOFS_DEVICE}" ]; then&lt;br&gt;  echo "Unable to find loopback device for mount point $1"&lt;br&gt;  exit 1&lt;br&gt;fi&lt;br&gt;&lt;br&gt;# Unmount the mount point.&lt;br&gt;printf "Unmounting $1 on ${LOFS_DEVICE} ... "&lt;br&gt;umount $1&lt;br&gt;if [ 0 -ne $? ]; then&lt;br&gt;  exit 1&lt;br&gt;else&lt;br&gt;  echo "unmounted"&lt;br&gt;fi&lt;br&gt;&lt;br&gt;# Delete the loopback block device.&lt;br&gt;printf "Deleting loopback device ${LOFS_DEVICE} ... "&lt;br&gt;lofiadm -d "${LOFS_DEVICE}"&lt;br&gt;if [ 0 -ne $? ]; then&lt;br&gt;  exit 1;&lt;br&gt;else&lt;br&gt;  echo "deleted"&lt;br&gt;fi&lt;br&gt;&lt;br&gt;--------------------------------------&lt;br&gt;&lt;br&gt;enjoy!!! w00h00!!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SolarisSmurf</dc:creator><pubDate>Fri, 30 Dec 2005 08:02:30 -0000</pubDate></item><item><title>Re: Mount an ISO image on a Solaris filesystem with lofiadm | Solaris system administration | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/218/mount-an-iso-image-on-a-solaris-filesystem-with-lofiadm/#comment-2767141</link><description>Way cool example.  This really helped me.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">guest</dc:creator><pubDate>Mon, 25 Oct 2004 03:03:15 -0000</pubDate></item></channel></rss>