<?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>Throb.net &#187; articles</title>
	<atom:link href="http://throb.net/category/articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://throb.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Mon, 23 Jan 2012 06:20:35 +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>Recovering a bad drive with the Ubuntu Live CD</title>
		<link>http://throb.net/recovering-a-bad-drive-with-the-ubuntu-live-cd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recovering-a-bad-drive-with-the-ubuntu-live-cd</link>
		<comments>http://throb.net/recovering-a-bad-drive-with-the-ubuntu-live-cd/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 16:35:15 +0000</pubDate>
		<dc:creator>throb</dc:creator>
				<category><![CDATA[articles]]></category>

		<guid isPermaLink="false">http://throb.net/?p=379</guid>
		<description><![CDATA[Well, I lost a drive in my raid.  The new drive did not take so I was advised to clone the drive.  I tried several Windows based utils.  All of them failed at the task of pure sector cloning.  Pathetic. Well, Linux (Ubuntu) to the rescue.  I downloaded the UbuntuRead more]]></description>
			<content:encoded><![CDATA[<p>Well, I lost a drive in my raid.  The new drive did not take so I was advised to clone the drive.  I tried several Windows based utils.  All of them failed at the task of pure sector cloning.  Pathetic.</p>
<p>Well, Linux (Ubuntu) to the rescue.  I downloaded the Ubuntu 11.10 LiveCD because I knew I could use ddrescue to copy sectors and the software would skip the bad sectors.  Groovy.</p>
<p>Well, it took a bit of fiddling to get it to work so here is what I did.</p>
<p><strong>Step 1</strong> : Grab Ubuntu : <a href="http://www.ubuntu.com/download/ubuntu/download">http://www.ubuntu.com/download/ubuntu/download</a></p>
<p><strong>Step 2</strong> : Once you have booted in and are &#8220;trying&#8221; out Ubuntu you will need to dd_rescue package.</p>
<p>If you downloaded the 32 bit Ubuntu go here :<br />
<a href="http://packages.ubuntu.com/oneiric/i386/ddrescue/download">http://packages.ubuntu.com/oneiric/i386/ddrescue/download</a></p>
<p>If you downloaded the 64 bit Ubuntu go here :<br />
<a href="http://packages.ubuntu.com/oneiric/amd64/ddrescue/download">http://packages.ubuntu.com/oneiric/amd64/ddrescue/download</a></p>
<p>Pick a mirror and you can download/save the .deb file.</p>
<p><strong>Step 3</strong> : Extract the deb file</p>
<p>You should cd ~/Downloads</p>
<p>in here you want to extract the file like so :</p>
<div class="syntaxhighlighter_container" ><pre class="brush: text">
ar x ddrescue_1.23-1_i386.deb
</pre></div>
<p>This will create several files :</p>
<div class="syntaxhighlighter_container" ><pre class="brush: text">
-rw-r--r--  1 ubuntu ubuntu  1096 2012-01-10 07:22 control.tar.gz
-rw-r--r--  1 ubuntu ubuntu 22251 2012-01-10 07:22 data.tar.gz
-rw-rw-r--  1 ubuntu ubuntu 23540 2012-01-10 07:21 ddrescue_1.23-1_i386.deb
-rw-r--r--  1 ubuntu ubuntu     4 2012-01-10 07:22 debian-binary
</pre></div>
<p>You want to extract the data.tar.gz :</p>
<div class="syntaxhighlighter_container" ><pre class="brush: text">
tar zxvf data.tar.gz
</pre></div>
<p><img class=" wp-image-392 alignnone" title="Screenshot at 2012-01-10 07:23:21" src="http://throb.net/wp-content/uploads/2011/12/Screenshot-at-2012-01-10-072321.png" alt="" width="362" height="295" /></p>
<p>This will give you several more files but the one you want is : ./bin/dd_rescue</p>
<p><strong>Step 4</strong> : Figure out which disk you need to clone!</p>
<p>Get a list of disks on the system like so :</p>
<div class="syntaxhighlighter_container" ><pre class="brush: text">
sudo lshw -C disk
</pre></div>
<p>This will give you manufacturer info so it will be easy to figure out which one is the new drive, etc.  Ok, whew.</p>
<p>It looks like so :</p>
<p><img class="alignnone  wp-image-380" title="Screenshot at 2012-01-10 07:28:29" src="http://throb.net/wp-content/uploads/2012/01/Screenshot-at-2012-01-10-072829.png" alt="" width="365" height="680" /></p>
<p><strong>Step 5</strong> : clone that sucker!</p>
<div class="syntaxhighlighter_container" ><pre class="brush: text">
sudo ./bin/dd_rescue -v /dev/sdc /dev/sdd
</pre></div>
<p>This means clone the /dev/sdc device to /dec/sdd with verbose mode turned on.  Yes you can watch it clone.  It&#8217;s exciting.  Actually this sucks.  It&#8217;s hours and when it encounters errors it slows down like a stoned turtle.</p>
<p>That should do it however.  Hopefully the data is intact on the new drive!</p>
]]></content:encoded>
			<wfw:commentRss>http://throb.net/recovering-a-bad-drive-with-the-ubuntu-live-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

