<?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>Note To Self &#187; Hardware</title>
	<atom:link href="http://www.hawksley.net/tag/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hawksley.net</link>
	<description>John Hawksley &#124; www.hawksley.net</description>
	<lastBuildDate>Sun, 30 May 2010 14:13:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Cloning a Dell Hard Disk (HPA Problem)</title>
		<link>http://www.hawksley.net/2010/05/cloning-a-dell-hard-disk-hpa-problem/</link>
		<comments>http://www.hawksley.net/2010/05/cloning-a-dell-hard-disk-hpa-problem/#comments</comments>
		<pubDate>Sun, 30 May 2010 14:13:46 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HPA]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.hawksley.net/?p=209</guid>
		<description><![CDATA[My (far) better half&#8217;s old notebook hard disk was becoming slower and slower with bad sectors; it was 4 years old and was taking quite a long time to both boot and come out of hibernation. The Hitachi tool reported a large number of bad sectors, and it was getting worse, so we decided to [...]]]></description>
			<content:encoded><![CDATA[<p>My (far) better half&#8217;s old notebook hard disk was becoming slower and slower with bad sectors;  it was 4 years old and was taking quite a long time to both boot and come out of hibernation.  The Hitachi tool reported a large number of bad sectors, and it was getting worse, so we decided to change it out.</p>
<p>We bought a new 160 GB Western Digital Scorpio Blue and a 2.5&#8243; SATA -&gt; USB enclosure.  I put Norton Ghost on her machine and set off the image, expanding both the C and D drives which were on the disk from their original 40 and 20 GB sizes to 120 and 40 GB respectively.</p>
<p>This took a good few hours as the imager had to re-read all the bad sectors multiple times.  After it completed, I swapped out the disks and rebooted.  Windows started to boot but NTLDR immediately blue-screened with <a href="http://support.microsoft.com/kb/555302"><strong>UNMOUNTABLE BOOT VOLUME</strong></a>.</p>
<p>I re-imaged the disk with Partition Magic, thinking Ghost had messed up, but had the same result.</p>
<p>Now having a disk I was sure had imaged correctly, I booted with Kubuntu Live and ran fdisk.  This showed that the disk was showing as 58 GB big, with an invalid partition table.</p>
<p>After using <a href="http://www.hdat2.com/">HDAT2</a> to get low-level info on the disk, it turns out that HPA was active on the disk.  HPA &#8211; <em>Host Protected Area</em> &#8211; is a way of changing the apparent size of a hard disk in order to &#8216;hide&#8217; a partition at the end of the disk.</p>
<p>I used HDAT2 to remove the HPA flag, and the disk returned to its full size of 160GB.</p>
<p>On the next boot, the problem returned.  Before I explain what happened, the layout of the disk is as follows:</p>
<ul>
<li><strong>Partition 0 </strong>is a small Dell utility partition</li>
<li><strong>Partition 1</strong> is Windows XP, NTFS,  <em>C:</em></li>
<li><strong>Partition 2 </strong>is NTFS <em>D:</em></li>
<li><strong>Partition 3 </strong>is <strong>beyond the HPA</strong>, i.e. <em>hidden </em>(normally), containing <strong>Dell MediaDirect</strong>.</li>
</ul>
<p>Dell MediaDirect is triggered off a hardware button which we have never pressed, and we assume boots something used to play CDs, MP3s etc.</p>
<p>So the boot sequence for a normal (non MediaDirect) boot on a Dell notebook seems to be:</p>
<ol>
<li>Power on via Power button.</li>
<li>MBR/Partition table designates partition 0 (P0) as the boot partition.</li>
<li>P0 boots.</li>
<li>MediaDirect button is not pressed.</li>
<li>Dell loader hides P3 &#8211; i.e. sets HPA  active and set to 58 BG to hide it.</li>
<li>Dell loader chain boots P1 (Windows XP).</li>
</ol>
<p>With MediaDirect active:</p>
<ol>
<li>Power on via MediaDirect button.</li>
<li>MBR/Partition table designates P0 as the boot partition.</li>
<li>P0 boots.</li>
<li>MediaDirect is pressed (or has been pressed and flagged in the BIOS).</li>
<li>Dell loader unhides P3 by removing HPA (and copies a valid partition table containing P3 in), making the apparent size of the disk the <em>full </em>size (60 GB).</li>
<li>Dell loader chain boots P3 (MediaDirect).</li>
</ol>
<p>When we transplanted the disk, step <strong>5</strong> from the Normal sequence above re-set the disk size to 58 GB, which was in the middle of the new C:, causing the <strong>UNMOUNTABLE BOOT VOLUME </strong>from Windows &#8211; which was correct:  the partition was far too short &#8212; it should have been 120 GB.  The truncated partition was (naturally) not a valid NTFS filesystem.</p>
<p>We don&#8217;t need MediaDirect at all, so here&#8217;s how I solved it:</p>
<ol>
<li>Use HDAT2 to remove the HPA, making the disk appear 160 GB on the next boot.</li>
<li><strong>Boot Kubuntu Live from CD immediately</strong>.  This is important because if you allow the hard disk boot sequence to commence, it will reset HPA to 58 GB (step 5 from the normal sequence).  If you don&#8217;t catch the boot menu in time, and start a boot from disk, reboot and go back to step 1.</li>
<li>Use <strong>fdisk</strong> in linux to delete P0 (Dell utility) and P3 (Dell MediaDirect),  then nominate P1 as the boot partition. Rewrite the partition table.  You can enlarge partitions later using Partition Magic.</li>
<li>Boot <strong>Windows Repair Mode</strong> and run <strong>bootcfg /scan </strong>to ensure Windows knows about all the Windows installations and <strong>fixboot</strong> to fix up NTLDR.  I can&#8217;t remember if I had to run <strong>fixmbr </strong>or not &#8211; try it without first.</li>
<li>Reboot, and Windows should boot from P1.</li>
</ol>
<p>The problem is, if you don&#8217;t know HPA is active (or like me, you didn&#8217;t know HPA even existed) you&#8217;ll never come up with google search terms to even start to solve the problems.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hawksley.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hawksley.net/2010/05/cloning-a-dell-hard-disk-hpa-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysterious CPU Performance Loss Solved</title>
		<link>http://www.hawksley.net/2009/02/mysterious-cpu-performance-loss-solved/</link>
		<comments>http://www.hawksley.net/2009/02/mysterious-cpu-performance-loss-solved/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 13:46:15 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.hawksley.net/?p=82</guid>
		<description><![CDATA[I just started to notice that the CPU in my main desktop machine was grossly underperforming, despite BIOS tools telling me it was running at nominal speed.  It&#8217;s a (now old) Pentium 4 3.0 GHz HT single core which has been fine for what I need up to now, but lately I&#8217;ve been getting massive [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_89" class="wp-caption alignleft" style="width: 130px"><img class="size-medium wp-image-89" title="mainboard" src="http://www.hawksley.net/wp-content/uploads/2009/02/mainboard-200x300.jpg" alt="mainboard" width="120" height="180" /><p class="wp-caption-text"> </p></div>
<p>I just started to notice that the CPU in my main desktop machine was grossly underperforming, despite BIOS tools telling me it was running at nominal speed.  It&#8217;s a (now old) Pentium 4 3.0 GHz HT single core which has been fine for what I need up to now, but lately I&#8217;ve been getting massive frame-rate problems with MS Flight Sim 9.</p>
<p>I should get around 20 FPS (I&#8217;m using some really detailed sceneries and aircraft) but it was topping out (!) at around 4.  This is unplayable.</p>
<p>In the BIOS I found an option entitled &#8220;CPU Internal Temperature Control&#8221;, which apparently means that if the chip gets hot, it internally idles to prevent overheating.  This occurs while the FSB and the internal clock gen operate at the same frequency (according to Gabriel Topola&#8217;s excellent <a href="http://www.gtopala.com/">SIW &#8211; System Information for Windows</a>.)</p>
<p>I turned that off and started Flight Sim.  Temperature shot up to 98°C (the last time I was able to check it) then the machine shut down &#8211; it didn&#8217;t halt, or hang, it turned off &#8211; completely.</p>
<p>Spring cleaning time.  I took the CPU fan off, took the CPU out of its ZIF socket and cleaned all the thermal paste off both parts.  The paste had totally broken down.  I blew out the CPU fan (outside) and a <em>very</em> large quantity of dust came out.  New paste, replace the fan assembly and voila &#8211; 20 FPS and the temp tops out at 55°C.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hawksley.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hawksley.net/2009/02/mysterious-cpu-performance-loss-solved/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
