<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pario TechnoBlob &#187; mount</title>
	<atom:link href="http://pario.no/tag/mount/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Wed, 14 Jul 2010 12:12:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mount a RAID Reconstructor disk image in linux</title>
		<link>http://pario.no/2009/01/19/mount-a-disk-image/</link>
		<comments>http://pario.no/2009/01/19/mount-a-disk-image/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 11:52:12 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[offset]]></category>
		<category><![CDATA[RAID Reconstructor]]></category>

		<guid isPermaLink="false">http://pario.no/?p=894</guid>
		<description><![CDATA[This post came to life because I had gotten a image file of a 120GB linux ext2 RAID partition that I couldn&#8217;t access using Windows software. The partition had been rescued by RAID Reconstructor, a Windows software that can rebuild RAID arrays by combining the disks from the RAID and store it as one image [...]]]></description>
			<content:encoded><![CDATA[<p>This post came to life because I had gotten a image file of a 120GB linux ext2 RAID partition that I couldn&#8217;t access using Windows software. The partition had been rescued by <a href="http://www.runtime.org/raid.htm">RAID Reconstructor</a>, a Windows software that can rebuild RAID arrays by combining the disks from the RAID and store it as one image file.</p>
<p>The solution was to use linux and try to mount it as a loop filesystem. My assumption was that the partition itself had an unknown offset, so I used this script to search and mount the partition. The script tries to mount the partition within the first 20000 blocks. I assume the block size is 512 bytes and I already know that the partition is formatted as ext2.</p>
<pre>
for ((i=0 ; $i < 20000 ; i=$i + 1)) ; do
    mount -t ext2 -o loop,offset=$(($i * 512)) diskimage.img /mnt/point &#038;&#038; break
done
</pre>
<p>If it succeeds you can issue the mount command to get the offset value to the mounted partition</p>
<pre>
# mount | grep diskimage

/dev/loop0 on /mnt/point type ext2 (rw,offset=32256)
</pre>
<p>In my case the offset was 32256.</p>
<p>This script can also be used to mount a partition from a backup of your filesystem.</p>
<p><strong>Example</strong><br />
This is my example disk I'm going to create an image of</p>
<pre>
# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          14      112423+  83  Linux
/dev/hda2              15          96      658665   83  Linux
/dev/hda3              97        3394    26491185   83  Linux
/dev/hda4            3395        9729    50885887+   f  W95 Ext'd (LBA)
/dev/hda5            3395        7218    30716248+  83  Linux
/dev/hda6            7219        8750    12305758+  83  Linux
/dev/hda7            8751        9533     6289416   83  Linux
/dev/hda8            9534        9729     1574338+  83  Linux
</pre>
<p>Create a backup image of your entire disk</p>
<pre>
# dd if=/dev/hda of=imagefile.img</pre>
<p>To mount one of these partitions as a loop filesystem you can issue a mount command and tell it the right offset. Use the script above if you don't know the offset, it will take the guesswork for you and mount the partition.</p>
<p>Example of mounting /dev/hda3 if the offset is known</p>
<pre>
# mount -t ext3 -o loop,offset=49664 /dev/hda3 /mnt/point</pre>
<p>Determining the offset is easy when you know the disk geometry have access to the file table.<br />
In this case the hda3 partition has an offset of 512 bytes * 96 blocks = 49664.</p>
<p><strong>EDIT</strong><br />
This post could have been avoided if I had known about the linux tool <a href="http://www.cgsecurity.org/wiki/TestDisk">TestDisk</a>. testDisk is a powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). It could also be used as a forensic tool.</p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.runtime.org\/raid.htm","http:\/\/www.cgsecurity.org\/wiki\/TestDisk"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMDEvMTkvbW91bnQtYS1kaXNrLWltYWdlLzx3cHRiPk1vdW50IGEgUkFJRCBSZWNvbnN0cnVjdG9yIGRpc2sgaW1hZ2UgaW4gbGludXg8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/01/19/mount-a-disk-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting remote filesystems using SSH and Debian</title>
		<link>http://pario.no/2008/02/20/mounting-remote-filesystems-using-ssh-and-debian/</link>
		<comments>http://pario.no/2008/02/20/mounting-remote-filesystems-using-ssh-and-debian/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 20:50:40 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Etch]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://pario.no/2008/02/19/mounting-remote-filesystems-using-ssh-and-debian/</guid>
		<description><![CDATA[This post describes how to mount a remote filesystem through SSH using the shfs kernel module on a Debian Etch server. By doing this I can access the remote filesystem as if it was a local filesystem and also use my local tools and software. This is a short description of how I made a [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes how to mount a remote filesystem through SSH using the shfs kernel module on a Debian Etch server. By doing this I can access the remote filesystem as if it was a local filesystem and also use my local tools and software.<br />
This is a short description of how I made a remote filesystem accessible on my private server.</p>
<p>Download the needed software</p>
<pre>
# apt-get install shfs-source shfs-utils module-assistant</pre>
<p>This step might not be needed on your system, but I didn&#8217;t have the needed software to build the kernel module</p>
<pre>
# module-assistant prepare</pre>
<p>Use the module assistant to build the kernel module to match your local system (I use a 2.6 kernel but this whould work on a 2.4 kernel also)</p>
<pre>
module-assistant build shfs</pre>
<p>Now you can install it</p>
<pre>
# module-assistant install shfs
Selecting previously deselected package shfs-module-2.6.18-5-686.
(Reading database ... 78212 files and directories currently installed.)
Unpacking shfs-module-2.6.18-5-686 (from .../shfs-module-2.6.18-5-686_0.35-6.2+2.6.18.dfsg.1-17_i386.deb) ...
Setting up shfs-module-2.6.18-5-686 (0.35-6.2+2.6.18.dfsg.1-17) ...</pre>
<p>You might see some error messages but those are mostly harmless :) and can be ignored.<br />
Now we can try to mount the remote filesystem</p>
<pre>
# mkdir /export/remotefs
# shfsmount user@remotesystem.com /export/remotefs
Password:</pre>
<p>The remote filesystem should now be available after typing your password.</p>
<pre>
# cd /export/remotefs
# ls</pre>
<p>You will now see all your files in the remote filesystem as if they were on your local machine.<br />
To unmount your filesystem</p>
<pre>
# cd /
# umount /export/remotefs</pre>
<p>This post could have been extended to use passwordless</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDIvMjAvbW91bnRpbmctcmVtb3RlLWZpbGVzeXN0ZW1zLXVzaW5nLXNzaC1hbmQtZGViaWFuLzx3cHRiPk1vdW50aW5nIHJlbW90ZSBmaWxlc3lzdGVtcyB1c2luZyBTU0ggYW5kIERlYmlhbjx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/02/20/mounting-remote-filesystems-using-ssh-and-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making /tmp non-executable</title>
		<link>http://pario.no/2007/10/04/making-tmp-non-executable/</link>
		<comments>http://pario.no/2007/10/04/making-tmp-non-executable/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 06:10:27 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://pario.no/2007/10/04/making-tmp-non-executable/</guid>
		<description><![CDATA[Many simple exploits that are used against machines, (via vulnerable PHP applications or local users, etc), rely upon being able to execute commands in /tmp. If this is a seperate partition or file system you can gain some protection by marking it non-executable. The common problem with this is that apt-get fails to work with [...]]]></description>
			<content:encoded><![CDATA[<p>Many simple exploits that are used against machines, (via vulnerable PHP applications or local users, etc), rely upon being able to execute commands in /tmp. If this is a seperate partition or file system you can gain some protection by marking it non-executable. The common problem with this is that apt-get fails to work with such a setup.</p>
<p>When you mount a partition there are many flags that can be used, two interesting ones are:</p>
<pre>noexec
nosetuid</pre>
<p>(A full list can be read as part of <tt>man mount</tt>).</p>
<p>The two flags are explained fully in the man page for mount, but briefly:</p>
<ul>
<li>noexec
<ul>
<li>Do not allow execution of any binaries on the mounted file system.</li>
</ul>
</li>
<li>nosuid
<ul>
<li>Do not allow set-user-identifier or  set-group-identifier bits to take effect.</li>
</ul>
</li>
</ul>
<p>Mounting filesystems with these flags set raises the bar a little, but it <em>doesn&#8217;t stop</em> files from being   executed.  The Linux linker and loader will permit binaries to be run:</p>
<pre># Make /tmp non-executable
root@earth:~# mount -o remount,noexec /tmp

# Copy an executable into it
root@earth:~# cp /bin/ls /tmp
root@earth:~# chmod 755 /tmp/ls

# Test it - the execution should fail.
root@earth:~# /tmp/ls
bash: /tmp/ls: Permission denied

# But .. what's this?  It still runs?
root@earth:~# /lib/ld-linux.so.2 /tmp/ls
Mail  public_html  

# cleanup
root@earth:~# rm /tmp/ls
root@earth:~# mount -o remount,exec /tmp</pre>
<p>With that in mind you might wonder what the point is?  Well it foils any simplistic attack that relies upon   putting a script in /tmp and running it.  If they&#8217;ve got shell access they can probably figure it out, but an   automated tool would be foiled &#8211; for the moment.</p>
<p>To make your system have a non-executable <tt>/tmp</tt> partition you must edit the way that it is mounted in the   file <tt>/etc/fstab</tt>.  Find the line that contains <tt>/tmp</tt> and change the <tt>defaults</tt> to read   <tt>nosuid,noexec</tt> instead.</p>
<p>For example this is my updated <tt>/etc/fstab</tt> file:</p>
<pre>/dev/sda3       /tmp              ext3  noexec,nosuid           0       2</pre>
<p>This will take effect the next time you mount the filesystem, you can do this now with:</p>
<pre>mount -o remount /tmp</pre>
<p>Very if it by running:</p>
<pre>root@earth:/tmp# mount |grep /tmp
/dev/sda3 on /tmp type ext3 (rw,noexec,nosuid)</pre>
<p>The output line should contain the two words &#8216;noexec,nosuid&#8217; in it.  If this is in place then you&#8217;re covered.</p>
<p>The only problem now is that when <tt>apt-get</tt> upgrades your system it will sometimes place scripts inside   the temp directory which will now not be executable.</p>
<p>The fix for this is to temporarily make the temporary directory executable before running <tt>apt-get</tt> and   then remove the execution bits afterwards.  This would be a troublesome thing to remember doing ourselves &#8211; but   thankfully we can set it up to be automatic.</p>
<p>Add the following to the file <tt>/etc/apt/apt.conf</tt>:</p>
<pre>DPkg::Pre-Install-Pkgs {"mount -o remount,exec /tmp";};
DPkg::Post-Invoke {"mount -o remount /tmp";};</pre>
<p>In Debian Etch (4.0) the file is named /etc/apt/apt.conf.d/70debconf</p>
<p>This contains two lines, one running before any packing installation and one afterwards.  They merely execute the   commands required to add and remove the execute permissions on the <tt>/tmp</tt></p>
<p>Source: <a href="http://www.debian-administration.org/articles/57" target="_blank">http://www.debian-administration.org/articles/57</a></p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.debian-administration.org\/articles\/57"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMTAvMDQvbWFraW5nLXRtcC1ub24tZXhlY3V0YWJsZS88d3B0Yj5NYWtpbmcgL3RtcCBub24tZXhlY3V0YWJsZTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/10/04/making-tmp-non-executable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to unmount Busy Devices</title>
		<link>http://pario.no/2007/05/09/script-to-unmount-busy-devices/</link>
		<comments>http://pario.no/2007/05/09/script-to-unmount-busy-devices/#comments</comments>
		<pubDate>Wed, 09 May 2007 07:19:58 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[fuser]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[wc]]></category>
		<category><![CDATA[xinetd]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/05/09/script-to-unmount-busy-devices/</guid>
		<description><![CDATA[First the script tries to umount the drive normally. If that fails, it tries to restart famd which is the most common problem. If that fails it tries to restart xinetd. If that fails it uses the command fuser -ki which asks you if you want to kill each process that&#8217;s using that folder. Be [...]]]></description>
			<content:encoded><![CDATA[<p>First the script tries to umount the drive normally. If that fails, it tries to restart famd which is the most common problem. If that fails it tries to restart xinetd. If that fails it uses the command fuser -ki <your> which asks you if you want to kill each process that&#8217;s using that folder. Be careful with this &#8211; you should know what each process is before you kill it. If that fails, probably because you didn&#8217;t kill all the processes, it asks you if you want to lazily unmount the volume, which removes the drive even though processes are still using it.<br />
</your></p>
<pre>
#!/bin/bash

if [ `whoami` != "root" ]; then
      echo "You must run this as root"
      exit
fi

# testing args
if [ $# -ne 1 ]; then
  echo "usage : $0 <device_or_directory_to_unmount>"
  exit
fi

dir=$1

# first try unmounting it without doing anything special
testumount=`umount $dir 2&gt;&amp;1`
if [ `echo $testumount | grep "not mounted" | wc -l` -gt 0 ]; then
      echo "$1 isn't mounted, exiting"
      exit
fi
if [ `echo $testumount | grep "not found" | wc -l` -gt 0 ]; then
  echo "$1 does not exists, exiting"
  exit
fi

if [ `echo $testumount | grep busy | wc -l` -gt 0 ]; then
       echo "Having trouble, checking famd..."
else
     echo "unmounted $dir without any trouble..."
     exit
fi

# check famd
if [ `ps -e |grep famd|wc -l` -gt 0 ]; then
      /etc/init.d/famd restart
      # try unmounting again
      if [ `umount $dir 2&gt;&amp;1 | wc -l` -gt 0 ]; then
            echo "I tried restarting famd, but that didn't work. checking xinetd"
      else
            echo "Unmounted $dir by restarting famd"
            exit
      fi
else
      echo "famd isn't running so it couldn't be that.."
fi

# check xinetd
if [ `ps -e | grep xinetd | wc -l` -gt 0 ]; then
      /etc/init.d/xinetd stop
      # try unmounting again
      if [ `umount $dir 2&gt;&amp;1 | wc -l` -lt 1 ]; then
            /etc/init.d/xinetd start
            echo "Unmounted $1 by restarting xinetd"
            exit
      fi
      /etc/init.d/xinetd start
      echo "I tried stopping xinetd, but that didn't work."

else
      echo "xinetd isn't running so it couldn't be that.."
fi

echo
echo "I'm going to list processes that are using the folder you are
trying to umount. Answer whether you'd like to kill them or not.
You should look up each process before you answer. use the
following command in a separate shell:"
echo
echo "	ps -e | grep
<pid>"
echo
echo "where </pid>
<pid> is the number of the process."
echo
fuser -ki $dir
echo
if [ `echo $testumount | grep busy | wc -l` -gt 0 ]; then
      echo "OK, this is the last resort. Do you want to umount the volume using "
      echo "the -l option? According to the umount man page -l means:"
      echo
      echo "	Lazy unmount. Detach the filesystem from the filesystem
      hierarchy now, and cleanup all references to the filesystem as
      soon as	it is not busy anymore.  (Requires kernel 2.4.11 or later.)"
      echo
      echo "Use -l option? (y\n)"
      read yn
      if [ $yn == "y" ]; then
            umount -l $dir
      else
            echo "OK. Sorry I couldn't help"
      fi
else
      echo "You're all good :)"
fi

exit
</pid></device_or_directory_to_unmount></pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMDkvc2NyaXB0LXRvLXVubW91bnQtYnVzeS1kZXZpY2VzLzx3cHRiPlNjcmlwdCB0byB1bm1vdW50IEJ1c3kgRGV2aWNlczx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/05/09/script-to-unmount-busy-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting ISO Files</title>
		<link>http://pario.no/2007/05/07/mounting-iso-files/</link>
		<comments>http://pario.no/2007/05/07/mounting-iso-files/#comments</comments>
		<pubDate>Mon, 07 May 2007 11:26:58 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[modprobe]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/05/07/mount-neros-nrg-files/</guid>
		<description><![CDATA[ISO images are files containing the data of a CD (almost bit per bit). They can be mounted, using the loopback device. ISO images can only be mounted read-only (use mkisofs to create images). Kernel Requirements To mount ISO images you need the following in your kernel(as module or builtin): loop-back filesystem support (under Device [...]]]></description>
			<content:encoded><![CDATA[<p>ISO images are files containing the data of a CD (almost bit per bit). They can be mounted, using the loopback device. ISO images can only be mounted read-only (use mkisofs to create images).</p>
<p><strong>Kernel Requirements</strong></p>
<p>To mount ISO images you need the following in your kernel(as module or builtin):</p>
<ul>
<li>loop-back filesystem support (under Device Drivers &#8211; Block devices in kernel 2.6)</li>
<li>ISO 9660 CDROM file system support (under File systems &#8211; CD-ROM/DVD Filesystems in kernel 2.6)</li>
</ul>
<p>You also might want this for mounting non-linux ISO images:</p>
<ul>
<li>Microsoft Joliet CDROM extensions (under File systems &#8211; CD-ROM/DVD Filesystems in kernel 2.6)</li>
</ul>
<p>Linux Kernel Configuration: Joliet CDROM Extensions(2.6)</p>
<p>File Fystems &#8211;&gt; CD-ROM/DVD Filesystems<br />
&lt; *&gt; ISO 9660 CDROM file system support<br />
[*] Microsoft Joliet CDROM extensions</p>
<p><strong>Mounting</strong></p>
<p>To mount the ISO images, you&#8217;ll need to have root access. Login as root or use sudo, and execute:</p>
<pre>
mount -t iso9660 -o loop,user image.iso /wheretomount</pre>
<p>Drop ,user if you don&#8217;t want users to access the ISO files.</p>
<p>Note: If this fails with an error concerning <strong>/dev/loop</strong> then as root issue the command:</p>
<pre>
# modprobe loop</pre>
<p>Alternatively you may want to add loop to the list of modules that you autoload at boot:</p>
<pre>
# nano -w /etc/modules.autoload.d/kernel-2.6</pre>
<p>and add loop to the bottom of your list of modules.</p>
<p><strong>Hint 1:</strong> You can use <strong>cdemu</strong> to mount BIN images (It&#8217;s in portage). You can also use bin2iso to convert them to ISO (also in Portage).</p>
<p><strong>Hint 2:</strong> You can use <strong>mdf2iso</strong> to convert MDF/MDS files to ISO (It&#8217;s in portage). Or you can mount a .mdf file with:</p>
<pre>
mount image.mdf /wheretomount -o loop=/dev/loop0</pre>
<p><strong><br />
Hint 3:</strong> You can use <strong>nrg2iso</strong> to convert Nero&#8217;s .nrg files to ISO (It&#8217;s in portage). Or you can mount a .nrg file with:</p>
<pre>
mount -o loop,offset=307200 image.nrg /wheretomount</pre>
<p><strong>Hint 4:</strong> You can use <strong>ccd2iso</strong> to convert Clone CD&#8217;s <strong>.img</strong> files to <strong>ISO</strong> (It&#8217;s in portage).</p>
<p><strong>SVCD and VCDs</strong></p>
<p>SVCD and VCD ISO files can be played directly using <strong>mplayer</strong> or converted using <strong>mencoder</strong>.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDUvMDcvbW91bnRpbmctaXNvLWZpbGVzLzx3cHRiPk1vdW50aW5nIElTTyBGaWxlczx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/05/07/mounting-iso-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
