<?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>Graversen &#187; linux</title>
	<atom:link href="http://graversen.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://graversen.org</link>
	<description>Daniels comments</description>
	<lastBuildDate>Tue, 13 Jul 2010 20:43:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Harddisk crash</title>
		<link>http://graversen.org/2007/08/30/6/</link>
		<comments>http://graversen.org/2007/08/30/6/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 20:05:19 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://graversen.org/2007/08/30/6/</guid>
		<description><![CDATA[I had the misfortune that my harddrive at my laptop crashed, it always gives a lot of problem. The largest is if the backup is up to date. The company we have a backup client at for the laptops, but it only backup information when you are in the office and as a consultant it [...]]]></description>
			<content:encoded><![CDATA[<p>I had the misfortune that my harddrive at my laptop crashed, it always gives a lot of problem. The largest is if the backup is up to date. The company we have a backup client at for the laptops, but it only backup information when you are in the office and as a consultant it is not every day I&#8217;m there, so there where some data which were not backed up.</p>
<p>I found a external harddrive case and placed the failed disk in, and tried to use the disk at an other computer. But it was not possible because there where some bad sections on the drive.</p>
<p>I then tried to use some of the free/shareware tools that lets you see, what information they can  restore. The you have to pay for the program if you want to restore the data.</p>
<p>The only program i found, which could solve some of the problem. But it seem like it was looping around bad areas. So it could not be used.</p>
<p>The next step in the recovery process, was to use Linux. I have a dual boot Linux/Vista workstation at home. I was impressed how easy it was to get access to the drive.</p>
<p>First run <span style="font-style: italic">dd_rescue</span>, it works like dd but it has some error handling around the use of bad sectors. See (<a href="http://www.garloff.de/kurt/linux/ddrescue/" title="http://www.garloff.de/kurt/linux/ddrescue/" id="rgdr">http://www.garloff.de/kurt/linux/ddrescue/</a> )  It was easy to install with apt-get at Ubuntu, and it should be easy with other systems.</p>
<p>The process of running dd_rescue took for ever. The 38G drive was processed in around 20 hours, and some of the processing was really slow.</p>
<p>The only commands that I had to perform was.</p>
<p><span style="background-color: #c0c0c0">sudo apt-get install ntfsprogs ntfs-3g</span><br style="background-color: #c0c0c0" /><br style="background-color: #c0c0c0" /><span style="background-color: #c0c0c0">ddrescue /dev/sdf2 hardrive.img</span><br style="background-color: #c0c0c0" /><br style="background-color: #c0c0c0" /><span style="background-color: #c0c0c0">Press Ctrl-C to interrupt</span><br style="background-color: #c0c0c0" /><span style="background-color: #c0c0c0">rescued:    39933 MB,  errsize:   24576 B,  current rate:       85 B/s</span><br style="background-color: #c0c0c0" /><span style="background-color: #c0c0c0">   ipos:    31444 MB,   errors:      49,    average rate:     670 kB/s</span><br style="background-color: #c0c0c0" /><span style="background-color: #c0c0c0">   opos:    31444 MB</span></p>
<p>After running dd_rescue it was just to use mount the drive image as a loop back drive. Then there was access to all the information.<br />
I suspects that it could be possible to use dd to write the image to a new drive an then use the computer again. But I got a re-installation of the computer to be safe. To copy the files I instead used  samba  to  share  drive image and then copied the files on the network.</p>
<p><span style="background-color: #c0c0c0">sudo mkdir /media/windisk</span><br style="background-color: #c0c0c0" /><span style="background-color: #c0c0c0">sudo mount -o loop hardrive.img /media/windisk/ -o umask=000</span></p>
<p>And to make sure that Dell was not going to use the data for something else, I wrote a lot of garbage to it with shred.<br />
<span style="background-color: #c0c0c0">shred -vfz -n 3 /dev/sdf2</span></p>
<p>It was the easiest repair i have performed on my computer so far. So there are no need to buy one of the expensive 50$+ restore drives, went it is possible to use a free version of Linux and other tools. I could probably have used the Ubuntu live cd for the backup.</p>
]]></content:encoded>
			<wfw:commentRss>http://graversen.org/2007/08/30/6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
