<?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>Allen Brooker (AllenJB) &#187; hardware</title>
	<atom:link href="http://allenjb.me.uk/?feed=rss2&#038;tag=hardware" rel="self" type="application/rss+xml" />
	<link>http://allenjb.me.uk</link>
	<description>Programming yesterday was about developers vs idiots. Now the developers are the idiots.</description>
	<lastBuildDate>Tue, 31 Aug 2010 12:45:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Failing disks suddenly very small?!?</title>
		<link>http://allenjb.me.uk/?p=178</link>
		<comments>http://allenjb.me.uk/?p=178#comments</comments>
		<pubDate>Mon, 09 Nov 2009 14:47:02 +0000</pubDate>
		<dc:creator>AllenJB</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://allenjb.me.uk/?p=178</guid>
		<description><![CDATA[I recently had a disk start spewing media errors all over my kernel logs, as they occaisionally tend to do. I unmounted it and then started some basic investigation to see how bad the problem was. The first thing I checked was whether the partition table was still in tact, which oddly it appeared not [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a disk start spewing media errors all over my kernel logs, as they occaisionally tend to do. I unmounted it and then started some basic investigation to see how bad the problem was. The first thing I checked was whether the partition table was still in tact, which oddly it appeared not to be. The disk was reporting it was a fraction of its previous total size, even in the BIOS.</p>
<p>I did some further investigation and this was when I discovered the &#8220;<a href="http://en.wikipedia.org/wiki/Host_protected_area">Host Protected Area</a>&#8221; (HPA) feature had been activated. At a guess, either the kernel or the disk itself activated this feature to prevent further damage to the troubled areas, but if you don&#8217;t know about it and don&#8217;t do deep enough research to find out about it, it could be easy to assume that the data is unrecoverable.</p>
<p>As the wikipedia article linked above mentions, a bit of hdparm magic (in my case thanks to sysrescuecd) and your entire disk will be visible again, leaving you free to attempt some data recovery (I used ddrescue and the errsize was only a few hundred K &#8211; haven&#8217;t found which files yet, so it&#8217;s likely data I don&#8217;t care about or never use!)</p>
]]></content:encoded>
			<wfw:commentRss>http://allenjb.me.uk/?feed=rss2&amp;p=178</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
