<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>ctrl-zetta</title>
	
	<link>http://www.ctrl-zetta.com/wp</link>
	<description />
	<pubDate>Fri, 02 Jan 2009 17:32:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Ctrl-zetta" /><feedburner:info uri="ctrl-zetta" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>CD / DVD to iso</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/sQNXjXyLGb0/</link>
		<comments>http://www.ctrl-zetta.com/wp/2009/01/02/cd-dvd-to-iso/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 17:32:15 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Recortes]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=183</guid>
		<description><![CDATA[$ cat /dev/scd0 &#62; isoName.iso
Tags: Linux, Recortes]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ cat /dev/scd0 &gt; isoName.iso</div></li></ol></div></div>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>, <a href="http://www.ctrl-zetta.com/wp/category/recortes/" title="Browse for Recortes" rel="tag">Recortes</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2009/01/02/cd-dvd-to-iso/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2009/01/02/cd-dvd-to-iso/</feedburner:origLink></item>
		<item>
		<title>Mounting disk images on Linux loopback device</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/C46y0GpNxos/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/12/06/mounting-disk-images-on-linux-loopback-device/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 05:45:42 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Recortes]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[dd]]></category>

		<category><![CDATA[image]]></category>

		<category><![CDATA[iso]]></category>

		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=181</guid>
		<description><![CDATA[Disk space. There&#8217;s never enough. Whilst preping my Inspiron 3800 for its new 20GB Toshiba 4500 RPM disk I thought I&#8217;d play around some with disk imaging. Playing with partition images is boring, so let&#8217;s spice it up!
Obtaining a Disk Image

To start, you will want an exact image of a disk; Preferably one with filesystems [...]]]></description>
			<content:encoded><![CDATA[<p>Disk space. There&#8217;s never enough. Whilst preping my Inspir<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> 3800 for its new 20GB Toshiba 4500 RPM disk I thought I&#8217;d play around some with disk imaging. Playing with partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> images is boring, so let&#8217;s spice it up!</p>
<h2 style="font-size: 12.8px; line-height: 16.6667px;"><a id="obtaining_a_disk_image" style="font-size: 12.8px; line-height: 16.6667px;" name="obtaining_a_disk_image">Obtaining a Disk Image</a></h2>
<div class="level2" style="font-size: 8.53333px; line-height: 10.6667px;">
<p style="font-size: 8.53333px; line-height: 10.6667px;">To start, you will want an exact image of a disk; Preferably <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>e with filesystems you have support available for in your kernel, but any will do. As always, <strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">dd</div>
<p></strong> is your friend.</p>
<p style="font-size: 8.53333px; line-height: 10.6667px;">To obtain my disk image, I simply issued:</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> rachael:#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  dd if=/<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/hda of=/mnt/nebula/hda_dd.image</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 4757130+0 records in</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 4757130+0 records out</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">You can&#8217;t simply <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> a disk with the loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice, however. You need some additi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>al informati<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>. You will want to fetch a copy of the partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> table, including the all important <em style="font-size: 8.53333px; line-height: 10.6667px;">cylinder number</em> we will use later. Invoke the magic of fdisk:</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> rachael:/home/jas<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span>b#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  fdisk -l</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Disk /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/hda: 4871 MB, 4871301120 bytes</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 255 heads, 63 sectors/track, 592 cylinders</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Units = cylinders of 16065 * 512 = 8225280 bytes</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">    <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">Dev</span>ice Boot    Start       End    Blocks   Id  System</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/hda1   * 1       463   3719016    7  HP<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">FS</span>/NT<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">FS</span></span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/hda2   464       592   1036192+   5  Extended</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/hda5   464       479    128488+  82  Linux swap</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/hda6   480       592    907641   83  Linux</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Later, you can use this informati<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> to verifiy your image is sane.</p>
</div>
<h2 style="font-size: 12.8px; line-height: 16.6667px;"><a id="verifying_the_sanity_of_your_image" style="font-size: 12.8px; line-height: 16.6667px;" name="verifying_the_sanity_of_your_image">Verifying the Sanity of Your Image</a></h2>
<div class="level2" style="font-size: 8.53333px; line-height: 10.6667px;">
<p style="font-size: 8.53333px; line-height: 10.6667px;"><strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">fdisk</div>
<p></strong> is quite effective for this task, too. You will need the cylinder number you obtained earlier either from <strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">fdisk</div>
<p></strong>, as shown above, or via some other means. (The &#8216;C&#8217; <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">option</span> to fdisk is relatively recent. v2.11z has it; v2.11n that shipped with RedHat 7.3 does not. You can specify this from within <strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">fdisk</div>
<p></strong> by loading the image and using the e&#8217;x'pert mode and specifying the &#8216;c&#8217; <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">option</span> from there.)</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/home/jas<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span>b#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  fdisk -C 592 /nebula/hda_dd.image</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Command (m for help): p</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Disk /nebula/hda_dd.image: 0 MB, 0 bytes</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 255 heads, 63 sectors/track, 592 cylinders</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Units = cylinders of 16065 * 512 = 8225280 bytes</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">        <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">Dev</span>ice Boot    Start       End    Blocks   Id  System</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image1   * 1       463   3719016    7  HP<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">FS</span>/NT<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">FS</span></span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image2   464       592   1036192+   5  Extended</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image5   464       479    128488+  82  Linux swap</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image6   480       592    907641   83  Linux</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Looks familiar, no? If all went well, it should be identical to the image yanked from the original disk.</p>
</div>
<h2 style="font-size: 12.8px; line-height: 16.6667px;"><a id="accessing_specific_partitions_in_the_image" style="font-size: 12.8px; line-height: 16.6667px;" name="accessing_specific_partitions_in_the_image">Accessing Specific Partiti<span class="search_hit" style="font-size: 12.8px; line-height: 16.6667px;">on</span>s in the Image</a></h2>
<div class="level2" style="font-size: 8.53333px; line-height: 10.6667px;">
<p style="font-size: 8.53333px; line-height: 10.6667px;">Now, the fun begins. There are three ways to <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s from the image. You can simply use the stock kernel&#8217;s loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice, an enhanced loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice offered by NASA, or extract the partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> from the image and <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> that directly with the loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice. In all instances, the loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice is the final destinati<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>. The journey varies with each, however. Let&#8217;s look at the former most approach first.</p>
</div>
<h3 style="font-size: 11.9444px; line-height: 15.3333px;"><a id="mounting_with_a_specified_offset" style="font-size: 11.9444px; line-height: 15.3333px;" name="mounting_with_a_specified_offset"><span class="search_hit" style="font-size: 11.9444px; line-height: 15.3333px;">Mount</span>ing with a Specified of<span class="search_hit" style="font-size: 11.9444px; line-height: 15.3333px;">fs</span>et</a></h3>
<div class="level3" style="font-size: 8.53333px; line-height: 10.6667px;">
<p style="font-size: 8.53333px; line-height: 10.6667px;">The simplest method, you <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> the partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> of your choice from within the image. You will need to specify an of<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">fs</span>et for the loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice into the image file. You can obtain this number by running fdisk against the image to obtain the starting and ending sectors for each partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>. (Again, the -C <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">option</span> is <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>ly available in very recent versi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s of fdisk, like 2.11z.)</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/home/jas<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span>b#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  fdisk -l -u -C 592 /nebula/hda_dd.image</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Disk /nebula/hda_dd.image: 0 MB, 0 bytes</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 255 heads, 63 sectors/track, 592 cylinders, total 0 sectors</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Units = sectors of 1 * 512 = 512 bytes</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">        <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">Dev</span>ice Boot    Start       End    Blocks   Id  System</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image1   *63   7438094   3719016    7  HP<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">FS</span>/NT<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">FS</span></span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image2       7438095   9510479   1036192+   5  Extended</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image5       7438158   7695134    128488+  82  Linux swap</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /nebula/hda_dd.image6       7695198   9510479    907641   83  Linux</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">The of<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">fs</span>et must be specified in bytes, so now you must take the starting of<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">fs</span>et, in this instance 63, and multiply it by 512 bytes. From this we obtain 32256. (This assumes 63 sectors per track and 512 bytes per sector.) The file system <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">type</span> in this case is NT<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">FS</span>, so let us <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> this partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> from within the image using the usual loopback method.</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span> -o loop,of<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">fs</span>et=32256 \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   -t nt<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">fs</span> /nebula/hda_dd.image /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  ls /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> AUTOEXEC.BAT</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> boot.ini</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> C<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>FIG.SYS</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Corel</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Documents and Settings</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> IO.SYS</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> MSDOS.SYS</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> NTDETECT.COM</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> ntldr</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> PUTTY.RND</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Program Files</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> pagefile.sys</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> RECYCLER</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> System Volume Informati<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span></span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> WINNT</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">If you are using</p>
<div class="codecolorer-container text">util-linux</div>
<p>prior to versi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> 2.12b, specifying an of<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">fs</span>et that required more than 32-bits was not possible. If you have</p>
<div class="codecolorer-container text">util-linux</div>
<p>2.12b or newer, you can safely skip the next few secti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s. (You may still wish to extract individual partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s from your disk image using <strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">dd</div>
<p></strong> discussed at the end of this guide.)</p>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Attempting to <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> my ext3 partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> near the end of the disk with a 2.11 versi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> of</p>
<div class="codecolorer-container text">util-linux</div>
<p>yields (7695198 * 512 = 3939941376):</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span> -o loop,of<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">fs</span>et=3939941376 \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   -t ext3 /nebula/hda_dd.image /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span>: <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">wrong</span> <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">fs</span> <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">type</span>, <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">bad</span> <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">option</span>, <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">bad</span> <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">superblock</span> <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">loop0</span>,</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">        or too many <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span>ed file systems</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Fortunately, we aren&#8217;t d<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>e yet. The sec<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>d method utilizes a loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice designed to <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s within the image without an of<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">fs</span>et limitati<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>. In fact, no of<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">fs</span>et need be specified at all.</p>
</div>
<h3 style="font-size: 11.9444px; line-height: 15.3333px;"><a id="mounting_with_a_special_patch" style="font-size: 11.9444px; line-height: 15.3333px;" name="mounting_with_a_special_patch"><span class="search_hit" style="font-size: 11.9444px; line-height: 15.3333px;">Mount</span>ing with a Special Patch</a></h3>
<div class="level3" style="font-size: 8.53333px; line-height: 10.6667px;">
<p style="font-size: 8.53333px; line-height: 10.6667px;">
<div class="noteimportant" style="font-size: 8.53333px; line-height: 10.6667px;">As this was written back in 2004, I do not believe the NASA loopback patch is still around.</div>
<p style="font-size: 8.53333px; line-height: 10.6667px;">You will need to patch your kernel to use the enhanced loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice. This patch alters the way the loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice works. You will no l<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>ger be able to <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s via the loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice bey<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>d</p>
<div class="codecolorer-container text">/<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">dev</span>/<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">loop0</span></div>
<p>. If you use</p>
<div class="codecolorer-container text">/<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">dev</span>/loop[1-7]</div>
<p>this could be a show stopper for you; Check out the last method.</p>
<p style="font-size: 8.53333px; line-height: 10.6667px;">The patch is currently available against 2.4.20 and 2.4.21 prepatch 4. You will need to <a class="urlextern" style="font-size: 8.53333px; line-height: 10.6667px;" title="ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/patches" rel="nofollow" href="ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/patches">fetch</a> the patch from NASA HQ&#8217;s public <acronym style="font-size: 8.53333px; line-height: 10.6667px;" title="File Transfer Protocol">FTP</acronym> server. It&#8217;s the</p>
<div class="codecolorer-container text">enhanced_loop-x.x-linux-2.4.x-x<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">fs</span>.patch</div>
<p>file located there. You can also fetch the X<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">FS</span> patch for 2.4.21-pre4 and the 2.4.21-pre4 patch itself as of this writing. I used 2.4.21-pre4 with Alan Cox&#8217;s -ac7. For c<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>venience, a patched kernel ready for compiling is also available.</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src/linux-2.4.20#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  patch \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   -p1 &lt; ../enhanced_loop-0.2-linux-2.4.21-pre4-x<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">fs</span>.patch</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> patching file drivers/block/loop.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> patching file Makefile</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> Hunk #</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;"> 1 FAILED at 1.</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">D<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>&#8216;t worry about the</p>
<div class="codecolorer-container text">Makefile</div>
<p>reject; It&#8217;s just the</p>
<div class="codecolorer-container text">EXTRA_VERSI<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">ON</span></div>
<p>variable. (That&#8217;s because I used -ac7.)</p>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Now, recompile your kernel in the usual way (I use <em style="font-size: 8.53333px; line-height: 10.6667px;">Debian GNU/Linux</em>&#8217;s</p>
<div class="codecolorer-container text">make-kpkg</div>
<p>command) and make sure you enable the loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice if it isn&#8217;t already. When that task is complete, reboot with your shiny new kernel.</p>
<p style="font-size: 8.53333px; line-height: 10.6667px;">To accomodate the enhanced loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice, some new entries need to be created in</p>
<div class="codecolorer-container text">/<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">dev</span></div>
<p>. A script named create<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span> is available to handle that task for you, and it can be run at start up if you&#8217;re running <em style="font-size: 8.53333px; line-height: 10.6667px;"><span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span><span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">fs</span></em> to recreate the entries for you at boot. You can <a class="urlextern" style="font-size: 8.53333px; line-height: 10.6667px;" title="ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/" rel="nofollow" href="ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/">fetch the script</a> from NASA HQ. You may need to comment out the sourcing of the <em style="font-size: 8.53333px; line-height: 10.6667px;">RedHat</em> functi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s within the script if you aren&#8217;t <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> a <em style="font-size: 8.53333px; line-height: 10.6667px;">RedHat</em> based distributi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>, like <em style="font-size: 8.53333px; line-height: 10.6667px;">Debian</em>. By default the script will create enough entries in</p>
<div class="codecolorer-container text">/<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">dev</span></div>
<p>for a fifteen disks with up to fifteen partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s. You can adjust that to your requirements within the script. It will blow away any existing</p>
<div class="codecolorer-container text">/<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">dev</span></div>
<p>entries it has added if you change c<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>figurati<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s, so you need not tend to them yourself.</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  vi create<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span></span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  bash create<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span> start</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;"><span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">On</span>ce you&#8217;ve run the script, you should find a entries like the following in your</p>
<div class="codecolorer-container text">/<span class="search_hit" style="font-size: 7.67778px; line-height: 9.33333px;">dev</span></div>
<p>directory:</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  ls /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loop[a-zA-Z]*</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa    /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopd12  /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopg2</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopj6   /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopn   /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa1</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopd13  /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopg3   /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopj7</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopn1   /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa10  /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopd14</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopg4   /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopj8   /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopn10</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa11  /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopd15  /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopg5</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopj9   /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopn11</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">With the kernel up and running, you also need to acquire a <a class="urlextern" style="font-size: 8.53333px; line-height: 10.6667px;" title="ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/source" rel="nofollow" href="ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/source">modified copy</a> of</p>
<div class="codecolorer-container text">losetup</div>
<p>, the loopback setup program. If you&#8217;re running an RPM based distributi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>, you&#8217;re in luck. You can fetch the modified losetup by making another journey to NASA HQ&#8217;s <acronym style="font-size: 8.53333px; line-height: 10.6667px;" title="File Transfer Protocol">FTP</acronym> server. Rebuild it with</p>
<div class="codecolorer-container text">rpmbuild -bb</div>
<p>and install. If you&#8217;re running <em style="font-size: 8.53333px; line-height: 10.6667px;">Debian GNU/Linux</em>, as I am, you can install the rpm package with the usual</p>
<div class="codecolorer-container text">apt-get</div>
<p>command. Then, you could either build the RPM package and use</p>
<div class="codecolorer-container text">alien</div>
<p>to c<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>vert it to a Debian package or use</p>
<div class="codecolorer-container text">rpm2cpio</div>
<p>to create a</p>
<div class="codecolorer-container text">cpio</div>
<p>archive of the RPM. For the latter, you can extract the source from the resultant</p>
<div class="codecolorer-container text">cpio</div>
<p>archive and compile:</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  rpm2cpio loop-utils-0.0.1-1.src.rpm &gt; loop-utils.cpio</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  cpio -i &lt; loop-utils.cpio</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 39 blocks</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  tar -zxvf loop-utils-0.0.1.tar.gz</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/COPYING</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/Makefile</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/loimginfo.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/lo<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span>.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/lo<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span>.h</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/loop.h</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/loop.sgml</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/losetgeo.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/lotest.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/nls.h</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> loop-utils-0.0.1/partinfo.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  cd loop-utils-0.0.1</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">You may wish to edit the</p>
<div class="codecolorer-container text">Makefile</div>
<p>, which sticks things in</p>
<div class="codecolorer-container text">/usr</div>
<p>by default. I changed it to</p>
<div class="codecolorer-container text">/usr/local</div>
<p>and added</p>
<div class="codecolorer-container text">${prefix}</div>
<p>as the path for the</p>
<div class="codecolorer-container text">sbin_prefix</div>
<p>variable. It originally had no value at all, but is later used when installing the</p>
<div class="codecolorer-container text">losetup</div>
<p>binary, which would instead end up in your</p>
<div class="codecolorer-container text">/sbin</div>
<p>directory. Oops.</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/usr/src/loop-utils-0.0.1#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  make</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc -Wall -Wstrict-proto<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">type</span>s -O6 -DVERSI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='"0.3.9"' \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   -DLOG2_NR_PARTITI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='4'   -c -o losetgeo.o losetgeo.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc   losetgeo.o   -o losetgeo</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc -Wall -Wstrict-proto<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">type</span>s -O6 -DVERSI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='"0.3.9"' \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   -DLOG2_NR_PARTITI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='4'   -c -o loimginfo.o loimginfo.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc   loimginfo.o   -o loimginfo</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc -Wall -Wstrict-proto<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">type</span>s -O6 -DVERSI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='"0.3.9"' \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   -DLOG2_NR_PARTITI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='4'   -c -o partinfo.o partinfo.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc   partinfo.o   -o partinfo</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc -DMAIN -D_FILE_OF<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">FS</span>ET_BITS=64 lo<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span>.c -o losetup.o</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> &lt;warnings...&gt;</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> ld losetup.o -o losetup</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc -Wall -Wstrict-proto<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">type</span>s -O6 -DVERSI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='"0.3.9"' \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   -DLOG2_NR_PARTITI<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>='4'   -c -o lotest.o lotest.c</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> gcc   lotest.o   -o lotest</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> sgml2latex loop.sgml</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Processing file loop.sgml</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> sgml2html -s 0 loop.sgml</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Processing file loop.sgml</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> sgml2info loop.sgml</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Processing file loop.sgml</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> echo "START-INFO-DIR-ENTRY" &gt; loop.info.2</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> echo "* Loop: (loop). Block <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>ice loopback package." \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">     &gt;&gt; loop.info.2</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> echo "END-INFO-DIR-ENTRY" &gt;&gt; loop.info.2</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> cat loop.info.2 loop.info &gt; loop.info.3</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> rm loop.info.2</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> mv loop.info.3 loop.info</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Now, let&#8217;s test drive our new loopback <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ice.</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  /usr/local/sbin/losetup -d /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  /usr/local/sbin/losetup /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa hda_dd.image</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span> -t nt<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">fs</span> /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa1 /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  ls /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> AUTOEXEC.BAT</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> boot.ini</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> C<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">ON</span>FIG.SYS</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Corel</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Documents and Settings</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> IO.SYS</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> MSDOS.SYS</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> NTDETECT.COM</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> ntldr</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> PUTTY.RND</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> Program Files</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> pagefile.sys</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> RECYCLER</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> System Volume Informati<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span></span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> WINNT</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  u<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span> /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  /usr/local/sbin/losetup -d /<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>/loopa</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/nebula#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Nifty, eh?</p>
</div>
<h3 style="font-size: 11.9444px; line-height: 15.3333px;"><a id="mounting_by_first_extracting_the_partition" style="font-size: 11.9444px; line-height: 15.3333px;" name="mounting_by_first_extracting_the_partition"><span class="search_hit" style="font-size: 11.9444px; line-height: 15.3333px;">Mount</span>ing by First Extracting the Partiti<span class="search_hit" style="font-size: 11.9444px; line-height: 15.3333px;">on</span></a></h3>
<div class="level3" style="font-size: 8.53333px; line-height: 10.6667px;">
<p style="font-size: 8.53333px; line-height: 10.6667px;">Last, you can use dd to extract the partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> of interest manually and then <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> it via loopback. Again, the assumpti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> of 512 bytes per sector is assumed here. As explained in Brian Carrier&#8217;s <a class="urlextern" style="font-size: 8.53333px; line-height: 10.6667px;" title="http://sleuthkit.sourceforge.net/informer/sleuthkit-informer-2.html" rel="nofollow" href="http://sleuthkit.sourceforge.net/informer/sleuthkit-informer-2.html">March 15th Sleuth Kit Informer</a> column, <a class="urlextern" style="font-size: 8.53333px; line-height: 10.6667px;" title="http://sleuthkit.sourceforge.net/informer/sleuthkit-informer-2.html#split" rel="nofollow" href="http://sleuthkit.sourceforge.net/informer/sleuthkit-informer-2.html#split">Splitting The Disk</a>, we can pass <strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">dd</div>
<p></strong> the starting sector of the partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> in questi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> and calculate the size and allow it to extract it for us. For example, let&#8217;s extract my <em style="font-size: 8.53333px; line-height: 10.6667px;">ext3</em> partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>, then <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> it <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> loopback.</p>
<p style="font-size: 8.53333px; line-height: 10.6667px;">We pass <strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">dd</div>
<p></strong> bytes at a time size (bs <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">option</span>) of 512. Next, we pass it the starting sector of my <em style="font-size: 8.53333px; line-height: 10.6667px;">ext3</em> partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> from the <strong style="font-size: 8.53333px; line-height: 10.6667px;"></p>
<div class="codecolorer-container text">fdisk</div>
<p></strong> output above, 7695198, as the number of blocks to skip ahead in the image. Last, we calculate the size as explained in the Sleuth Kit Informer above by taking the starting and ending sectors of the partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>, subtracting them, then adding <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>e (9510479 - 7695198 + 1 = 1815282).</p>
<p style="font-size: 8.53333px; line-height: 10.6667px;">R<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>ald Woelfel raised an interesting questi<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> about a missing sector <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span>s with an odd number of sectors, which was explained thusly by Brian Carrier of Sleuth Kit fame: ”<em style="font-size: 8.53333px; line-height: 10.6667px;">The reas<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> that you noticing the difference is likely because your linux system has the 2.4 kernel, which has a bug when accessing disk or partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">dev</span>ices. If a partiti<span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">on</span> or disk has an odd number of sectors, the last sector is not read.</em>”</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/home/jas<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span>b#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  dd if=/nebula/hda_dd.image of=/nebula/test.image \</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;">   bs=512 skip=7695198 count=1815282</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 1815282+0 records in</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> 1815282+0 records out</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;"><span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">On</span>ce dd completes, you can <span class="search_hit" style="font-size: 8.53333px; line-height: 10.6667px;">mount</span> the image as you normally would:</p>
<pre class="cli" style="font-size: 10.2444px; line-height: 14.3444px;"><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/home/jas<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span>b#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span> -o loop -t ext3 /nebula/test.image /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/home/jas<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span>b#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  ls /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> bin    <span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">dev</span>     home    lib opt   sbin  var</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> boot   etc     import  lost+found  proc  tmp   vmlinuz</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> cdrom  floppy  initrd  mnt root  usr   vmlinuz.old</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_prompt" style="font-size: 10.2444px; line-height: 14.3444px;"> faith:/home/jas<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">on</span>b#</span><span class="cli_command" style="font-size: 10.2444px; line-height: 14.3444px;">  u<span class="search_hit" style="font-size: 10.2444px; line-height: 14.3444px;">mount</span> /mnt</span><br style="font-size: 10.2444px; line-height: 14.3444px;" /><span class="cli_output" style="font-size: 10.2444px; line-height: 14.3444px;"> </span><br style="font-size: 10.2444px; line-height: 14.3444px;" /></pre>
<p style="font-size: 8.53333px; line-height: 10.6667px;">Robado de | <a href="http://wiki.edseek.com/guide:mount_loopback" target="_blank">wiki.edseek.com/</a></p>
</div>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>, <a href="http://www.ctrl-zetta.com/wp/category/recortes/" title="Browse for Recortes" rel="tag">Recortes</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/12/06/mounting-disk-images-on-linux-loopback-device/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/12/06/mounting-disk-images-on-linux-loopback-device/</feedburner:origLink></item>
		<item>
		<title>montar iso</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/01DUqCf5CPE/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/12/06/montar-iso/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 05:01:32 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Apuntes]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[iso]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=179</guid>
		<description><![CDATA[mount -o loop -t iso9660 file.iso /mnt/test
Tags: Apuntes, Linux]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">mount -o loop -t iso9660 file.iso /mnt/<span class="kw3">test</span></div></li></ol></div></div>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/apuntes/" title="Browse for Apuntes" rel="tag">Apuntes</a>, <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/12/06/montar-iso/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/12/06/montar-iso/</feedburner:origLink></item>
		<item>
		<title>Quemar .iso en  CD/DVD</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/ict3v3rOuak/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/11/22/quemar-iso-en-cddvd/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 22:04:49 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Recortes]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=177</guid>
		<description><![CDATA[Para que no se me olvide..
sudo wodim dev=/dev/scd0 driveropts=burnfree,noforcespeed fs=14M speed=8 -dao -eject -overburn -v ruta.iso
Tags: Linux, Recortes]]></description>
			<content:encoded><![CDATA[<p>Para que no se me olvide..</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">sudo wodim <span class="re2">dev=</span>/dev/scd0 <span class="re2">driveropts=</span>burnfree,noforcespeed <span class="re2">fs=</span>14M <span class="re2">speed=</span><span class="nu0">8</span> -dao -eject -overburn -v ruta.iso</div></li></ol></div></div>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>, <a href="http://www.ctrl-zetta.com/wp/category/recortes/" title="Browse for Recortes" rel="tag">Recortes</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/11/22/quemar-iso-en-cddvd/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/11/22/quemar-iso-en-cddvd/</feedburner:origLink></item>
		<item>
		<title>Eliminar carpetas .svn</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/QvvkmXMlKH4/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/11/01/eliminar-carpetas-svn/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 22:32:41 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Apuntes]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=173</guid>
		<description><![CDATA[Cuando estamos trabajando son Subversion y queremos distribuir nuestro trabajo, está de mas que compartamos esos directorios .svn que subversion utiliza para mantener el control de los archivos, corriendo este comando podemos borrar estas carpetas.
$ rm -rfv `find . -type d -name .svn`
Tags: Apuntes, Linux]]></description>
			<content:encoded><![CDATA[<p>Cuando estamos trabajando son Subversion y queremos distribuir nuestro trabajo, está de mas que compartamos esos directorios .svn que subversion utiliza para mantener el control de los archivos, corriendo este comando podemos borrar estas carpetas.</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ rm -rfv `find . -<span class="kw3">type</span> d -name .svn`</div></li></ol></div></div>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/apuntes/" title="Browse for Apuntes" rel="tag">Apuntes</a>, <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/11/01/eliminar-carpetas-svn/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/11/01/eliminar-carpetas-svn/</feedburner:origLink></item>
		<item>
		<title>Name That Code</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/j2PTqy0nCPU/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/09/02/name-that-code/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 05:36:58 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=165</guid>
		<description><![CDATA[Hoy me entero desde El Webmaster sobre este Test acerca de programación, y obtuve orgullosamente un 92% =)

Tags: Geek]]></description>
			<content:encoded><![CDATA[<p>Hoy me entero desde <a href="http://feeds.feedburner.com/~r/elwebmastercom/~3/381489350/test-¿cuanto-sabes-de-programacion" target="_blank">El Webmaster</a> sobre este Test acerca de programación, y obtuve orgullosamente un 92% =)</p>
<p style="text-align: center;"><a href="http://www.oneplusyou.com/q/v/code"><img class="size-full wp-image-166 aligncenter" title="code_92" src="http://www.ctrl-zetta.com/wp/wp-content/uploads/2008/09/code_92.jpg" alt="" width="283" height="200" /></a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/geek/" title="Browse for Geek" rel="tag">Geek</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/09/02/name-that-code/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/09/02/name-that-code/</feedburner:origLink></item>
		<item>
		<title>10 buenas razones para no cambiarse a Linux</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/M9TKJ5Gzi1I/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/09/01/10-buenas-razones-para-no-cambiarse-a-linux/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 06:17:27 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Citas]]></category>

		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=163</guid>
		<description><![CDATA[
Usted tiene 104 años.
Usted no quiere cambiar de SO, como tampoco quiere que profanen su tumba.
Le diagnosticaron una enfermedad terminal y le quedan 2 días de vida. Es preferible pasarlos con la familia.
Usted afirma que porque nunca entendió StarWars, ni Star Trek, ni Stargate, ni Tron… tampoco entenderá Linux.
Usted no tiene amigos para poder refregarle [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Usted tiene 104 años.</li>
<li>Usted no quiere cambiar de SO, como tampoco quiere que profanen su tumba.</li>
<li>Le diagnosticaron una enfermedad terminal y le quedan 2 días de vida. Es preferible pasarlos con la familia.</li>
<li>Usted afirma que porque nunca entendió StarWars, ni Star Trek, ni Stargate, ni Tron… tampoco entenderá Linux.</li>
<li>Usted no tiene amigos para poder refregarle en la cara que ya no usa Windows.</li>
<li>Usted vive en el más recóndito rincón del África, en su tribu hay problemas más graves que el de cambiar de Sistema Operativo.</li>
<li>Usted tiene pérdida de memoria a corto plazo. Cada 5 minutos olvida por qué razón quería probar Linux.</li>
<li>Linux no tiene buscaminas, que es para lo único que usted usa su inútil pc.</li>
<li>Extrañará formatear cada dos meses. No sabría qué hacer con todo ese tiempo libre.</li>
<li>Usted nunca pudo dejar de fumar, nunca aprendió a manejar un auto, nunca supo como cambiar una bombilla de luz, mucho menos, podrá cambiar de Sistema Operativo.</li>
</ol>
<p>Copypaste |<a href="http://www.vivalinux.com.ar/articulos/10-razones-para-no-cambiarse-a-linux.html" target="_blank">VivaLinux!</a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/citas/" title="Browse for Citas" rel="tag">Citas</a>, <a href="http://www.ctrl-zetta.com/wp/category/geek/" title="Browse for Geek" rel="tag">Geek</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/09/01/10-buenas-razones-para-no-cambiarse-a-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/09/01/10-buenas-razones-para-no-cambiarse-a-linux/</feedburner:origLink></item>
		<item>
		<title>Restaurar Backup MySQL</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/mk9vh5pqhUA/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/08/21/restaurar-backup-mysql/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 05:29:12 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[Recortes]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=161</guid>
		<description><![CDATA[Y para hacer exactamente lo contrario que hicimos al crear el backup, osea restauralo :
(notese el signo menor que)
$ mysql -u miNombreDeUsuario -p BaseDeDatos &#60; myBackup.sql
nos preguntará nuestro password y listo!!. Mucho mejor que andar lidiando con phpmyadmin
Tags: MySQL, Recortes]]></description>
			<content:encoded><![CDATA[<p>Y para hacer exactamente lo contrario que hicimos al <a href="http://www.ctrl-zetta.com/wp/2008/08/21/mysqldump/">crear el backup</a>, osea restauralo :<br />
(notese el signo menor que)</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ mysql -u miNombreDeUsuario -p BaseDeDatos &lt; myBackup.sql</div></li></ol></div></div>
<p>nos preguntará nuestro password y listo!!. Mucho mejor que andar lidiando con phpmyadmin</p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/mysql/" title="Browse for MySQL" rel="tag">MySQL</a>, <a href="http://www.ctrl-zetta.com/wp/category/recortes/" title="Browse for Recortes" rel="tag">Recortes</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/08/21/restaurar-backup-mysql/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/08/21/restaurar-backup-mysql/</feedburner:origLink></item>
		<item>
		<title>MysqlDump</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/hsy6YGWKg7U/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/08/21/mysqldump/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 05:20:25 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[Recortes]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=154</guid>
		<description><![CDATA[Para hacer un backup de nuestra base de datos simplemente necesitamos ejecutar
mysqldump -u miNombreDeUsuario -p BaseDeDatos &#62; myBackup.sql
nos preguntará nuestro password y listo, backup listo. Mucho mejor que andar lidiando con phpmyadmin
Tags: MySQL, Recortes]]></description>
			<content:encoded><![CDATA[<p>Para hacer un backup de nuestra base de datos simplemente necesitamos ejecutar</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">mysqldump -u miNombreDeUsuario -p BaseDeDatos &gt; myBackup.sql</div></li></ol></div></div>
<p>nos preguntará nuestro password y listo, backup listo. Mucho mejor que andar lidiando con phpmyadmin</p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/mysql/" title="Browse for MySQL" rel="tag">MySQL</a>, <a href="http://www.ctrl-zetta.com/wp/category/recortes/" title="Browse for Recortes" rel="tag">Recortes</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/08/21/mysqldump/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/08/21/mysqldump/</feedburner:origLink></item>
		<item>
		<title>Crear un virtualHost</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/WtRjAHIWipU/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/08/21/crear-un-virtualhost/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 05:00:33 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Apuntes]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=147</guid>
		<description><![CDATA[Por lo general cuando estamos haciendo pruebas o creando nuevos programas en LAMP recurrimos a guardarlos dentro de carpetas (localhost/prueba1; localhots/test; localhost/player; etc) por lo menos yo lo hice durante muchisimo tiempo. Ahora ya me acostumbre a que por cada proyecto realizado me genero un virtualhost diferente, un nombre de usuario mysql diferente (esto lo [...]]]></description>
			<content:encoded><![CDATA[<p>Por lo general cuando estamos haciendo pruebas o creando nuevos programas en LAMP recurrimos a guardarlos dentro de carpetas (localhost/prueba1; localhots/test; localhost/player; etc) por lo menos yo lo hice durante muchisimo tiempo. Ahora ya me acostumbre a que por cada proyecto realizado me genero un virtualhost diferente, un nombre de usuario mysql diferente (esto lo veremos en otro post).</p>
<p>Hacelo es una tarea sencilla:</p>
<p>Iniciamos creando un archivo nuevo dentro de nuestra carpeta de sites-available (uso gedit pero pueden usar el que deseen=</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ sudo mined /etc/apache2/sites-available/<span class="kw3">test</span></div></li></ol></div></div>
<p>y le guardamos unos datos similares a estos =)</p>
<div class="codecolorer-container apache"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">&lt;virtualhost *&gt;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">ServerAdmin</span> zetaweb@gmail.com</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="co1">#carpeta donde se encuentran nuestros archivos</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">DocumentRoot</span> /home/zetta/sites/test/public_html</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="co1">#url para accesar desde el navegador</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">ServerName</span> test.lc</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="co1">#Aqui se definen las reglas como si de un .htacces se tratara =)</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &lt;directory /home/zetta/sites/test/public_html&gt;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Options</span> Indexes <span class="kw2">FollowSymLinks</span> MultiViews</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">AllowOverride</span> <span class="kw1">All</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Order</span> <span class="kw1">allow</span>,<span class="kw1">deny</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">allow</span> <span class="kw1">from</span> <span class="kw1">all</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &lt;/directory&gt;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="co1">#donde guardara el error log</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">ErrorLog</span> /home/zetta/sites/test/logs/error.log</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="co1"># Possible values include: debug, info, notice, warn, error, crit,</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="co1"># alert, emerg.</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">LogLevel</span> warn</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">CustomLog</span> /var/log/apache2/access.log combined</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">ServerSignature</span> <span class="kw2">On</span></div></li>
<li class="li1"><div class="de1">&lt;/virtualhost&gt;</div></li></ol></div></div>
<p>Ya creado lo habilitamos con el comando Apache 2 Enable Site</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ a2ensite <span class="kw3">test</span></div></li></ol></div></div>
<p>y reiniciamos apache</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ sudo /etc/init.d/apache2 restart</div></li></ol></div></div>
<p>- Actualización -<br />
Se me olvidaba, una vez creado el virtual host hay que decirle a nuestra maquina que busque test.lc en nuestro mismo localhost<br />
Abrimos el archivo hosts</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ sudo mined /etc/hosts</div></li></ol></div></div>
<p>y Agregamos la linea </p>
<p><strong>127.0.0.1 test.lc</strong> (claro si no es en localhost pues cambien la IP)</p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/apache/" title="Browse for Apache" rel="tag">Apache</a>, <a href="http://www.ctrl-zetta.com/wp/category/apuntes/" title="Browse for Apuntes" rel="tag">Apuntes</a>, <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/08/21/crear-un-virtualhost/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/08/21/crear-un-virtualhost/</feedburner:origLink></item>
		<item>
		<title>Wordle</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/cWmknu7A8U4/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/08/21/wordle/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 04:32:37 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=144</guid>
		<description><![CDATA[Me dio curiosidad ver que muchos blogs que leo a diario publicaran su nube creada con Wordle, asi que me meti a ver que salia con ctrl-zetta, esta fue el resultado (a mi me gustó)

Tags: General]]></description>
			<content:encoded><![CDATA[<p>Me dio curiosidad ver que muchos blogs que leo a diario publicaran su nube creada con Wordle, asi que me meti a ver que salia con ctrl-zetta, esta fue el resultado (a mi me gustó)</p>
<p style="text-align: center;"><a href="http://www.ctrl-zetta.com/wp/wp-content/uploads/2008/08/pantallazo.png"><img class="size-full wp-image-145 aligncenter" title="pantallazo" src="http://www.ctrl-zetta.com/wp/wp-content/uploads/2008/08/pantallazo.png" alt="" width="480" height="822" /></a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/general/" title="Browse for General" rel="tag">General</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/08/21/wordle/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/08/21/wordle/</feedburner:origLink></item>
		<item>
		<title>Reproducir DVD’s con Ogle</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/MEqqDmoQXhU/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/08/01/reproducir-dvds-con-ogle/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 05:33:22 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=135</guid>
		<description><![CDATA[Ogle es para mi una fantástica herramienta, puesto que hace exactamente lo que uno quiere, Reproducir un DVD ni mas ni menos =P, hace unos dias me bajé la imágen de un DVD, como suelo hacerlo, para despues verla conectando todos mis aparatos jejeje. Me di cuenta que ni Totem y tampoco VLC soportan los [...]]]></description>
			<content:encoded><![CDATA[<p>Ogle es para mi una fantástica herramienta, puesto que hace exactamente lo que uno quiere, <strong>Reproducir un DVD</strong> ni mas ni menos =P, hace unos dias me bajé la imágen de un DVD, como suelo hacerlo, para despues verla conectando todos mis aparatos jejeje. Me di cuenta que ni <a href="http://www.gnome.org/projects/totem/" target="_blank">Totem</a> y tampoco <a href="http://www.videolan.org/vlc/" target="_blank">VLC</a> soportan los menús en los DVD (o por lo menos no encontré la opción). Sin embargo <a href="http://www.dtek.chalmers.se/groups/dvd/index.shtml" target="_blank">Ogle</a> si lo hace, lo hace perfectamente y además lo puedes usar de una manera simple, <strong>la linea de comandos</strong>, aunque para algunos sonará muy feo, para mi eso fue una maravilla =P.</p>
<p>Primero lo primero &#8230; Yo ya ni me acuerdo!! XD pero segun mis lagunas mentales ya viene en los repositorios de Ubuntu (chance y debian).</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ sudo apt-get install ogle</div></li></ol></div></div>
<p>Montamos la imagen (recuerden que no tengo presupuesto para comprar DVD&#8217;s)</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ mount -t udf pelicula_no_original.img /media/mispelis -o loop</div></li></ol></div></div>
<p>Aqui utilizaremos udf en lugar de iso9660 porque por lo general udf es asociado con DVD mientras que iso es asociado con CD&#8217;s.</p>
<p>y para terminar (o empezar la movie).</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1">$ ogle -u cli /media/mispelis</div></li></ol></div></div>
<p>y Ogle hará la magia&#8230; Ogle tiene un modo GUI que puede ser instalado como paquete, que la verdad no he usado, pero si se quieren aventurar a usarlo sin la interface gráfica (no le veo razón de ser) aqui estan los atajos para el teclado, muy intuitivos =)</p>
<ul>
<li><strong>,</strong> (coma) - Reproducción lenta (slow-motion) durante este proceso no habrá sonido.</li>
<li><strong>p</strong> - Reproducir, regresar a velocidad normal de reproducción.</li>
<li><strong>.</strong> (punto) - Reproducción rápida, durante este proceso se anula el sonido.</li>
<li>(espacio) - Pausar / Reanudar</li>
<li><strong>&gt; - </strong>Avanza al siguiente capitulo.</li>
<li><strong>&lt;</strong> - Regresa al capitulo anterior.</li>
<li><strong>c</strong> - Reanudar (si habias saltao a un menú mientras veias la peli)</li>
<li><strong>f</strong> - Alternar entre pantalla completa y modo ventana</li>
<li><strong>q</strong> - Salir del programa</li>
<li><strong>r</strong> - Saltar al menú Raiz</li>
<li><strong>a</strong> - Saltar al menú de Audio</li>
</ul>
<p>Hay unos cuantos mas que la verdad no entendi para que sirven =P pero la verdad no los uso yo con ponerle play y apretar F me doy por bien servido</p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/08/01/reproducir-dvds-con-ogle/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/08/01/reproducir-dvds-con-ogle/</feedburner:origLink></item>
		<item>
		<title>Efectos de Escritorio sin Compiz</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/Z5spqywtW9c/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/08/01/efectos-de-escritorio-sin-compiz/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 02:37:32 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=131</guid>
		<description><![CDATA[Todo usuario de Ubuntu que tenga una tarjeta gráfica compatible seguro que ha podido disfrutar de los fantásticos efectos de Compiz en su escritorio. Sin embargo, aquellos que no posean una tarjeta gráfica compatible han visto como no han tenido posibilidad ni siquiera de probarlos. A éstos usuarios les alegrará saber que hay una vía [...]]]></description>
			<content:encoded><![CDATA[<p>Todo usuario de Ubuntu que tenga una tarjeta gráfica compatible seguro que ha podido disfrutar de los fantásticos efectos de Compiz en su escritorio. Sin embargo, aquellos que no posean una tarjeta gráfica compatible han visto como no han tenido posibilidad ni siquiera de probarlos. A éstos usuarios les alegrará saber que hay una vía alternativa para habilitar algunos efectos como sombras o transparencias sin necesidad de aceleración gráfica y, lo que es aún mejor, sin necesidad de instalar ningún programa.</p>
<p>Esta alternativa no es otra que Metacity, el gestor de ventanas por defecto en Ubuntu, que posee una capacidad (aún en pruebas, todo hay que decirlo) para mostrar algunos efectos en las ventanas parecida a la de Compiz, aunque, eso sí, mucho más simple.</p>
<p>Para activar esta funcionalidad tendremos que irnos al editor de configuración de Gnome (Alt+F2: gconf-editor). En el menú de la izquierda seleccionamos apps/metacity/general y activamos compositing-manager.</p>
<p style="text-align: center;"><a href="http://www.ctrl-zetta.com/wp/wp-content/uploads/2008/08/rbtsonxpng.jpeg"><img class="size-full wp-image-133 aligncenter" title="rbtsonxpng" src="http://www.ctrl-zetta.com/wp/wp-content/uploads/2008/08/rbtsonxpng.jpeg" alt="" width="499" height="408" /></a></p>
<p>Este método es también válido para cualquier distribución GNU/Linux con Metacity.</p>
<p>CopyPasteado | <a href="http://www.tuxapuntes.com/tux/content/view/916/86/" target="_blank">Tuxapuntes</a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/08/01/efectos-de-escritorio-sin-compiz/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/08/01/efectos-de-escritorio-sin-compiz/</feedburner:origLink></item>
		<item>
		<title>¿Cuál es el número de usuarios Linux en el mundo?</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/32ZJQIKalVo/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/07/30/cual-es-el-numero-de-usuarios-linux-en-el-mundo/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 17:55:42 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=127</guid>
		<description><![CDATA[¿Cómo calcular el número de usuarios de Linux?
Tomar estadísticas de ventas de equipos con Linux no es prudente tanto para bien como para mal: uno nunca sabe si el comprador instalará finalmente otro sistema operativo. Que se agote una gama con Linux en una gran superficie no es un indicador fiable: el número de máquinas [...]]]></description>
			<content:encoded><![CDATA[<p><strong>¿Cómo calcular el número de usuarios de Linux?</strong></p>
<p>Tomar <a href="http://barrapunto.com/~rongorongo/journal/30259">estadísticas de ventas</a> de equipos con Linux no es prudente tanto para bien como para mal: uno nunca sabe si el comprador instalará finalmente otro sistema operativo. Que se agote una gama con Linux en una gran superficie no es un indicador fiable: el número de máquinas con Linux preinstalado que tiene disponible en almacén la empresa que lo venda puede ser pequeño, ridículo, comparado con el número de equipos con Hasefroch(c) que &#8220;nunca se agotan&#8221; ni se deben de agotar por el bien económico de la empresa.</p>
<p>¿Porqué compra un usuario un equipo Linux si no quiere realmente ese sistema operativo?</p>
<ul>
<li>La configuración hardware del equipo es determinante para el comprador: un equipo con Linux puede tener hardware <strong>muy</strong> barato al no necesitar el software tantos recursos para funcionar. Aquí entran en juego los nuevos ultraportátiles (<em>netbooks</em>) de gama baja <em>¡quiero uno!</em>, tan baja que está por los suelos.</li>
<li>El menor coste al no necesitar la licencia del sistema operativo abarata el producto.<br />
Pero también se da el caso a la inversa: por ejemplo, con los productos de DELL la incorporación de software &#8220;promocionado&#8221; en Hasefroch abarata tanto el equipo (aún mas que la licencia del sistema operativo que ya de por sí les sale barata por acuerdos Hasefroch-OEM) que le otorga un mejor precio que un sistema de coste cero, software GNU/Linux gratuito.</li>
</ul>
<p>He leído verdaderas aventuras en listas de correo que dejan en simples recadillos a los trabajos de Hércules.</p>
<p>Pedir un equipo con Linux puede ser una hazaña titánica en algunos casos: el comercial se hace el loco para evitar follones y no bajar el precio, muy inferior en la oferta con software libre (el comercial se lleva un porcentaje de comisión); los técnicos tienen que formatear el ordenador salido de fábrica con Hasefroch e instalarle Linux por lo que el coste de la broma para la empresa es mayor (esa mano de obra final sale muy cara); la llegada del equipo se retrasa bastante porque la empresa no está preparada para un incremento en la demanda debido al último paso por la cadena de montaje (reinstalación con Linux); un cambio a mejor en la configuración del hardware puede invalidar la oferta con Linux ya que el equipo de márketing, ventas y los técnicos con conocimientos en software libre no se comunican como deberían (la nueva gama con tarjeta wifi integrada no está soportada, etc&#8230;)</p>
<p>Ante el periplo de múltiples llamadas a un teléfono de consulta y una guerra contra el distribuidor muchos usuarios optan por comprar el equipo con Hasefroch y reinstalarle Linux mas adelante. Y otros tantos, para ahorrarse unos cuantos leuros, compran Linux en una gran superficie y mas adelante le instalan Hasefroch.</p>
<p>Resumiendo, de la compra de un ordenador con Hasefroch o Linux no se puede deducir mucho sobre el número de usuarios de cada sistema operativo a no ser que uno quiera manipular cifras e inventarse conclusiones que le interesen.</p>
<p><strong>Por el navegador lo conoceréis (pues va a ser que no)</strong></p>
<p>No son pocos los que se identifican de forma distinta al navegador que utilizan (para evitar las páginas que supuestamente solo funcionan con iexplorer) y el porcentaje de usuarios de Firefox que navega desde Hasefroch es alto ¿Sirve de algo saber el número de usuarios de Firefox? No mucho mas que las ventas de sistemas Linux como tampoco el número de navegantes con konqueror o epiphany cuando estén disponible para Hasefroch (y lo estarán en no mucho tiempo).</p>
<p><strong>¿Hay al menos unas cifras aproximadas?</strong></p>
<p>El crecimiento en el sector del escritorio parece ser felizmente exponencial, pero puede serlo gracias al bajo número de usuarios: Linux ha duplicado el número de usuarios <a href="http://linuteca.com/se-duplica-el-uso-de-linux-en-2008/">en solo dos meses</a> y así crece cualquiera pero ¿puede desbancar a XP en unos años? ¿Y superar las cifras de Hasefroch 7 cuando salga?</p>
<p>En julio de 2007 apareció una sorprendente noticia: el número de usuarios de Linux se estancaba en un 3,4% <a href="http://www.noticiasdot.com/wp2/wp-content/uploads/2007/05/so-mundo.jpg">[Gráfico de barras]</a>. La publicación francesa <a href="http://www.journaldunet.com">JDN</a> saltaba la voz de alarma (y la de la incredulidad) de los usuarios de Linux. Se creía que el crecimiento era exponencial y continuado.</p>
<p><em>«El mismo estudio nos refleja que Hasefroch XP sigue siendo el sistema operativo más usado con un 74,6% del total, y subiendo cinco décimas porcentuales. Le sigue su antecesor, Hasefrochs 2000, con un 6,8%. Vista con un 3% y las versiones 2003 y 98 con un 2% y 0.3% respectivamente completan el uso de los entornos de Microsoft.»</em></p>
<p>Y es que según de qué ámbito hablamos Linux sigue siendo usado por cuatro gatos o arrasa totalmente el mercado: En la lista del <a href="http://www.top500.org/stats/list/31/os">top 500</a> de supercomputadores domina Linux con un amplio 75.60% pero en el escritorio la cifra sigue siendo ridícula :-m</p>
<p><strong>Conclusiones:</strong> es difícil saber cuantos usuarios usamos Linux y mas difícil es sacar pronósticos. La implantación de Linux depende de milagros como Ubuntu (aparece un filántropo de la nada que invierte millones en el software libre), del <em>marketing</em> de las empresas que triunfen con el software libre (IBM, RedHat, SuSE y otras tantas gastan mucho en dar buena imágen al modelo de software libre) y&#8230; de los productos de sus mas directos competidores (Apple y Microsoft). Apple casi no tenía mercado, estuvo a punto de desaparecer pero ha pulverizado marcas quedándose con una buena tajada del mercado de ordenadores personales y de <em>gadgets</em>.<br />
Personalmente opino que hay una barrera de software ya implantado y específico que Linux no podrá superar en muchos años a no ser que reciba una gran inyección de pasta en publicidad. Linux solo gana si Hasefroch 7 pierde y Apple sigue siendo un producto de gama alta o muy alta.</p>
<p>Via | <a href="http://libertonia.escomposlinux.org/story/2008/7/30/13373/2017" target="_blank">Libertonia</a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/07/30/cual-es-el-numero-de-usuarios-linux-en-el-mundo/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/07/30/cual-es-el-numero-de-usuarios-linux-en-el-mundo/</feedburner:origLink></item>
		<item>
		<title>Sócrates</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/yhYc1cD1cE0/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/07/18/socrates/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 00:55:47 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Citas]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/?p=124</guid>
		<description><![CDATA[Si Sócrates hubiera nacido en nuestros tiempos, seria un simple bloguero

Via &#124; Luciernaga
Tags: Citas]]></description>
			<content:encoded><![CDATA[<blockquote cite="http://luciernaga.blogsome.com/2006/10/05//"><p>Si Sócrates hubiera nacido en nuestros tiempos, seria un simple bloguero</p>
</blockquote>
<p>Via | <a href="http://luciernaga.blogsome.com/2006/10/05//">Luciernaga</a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/citas/" title="Browse for Citas" rel="tag">Citas</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/07/18/socrates/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/07/18/socrates/</feedburner:origLink></item>
		<item>
		<title>Perfiles en Firefox</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/eDqUgQbqpz8/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/07/18/perfiles-en-firefox/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 23:58:09 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/2008/07/18/perfiles-en-firefox/</guid>
		<description><![CDATA[Ya llevo varios dias cansado de que mi máquina se me esté alentano con tanta chunche que tenia activada el firefox, le comentaba a Mauricio que estaba utilizando navegadores diferentes para las lecturas y solo planeaba abrir Firefox para el desarrollo.
Sin embargo eso de estar switcheando entre navegadores no es muy cómodo, por lo que [...]]]></description>
			<content:encoded><![CDATA[<p>Ya llevo varios dias cansado de que mi máquina se me esté alentano con tanta chunche que tenia activada el firefox, le comentaba a <a href="http://www.infectedfx.net">Mauricio</a> que estaba utilizando navegadores diferentes para las lecturas y solo planeaba abrir Firefox para el desarrollo.</p>
<p>Sin embargo eso de estar switcheando entre navegadores no es muy cómodo, por lo que opté buscar una solución para no dejar al tan querido Firefox del lado, Se me ocurria hacer un enlace hacia firefox con el parámetro -safe-mode,[ firefox -safe-mode ] lo cual abriria firefox con las extensiones y los temas desabilitados, pero el zorro no hace las cosas con las patas, por eso es que existe un administrador de Perfiles que nos resolverá el lio, Simplemente tenemos que ejecutar<br />
(Tenemos que asegurarnos que Firefox esté cerrado o no funcionará)</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1"><span class="re1">$firefox</span> -ProfileManager</div></li></ol></div></div>
<p>(si es windows agrega el <strong>.exe</strong>)</p>
<p>Saldrá un cuadro de dialogo con un perfil <strong>default</strong>, a este le puse el nombre de <strong>Dev</strong> pues es el actual perfil el que tiene mis extensiones, y agregué uno nuevo al que nombre Lectura.<br />Despues se selecciona <strong>Dev</strong>, y se quita la marca de   <strong>Don&#8217;t ask at startup</strong> y se le agrega al perfil de lectura (que en este caso quedaria como default)</p>
<div class="center"><img src="http://www.ctrl-zetta.com/wp/uploads/ffprofiles.png" alt="perfiles de firefox" /></div>
<p>Y nos libramos de problemas, ahora si puedo disfrutar de un firefox mas ligero cuando lo necesito, ahora solo falta crear un enlace y ponerle la siguiente dirección</p>
<div class="codecolorer-container bash"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1"><span class="re1">$firefox</span> -P Dev</div></li></ol></div></div>
<p>(Forzar a firefox a utilizar el Perfil Dev)</p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/firefox/" title="Browse for Firefox" rel="tag">Firefox</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/07/18/perfiles-en-firefox/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/07/18/perfiles-en-firefox/</feedburner:origLink></item>
		<item>
		<title>Function Slug</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/qJbyKJzv17c/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/07/17/function-slug/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 04:57:16 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/2008/07/17/function-slug/</guid>
		<description><![CDATA[Todos hemos visto que cada vez mas paginas en internet utilizan mod_rewrite para crear direcciones mas amigables, bueno por lo general se utilizan slugs para que el servidor sepa cual es el artículo que queremos leer (en lugar de enviar id).
function slug&#40;$str&#41;&#123;
&#160; &#160;return eregi_replace&#40;&#34;_+&#34;,&#34;_&#34;,eregi_replace&#40;&#34;[^a-z0-9\-]&#34;,'_',strtolower&#40;trim&#40;$str&#41;&#41;&#41;&#41;;
&#125;
A esta función solo hace falta pasarle un string para que nos [...]]]></description>
			<content:encoded><![CDATA[<p>Todos hemos visto que cada vez mas paginas en internet utilizan mod_rewrite para crear direcciones mas amigables, bueno por lo general se utilizan <strong>slugs</strong> para que el servidor sepa cual es el artículo que queremos leer (en lugar de enviar id).</p>
<div class="codecolorer-container php"><div class="codecolorer" style="font-family: monospace;"><ol><li class="li1"><div class="de1"><span class="kw2">function</span> slug<span class="br0">&#40;</span><span class="re0">$str</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp;<span class="kw1">return</span> <a href="http://www.php.net/eregi_replace"><span class="kw3">eregi_replace</span></a><span class="br0">&#40;</span><span class="st0">&quot;_+&quot;</span>,<span class="st0">&quot;_&quot;</span>,<a href="http://www.php.net/eregi_replace"><span class="kw3">eregi_replace</span></a><span class="br0">&#40;</span><span class="st0">&quot;[^a-z0-9<span class="es0">\-</span>]&quot;</span>,<span class="st0">'_'</span>,<a href="http://www.php.net/strtolower"><span class="kw3">strtolower</span></a><span class="br0">&#40;</span><a href="http://www.php.net/trim"><span class="kw3">trim</span></a><span class="br0">&#40;</span><span class="re0">$str</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div></li>
<li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></div></div>
<p>A esta función solo hace falta pasarle un string para que nos genere lo que necesitamos.</p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/php/" title="Browse for Php" rel="tag">Php</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/07/17/function-slug/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/07/17/function-slug/</feedburner:origLink></item>
		<item>
		<title>Wikipedia sin internet</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/aoGo07wPm4g/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/07/15/wikipedia-sin-internet/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 04:33:01 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/2008/07/15/wikipedia-sin-internet/</guid>
		<description><![CDATA[¿Sabías que es posible ver el contenido de la más grande y más utilizada enciclopedía de web sin necesidada de tener conexión a Internet? Por supuesto que es posible. Wikipedia, con más de 10 millones de artículos en 253 idiomas se puede ver offline en tu PC en cualquier momento y lugar. Existen 4 formas [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.ctrl-zetta.com/wp/wp-content/uploads/2008/07/wikipedia-tux.png" alt="Wikipedia en Linux" align="right" />¿Sabías que es posible ver el contenido de la más grande y más utilizada enciclopedía de web sin necesidada de tener conexión a Internet? Por supuesto que es posible. <a href="http://www.wikipedia.org/" target="_blank">Wikipedia</a>, con más de 10 millones de artículos en 253 idiomas se puede ver offline en tu PC en cualquier momento y lugar. Existen 4 formas de lograrlo. Veamos:</p>
<h3>i. Descarga Wikipedia como base de datos XML o SQL</h3>
<p>Puedes <a href="http://download.wikimedia.org/backup-index.html" target="_blank">obtener una copia completa</a> de todos los Wikis de Wikimedia, en forma de wikitexto y metadatos embelidos en <strong>XML</strong>. Un número de tablas de base de datos en formato <strong>SQL </strong>también están disponibles.</p>
<h3>ii. Descarga o compra Wikipedia en DVD</h3>
<p>Esta es quizás la forma más sencilla de obtener Wikipedia para usarlo offline. Sin embargo, actualmentes solo está disponible en inglés, y solo contiene alrededor de 2000 artículos seleccionados. Los artículos fueron seleccionados teniendo en cuenta calidad e importancia según la comunidad Wikipedia. Según <strong>Wikimedia </strong>y <strong>Linterweb</strong>, el DVD pronto estára disponible a otros idiomas. <a href="http://www.wikipediaondvd.com/site.php?temp=down" target="_blank">Obtener DVD Wikipedia</a>.</p>
<h3>iii. HTML estático</h3>
<p>Otra alternativa puede ser <a href="http://static.wikipedia.org/downloads/2008-06/" target="_blank">descargando las páginas de Wikipedia en formato HTML</a>. Ten en cuenta que las ediciones de junio 2008 (es decir, las más recientes)Â  no contienen imágenes incrustadas, solo HTML. Los archivos están comprimidos en formato 7z.</p>
<h3>iv. Pocket Wikipedia</h3>
<p>Una forma más de tener Wikipedia a la mano es <a href="http://www.free-soft.ro/pocket-wikipedia/download.html" target="_blank">descargando e instalando &#8220;Pocket Wikipedia&#8221;</a>. Su tamaño de descarga tiene algo de <strong>180 MB </strong>pero contiene una gran selección de artículos del tamaño de 15 enciclopedias con 24000 imágenes y 14 millones de palabras. Se creó para la plataforna <strong>PocketPC</strong>, pero ahora está disponible para el escritorio Linux.</p>
<p>Sabemos del gran valor que tiene está magnifica enciclopedia en Internet, pero cuando vamos a lugares donde no hay conexion a esta, es mejor estar preparado con alternativas offline de todo tipo.</p>
<p>Via | <a href="http://www.ribosomatic.com/articulos/wikipedia-en-linux-sin-conexion-a-internet/" target="_blank">ribosomatic</a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/linux/" title="Browse for Linux" rel="tag">Linux</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/07/15/wikipedia-sin-internet/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/07/15/wikipedia-sin-internet/</feedburner:origLink></item>
		<item>
		<title>5 razones para evitar el iPhone 3G</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/iRdqaUx3qhg/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/07/11/5-razones-para-evitar-el-iphone-3g/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 17:27:40 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/2008/07/11/5-razones-para-evitar-el-iphone-3g/</guid>
		<description><![CDATA[Las 5 razones reales para evitar el iPhone 3G:

iPhone bloquea completamente el software libre. Los desarrolladores deben pagar un impuesto a Apple, quien se vuelve la autoridad exclusiva sobre lo que puede o no estar en los teléfonos de todos.
iPhone aprueba y apoya la tecnología DRM (Administración Digital de Derechos).
iPhone expone tu paradero y provee [...]]]></description>
			<content:encoded><![CDATA[<p><img title="iPhone 3G" src="http://www.ctrl-zetta.com/wp/wp-content/uploads/2008/07/iphone3g.jpg" alt="iPhone 3G" width="168" height="311" align="right" />Las 5 razones reales para evitar el <span style="font-weight: bold">iPhone 3G</span>:</p>
<ul>
<li><span style="font-weight: bold">iPhone</span> bloquea completamente el software libre. Los desarrolladores deben pagar un impuesto a <span style="font-weight: bold">Apple</span>, quien se vuelve la autoridad exclusiva sobre lo que puede o no estar en los teléfonos de todos.</li>
<li><span style="font-weight: bold">iPhone</span> aprueba y apoya la tecnología <span style="font-weight: bold">DRM</span> (Administración Digital de Derechos).</li>
<li><span style="font-weight: bold">iPhone</span> expone tu paradero y provee medios para que otros te rastreen sin tu conocimiento.</li>
<li><span style="font-weight: bold">iPhone</span> no reproduce formatos libres de patentes y <span style="font-weight: bold">DRM</span> como Ogg Vorbis y Theora.</li>
<li><span style="font-weight: bold">iPhone</span> no es la única opción. Hay mejores alternativas en el horizonte que respetan tu libertad, no te espían, reproducen formatos multimedia libres, y te permiten usar software libre — como el <a style="font-weight: bold" href="http://www.openmoko.com/">FreeRunner</a>.</li>
</ul>
<p>“Este es el teléfono que ha cambiado a los teléfonos para siempre,” dijo el Sr. Jobs</p>
<p>Estamos de acuerdo. Un vendedor de algo sin valor no satisfecho con su negocio de obligar el uso de software propietario y tecnología DRM en tu hogar, Jobs está intentando que estas tecnologías lleguen a tu bolsillo también.</p>
<p>Hay una razón por la cual se puso tanto énfasis en el diseño visual del iPhone. Hay una razón por la cual Apple está tan preocupado por costuras antiestéticas que ni siquiera te permiten cambiar la batería de tu propio teléfono.</p>
<p>Apple, a través de sus técnicas de mercadeo y diseño visual, está fabricando una ilusión de que meramente comprar Apple te hace parte de una comunidad alternativa. Pero la tecnología que usan es escogida explícitamente para dividir a la gente en celdas digitales separadas, y posicionar a Apple como un único guardián. Cuando tu negocio depende de que la gente pague para que se tranquen sus privilegios, más te vale que la prisión se vea y se sienta lujosa, y que las barras no estén demasiado visibles.</p>
<h3>Esperen, ¿trancados? ¿Prisión? Es un teléfono. ¿No estamos siendo un poco extremos?</h3>
<p>Desafortunadamente, no. El extremo aquí es representado por Jobs y Apple. El iPhone es un ataque a valores muy antiguos y fundamentales — el valor de que la gente tenga control sobre sus cosas más que sus cosas tengan control sobre ellos, el derecho de comunicarse y compartir libremente con otros, y la importancia de la privacidad.</p>
<p>El iPhone hace llamadas telefónicas, pero no es simplemente un teléfono. Es una computadora de uso general, más poderosa en términos de hardware que las que podríamos haber tenido en nuestros escritorios pocos años atrás. También es un aparato de rastreo, y como otros teléfonos privativos con GPS, pueden transmitir tu ubicación sin tu conocimiento.</p>
<p>Desde Noviembre de 2007, 3.3 billones de personas en el mundo tienen teléfonos móviles, y el número continua creciendo rápidamente. Para muchas de estas personas, los teléfonos se están volviendo las computadoras más importantes que tienen. Son vitales para sus comunicaciones y están con ellas todo el tiempo. Toda la tecnología que la gente usa podría volverse en su contra, esta es una de las posibilidades más espantosas.</p>
<p>Pero hay una diferencia importante entre el iPhone y computadoras de uso general anteriores: El iPhone está roto, en intención. En teoría es capaz de ejecutar muchos tipos diferentes de programas, pero las aplicaciones de software y medios estarán limitados via la tecnología DRM irónicamente denominada “FairPlay” de Apple</p>
<h3>Jugada Sucia</h3>
<p>El sistema DRM de Apple monitorea tus actividades y te dice lo que tienes permitido o no hacer. Lo que no tienes permitido hacer es instalar cualquier software que a Apple no le gusto. Esta restricción previene que instales software libre — software cuyos autores quieren que compartas libremente, copies y modifiques su trabajo.</p>
<p>El software libre nos ha dado muchas cosas excitantes en el escritorio — el sistema operativo GNU/Linux, el navegador web Firefox, la suite OpenOffice.org, el servidor web Apache que corre la mayoría de los sitios web en Internet. ¿Porqué querríamos comprar una computadora que hace todo lo posible para obstruir la libertad de dichos creadores?</p>
<p>Este sistema no es la única jugada sucia de Apple. Ahora los iPhones solo pueden ser activados en tiendas — a pesar del hecho que en Estados Unidos, el Register of Copyrights (Registro de Derechos de Copia) determinó que los consumidores tienen el derecho de desbloquear sus teléfonos y cambiar a un proveedor diferente.</p>
<h3>Señalando con el dedo (y no nos referimos a la pantalla táctil)</h3>
<p>Jobs nos quiere hacer creer que todas estas restricciones son necesarias. Asiente y está de acuerdo cuando nos quejamos al respecto, y dice que tampoco le gustan. Alega que Apple está obligado a incluirlas por su propio bien — por la seguridad de toda la red telefónica, y para permitir acceso a todas las películas y música que queramos.</p>
<p>Pero ha pasado un año y medio desde que Jobs, bajo presión del público, <a href="(http://www.apple.com/hotnews/thoughtsonmusic/)">habló fuertemente en contra del DRM</a> y a favor de la libertad. Con gran indecisión, permitió que un puñado de archivos se hicieran libres de DRM en iTunes, pero mantuvo en su lugar el requerimiento de que fueran comprados usando el software privativo infectado de DRM iTunes. Desde entonces, no ha hecho absolutamente nada para actuar sobre esas palabras. En sus aventuras de películas y video, ha continuado obligando el uso de DRM. Y ahora lo está trayendo a las aplicaciones de software móviles también. Se ha vuelto claro que esas palabras fueron una táctica para calmar a la oposición.</p>
<p>La verdad es que hay miles de creadores de software. música y medios que quieren compartir su trabajo más libremente. Es gracioso — como en reprensible — porque el sistema operativo de Apple OS X fue construido en gran parte en software escrito por gente que lo liberó voluntariamente para que otros copiaran, modificaran y mejoraran libremente. Cuando la gente tiene la libertad de jugar, crear e innovar, generan creaciones excitantes y útiles. La gente ya ha estado escribiendo su propio software libre para correr en plataformas móviles. La red telefónica sigue de pié.</p>
<p>Sabemos que Jobs está asustado de la competencia, y está fabricando amenazas y excusas. Esto es simplemente una decisión de negocios, y es el tipo de negocios que no deberíamos apoyar. Jobs quiere que el iPhone te restrinja, porque quiere tu dinero y aumentar el control es un medio para eso — quiere sacarte lo más que pueda, devolverte lo menos que pueda, y mantener sus costos en un mínimo absoluto. Está intentando asegurarse que nadie escriba software para el iPhone que haga cosas que él no quiere que el iPhone pueda hacer — tal software puede hacer la Jugada Sucia menos sucia, reproducir formatos de medios alternativos, mostrar al usuario exactamente qué está siendo comunicado del teléfono a la gente que lo monitorea, o incluso deshabilitar dicha transmisión de información.</p>
<h3>Siendo el futuro que queremos ver</h3>
<p>Afortunadamente, pronto podremos tener todas las conveniencias de una computadoras móvil que también hace llamadas telefónicas sin vender nuestra libertad a Apple, Microsoft, BlackBerry, o ningún otro. El <a href="http://www.openmoko.com/">Neo FreeRunner</a> es un prometedor teléfono de software libre, siendo desarrollado en cooperación con la misma comunidad mundial responsable por el sistema operativo GNU/Linux. Estos son los creadores que quieren compartir su trabajo y que quieren que tú y otros puedan hacer lo que ellos hicieron — construir sobre el trabajo de personas que vinieron antes que ellos para hacer dispositivos nuevos y poderosos.</p>
<p>Jobs construyó sobre el trabajo de otros antes que él también, solo que su respuesta es patear la escalera y tratar de prevenir que alguien más haga lo que él hizo. Sus clientes están dando pelea — según Apple en Octubre de 2007, más de 250.000 de los 1.4 millones de iPhones vendidos fueron desbloqueados por sus usuarios. En vez de  adoptar esto, Jobs piensa que debe ser detenido.</p>
<p>Tenemos una opción. El FreeRunner no hace aún tanto como el iPhone, y ciertamente no es tan lindo. Pero en términos de potencial, el hecho de que esté apoyado por una comunidad mundial de gente en vez de una sola entidad ambiciosa, deshonesta y reservada lo pone años luz adelante. Podemos intercambiar nuestra libertad y dinero para obtener algo brilloso en la superficie, o podemos gastar un poco más de dinero, mantener nuestra libertad, y apoyar un tipo de negocios mejor. Si queremos que los negocios sean éticos, debemos recompensar a aquellos que lo son. No enriqueciendo compañías que quieren quitarnos nuestra libertad y recompensando a aquellas que nos respetan, estaremos ayudando a obtener un mejor futuro.</p>
<p><span style="font-weight: bold">Traducción</span> de:</p>
<p><a href="http://www.fsf.org/blogs/community/5-reasons-to-avoid-iphone-3g">http://www.fsf.org/blogs/community/5-reasons-to-avoid-iphone-3g</a></p>
<p>Todavía sujeta a cambios por el <span style="font-weight: bold">GNU Spanish Translation Team</span>.</p>
<p>Via | <a href="http://picandocodigo.net/index.php/2008/07/11/5-razones-para-evitar-el-iphone-3g/" target="_blank">Picando Código</a></p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/geek/" title="Browse for Geek" rel="tag">Geek</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/07/11/5-razones-para-evitar-el-iphone-3g/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/07/11/5-razones-para-evitar-el-iphone-3g/</feedburner:origLink></item>
		<item>
		<title>Firefox 3 Download Day 2008</title>
		<link>http://feedproxy.google.com/~r/Ctrl-zetta/~3/cegleTi2bT4/</link>
		<comments>http://www.ctrl-zetta.com/wp/2008/06/15/firefox-3-download-day-2008/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 05:13:55 +0000</pubDate>
		<dc:creator>zetta</dc:creator>
		
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.ctrl-zetta.com/wp/2008/06/15/firefox-3-download-day-2008/</guid>
		<description><![CDATA[

Ya está decidido, el dia 17 de Junio de 2008 será declarado el dia oficial del lanzamiento de Firefox 3, esperemos que se logre la marca requerida y bueno, todos a descarar Firefox, es buen momento para decirle a todo mundo que lo pruebe y poco a poco que toda la gente utilize un navegador [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.spreadfirefox.com/es-ES/worldrecord"></a></p>
<p style="text-align: center"><a href="http://www.spreadfirefox.com/es-ES/worldrecord"><img title="Download Day 2008" src="http://www.spreadfirefox.com/sites/all/themes/spreadfirefox_RCS/images/download-day/buttons/es-ES/dday_badge_fox.png" border="0" alt="Download Day 2008" /></a></p>
<p>Ya está decidido, el dia 17 de Junio de 2008 será declarado el dia oficial del lanzamiento de Firefox 3, esperemos que se logre la marca requerida y bueno, todos a descarar Firefox, es buen momento para decirle a todo mundo que lo pruebe y poco a poco que toda la gente utilize un navegador respetable.</p>
<br /><strong>Tags:</strong> <a href="http://www.ctrl-zetta.com/wp/category/firefox/" title="Browse for Firefox" rel="tag">Firefox</a>]]></content:encoded>
			<wfw:commentRss>http://www.ctrl-zetta.com/wp/2008/06/15/firefox-3-download-day-2008/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.ctrl-zetta.com/wp/2008/06/15/firefox-3-download-day-2008/</feedburner:origLink></item>
	</channel>
</rss>
