<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fabiolagana.net &#187; cloning</title>
	<atom:link href="http://blog.fabiolagana.net/tag/cloning/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fabiolagana.net</link>
	<description>640 Kb should be enough memory for anybody</description>
	<lastBuildDate>Mon, 26 Oct 2009 13:17:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using dd to create disk images</title>
		<link>http://blog.fabiolagana.net/using-dd-create-disk-images/</link>
		<comments>http://blog.fabiolagana.net/using-dd-create-disk-images/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 14:23:57 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[cloning]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[hard disk]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=83</guid>
		<description><![CDATA[&#160;Powered by Max Banner Ads&#160; Create a hard disk image: &#160; dd if=/dev/hda1 of=/home/hda1.bin &#160; Create a compressed disk image &#160; dd if=/dev/hda1 &#124; gzip &#38;gt; /home/hda1.bin.gz &#160; Back up the MBR &#160; dd if=/dev/hda of=/home/hda.boot.mbr bs=512 count=1 &#160; Restore MBR &#40;from a Live CD&#41; &#160; dd if=/mnt/hda1/home/hda.boot.mbr of=/dev/hda bs=512 count=1 &#160; Backup a drive [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p832"><td class="code" id="p83code2"><pre class="bash" style="font-family:monospace;">Create a hard disk image:
&nbsp;
 <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda1 <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hda1.bin
&nbsp;
Create a compressed disk image
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda1 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span>  <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hda1.bin.gz
&nbsp;
Back up the MBR
&nbsp;
 <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hda.boot.mbr <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span>
&nbsp;
Restore MBR <span style="color: #7a0874; font-weight: bold;">&#40;</span>from a Live CD<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>hda1<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hda.boot.mbr <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span>
&nbsp;
Backup a drive to another drive
&nbsp;
 <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hdb <span style="color: #007800;">conv</span>=noerror,<span style="color: #c20cb9; font-weight: bold;">sync</span> <span style="color: #007800;">bs</span>=4k</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/using-dd-create-disk-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another trick for cloning</title>
		<link>http://blog.fabiolagana.net/another-trick-cloning/</link>
		<comments>http://blog.fabiolagana.net/another-trick-cloning/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 15:13:02 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[cloning]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/2008/07/10/another-trick-for-cloning-2/</guid>
		<description><![CDATA[For a beowulf of full fledged Debian systems (local disk, no shared /usr or anything like that) you'd need to use prototype-node: dselect (install and configure everything you want) dpkg --get-selections &#62; selection.file second node: dpkg --set-selections &#60; selection.file apt-get install dselect-upgrade [log any questions and answers] [create an expect script with your responses to [...]]]></description>
			<content:encoded><![CDATA[<pre>   For a beowulf of full fledged Debian systems (local disk, no shared /usr
or anything like that) you'd need to use

prototype-node:
 dselect  (install and configure everything you want)
 dpkg --get-selections &gt; selection.file

second node:

  dpkg --set-selections &lt; selection.file
  apt-get install dselect-upgrade
  [log any questions and answers]
  [create an expect script with your responses to any questions]

rest-of-nodes:

   dpkg --set-selections &lt; selection.file
  expect -c "apt-get install dselect-upgrade" -f expect-script
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/another-trick-cloning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cloning disk using dd</title>
		<link>http://blog.fabiolagana.net/cloning-disk-using-dd/</link>
		<comments>http://blog.fabiolagana.net/cloning-disk-using-dd/#comments</comments>
		<pubDate>Thu, 29 May 2008 13:07:07 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[cloning]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[zcat]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=11</guid>
		<description><![CDATA[from your machine to external usb disk: dd if=/dev/&#38;lt;your machine disk&#38;gt; &#124; gzip &#38;gt; /path/nameofyourimg.gz from your img saved to external usb disk: zcat /path/nameofyourimg.gz &#124; dd of=/dev/&#38;lt;your machine disk&#38;gt;]]></description>
			<content:encoded><![CDATA[<p>from your machine to external usb disk:</p>

<div class="wp_codebox"><table><tr id="p115"><td class="code" id="p11code5"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;your machine disk<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>nameofyourimg.gz</pre></td></tr></table></div>

<p>from your img saved to  external usb disk:</p>

<div class="wp_codebox"><table><tr id="p116"><td class="code" id="p11code6"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">zcat</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>nameofyourimg.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/&amp;</span>lt;your machine disk<span style="color: #000000; font-weight: bold;">&amp;</span>gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/cloning-disk-using-dd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
