<?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>Some stuff &#187; data recovery services</title>
	<atom:link href="http://blog.yhuang.org/?feed=rss2&#038;tag=data-recovery-services" rel="self" type="application/rss+xml" />
	<link>https://blog.yhuang.org</link>
	<description>here.</description>
	<lastBuildDate>Wed, 27 Aug 2025 08:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>I tried a whole bunch of things, and all that (part 2)</title>
		<link>https://blog.yhuang.org/?p=37</link>
		<comments>https://blog.yhuang.org/?p=37#comments</comments>
		<pubDate>Sun, 24 Dec 2006 08:18:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[data recovery services]]></category>
		<category><![CDATA[ddrescue]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[external usb hard disk]]></category>
		<category><![CDATA[hard disk recovery]]></category>
		<category><![CDATA[miracle recovery]]></category>
		<category><![CDATA[usb hard disk]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=37</guid>
		<description><![CDATA[This is part of the hard disk recovery documentation. Part 2. I tried a whole bunch of things (most that didn&#8217;t work), and all that. What is there to do? Data recovery services that run into the thousands of dollars can probably get most of the data back &#8212; they have a track record of [...]]]></description>
			<content:encoded><![CDATA[<p>This is part of the hard disk recovery documentation.</p>
<p>Part 2.</p>
<p><font color="#770033"><br />
I tried a whole bunch of things (most that didn&#8217;t work), and all that.</p>
<p>What is there to do?  Data recovery services that run into the thousands of dollars can probably get most of the data back &#8212; they have a track record of that.  My data isn&#8217;t worth nearly that much, sad to say.  But I don&#8217;t feel like abandoning perfectly good data, either.  Yes, there is probably McNorton ViralGhostSpy or whatever this bloatware is called these days; I don&#8217;t know&#8230; I prefer more flexibility so I&#8217;ll take the trouble to proceed with free or freely available tools.</font><br />
<span id="more-37"></span><br />
<font color="#770033">Since the Seagate disk is too dead to figure out what is on itself, I need to get its contents off onto another medium.  I need two things: some means of getting the only computer that can read the disk as is (the laptop) into a working state, and some means of direct disk copying from the laptop.  I have an enclosured USB drive: 160GB.  Let&#8217;s work with that.  To protect the original broken Seagate, I left it out of the laptop for the time being.</p>
<p>Many a self-proclaimed miracle recovery boot disks/discs conceivably take care of both tasks.  A quick search turns up a boot floppy software called &#8220;EaseUs disk copy&#8221; using a self-booting &#8220;freedos&#8221; but it was useless because it would like to copy <b>within</b> a computer (from master IDE drive to slave).  Into the trash it goes.  There were a few others like this, all useless.</p>
<p>Next up, I&#8217;ve got some Windows-based disk editor tool.  Maybe I can install Windows on this external USB hard disk so I can boot the laptop?  No.  Evidently <a href="http://www.microsoft.com/whdc/device/storage/usb-boot.mspx">it isn&#8217;t supported</a>.  Windows installed fine on the external USB drive (all files are copied), but on the first boot BSOD&#8217;d.  Some say there is a way to <a href="http://www.ngine.de/index.jsp?pageid=4176">hack the Windows CD</a> to make this work.  Well I don&#8217;t have that much time to waste, so forget that.</p>
<p>Next up, Knoppix version 5 (Linux Knoppix 2.6.17 #4 SMP PREEMPT, i686 GNU/Linux).  I had some difficulty mounting the external USB hard drive, but finally by booting from CD, <b>then</b> attaching the external drive <b>after startup</b>, Knoppix found it and stuck it under /dev/sdaN (for N in 1,2,etc.).  The drive had a 20GB FAT32 partition already (where I attempted to install Windows before), along with an empty 120GB partition, so the empty partition was at /dev/sda2.</p>
<p>These days, the favorite recovery tool under Knoppix seems to be the ignore-on-read-error disk copy tool called <a href="http://www.gnu.org/software/ddrescue/ddrescue.html">ddrescue</a> (not the Knoppix-included <a href="http://www.garloff.de/kurt/linux/ddrescue/">dd_rescue</a>).  I believe the difference is that ddrescue is much more automatic in dealing with the log file &#8212; this is important.  Both will copy a disk&#8217;s contents into a disk image file.  ddrescue needs to be compiled though; fortunately compilation was clean.</p>
<p>The choice of filesystem for /dev/sda2, which would hold the disk image, was limited.  The plan was to eventually read the data on a Windows computer, which would be easiest with FAT32 or NTFS.  However, NTFS write-support on Knoppix is of unknown reliability (&#8211; why? I don&#8217;t know).  I tried FAT32, using mkdosfs to format because Windows refuses to format a FAT32 volume larger than 32GB.  Then I even began copying data before realizing, to my chagrin, that FAT32 has another limit: 4GB on the file size.  That left ext2, and its default block-size of 4K was fine (block-size under 2K would be a problem due to file size limitation), so something like:</p>
<p>  # mkfs.ext2 /dev/sda2<br />
  # mount -t ext2 /dev/sda2 /media/sda2</p>
<p>Progress.</p>
<p>Now, computer off.  Broken Seagate goes back in.  Boot.  And&#8230; no boot.  The boot sequence now stuck at two points where it wanted to read the Seagate drive (on /dev/hda):  First, it attempted to find a (nonexistent) CD on /dev/hda, resulting in churning the hard drive for a few seconds (damaging my data further, I&#8217;m sure!)  Next, at the auto-detection stage to create /etc/fstab, Knoppix repeatedly tried to read the drive, and apparently would go no further.  Online sources are rife with suggestions of passing the boot options &#8220;nofstab&#8221; and &#8220;noswap&#8221; to the kernel to solve this problem.  Wrong.  With these options set, it still had the same problem at the auto-creation of /etc/fstab.  The solution turned out to be nail-biting patience: After booting and allowing the auto-detection to proceed for 10+ minutes of now-familiar churn-churn-churn on the broken Seagate, heating it up and losing me more data, it eventually did go on and boot.  Um&#8230; whoever is responsible for this boot code should be flogged or at least, made to go home and work on it some more.  I can think of zero (0) reasons why this particular process warrants persisting through multiple disk read errors.</p>
<p>Now, /dev/hda wouldn&#8217;t mount (of course), but no matter. Here we have: </p>
<p>  /media/sda2#  ddrescue -B -n /dev/hda rescue.image rescue.log</p>
<p>ddrescue proceeded through the evening, surprising me by writing quite a bit of good data onto the disk image, even as it sticks briefly at various corrupted points, but then got bogged down at around 3200MB.  I left it to its own devices at 3AM.</font></p>
<p>Lessons today:</p>
<ul>
<li>Knoppix is genius. Why is there no Live-Windows-on-CD? Oh, I know why.</li>
<li>Knoppix is semi-retarded for disk recovery because it fights with a broken hard disk on boot.</li>
<li>FAT32 has a 4GB file-size limit even if you manage to format the volume to be rather large.</li>
<li>ddrescue is a great tool to have.</li>
</ul>
<p>On to <a href="http://scripts.mit.edu/~zong/wpress/?p=38">Part 3</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=37</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
