<?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>PCR&#039;s notepad &#187; Windows</title>
	<atom:link href="http://notepad.patheticcockroach.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://notepad.patheticcockroach.com</link>
	<description>The area in patheticcockroach.com where the EEG isn&#039;t isoelectric</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:11:36 +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>How to avoid reboot after BOINC installation (in Windows)</title>
		<link>http://notepad.patheticcockroach.com/2197/how-to-avoid-reboot-after-boinc-installation-in-windows/</link>
		<comments>http://notepad.patheticcockroach.com/2197/how-to-avoid-reboot-after-boinc-installation-in-windows/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 17:01:40 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2197</guid>
		<description><![CDATA[Some pieces of software just seem to be from the past even though they&#8217;re very current. BOINC, for instance, always makes the annoying demand of rebooting the computer when you install it. Of course, that would be fine if it was actually necessary, but it isn&#8217;t. Demanding a restart is, unfortunately, still a fairly common [...]]]></description>
			<content:encoded><![CDATA[<p>Some pieces of software just seem to be from the past even though they&#8217;re very current. BOINC, for instance, always makes the annoying demand of rebooting the computer when you install it. Of course, that would be fine if it was actually necessary, but it isn&#8217;t. Demanding a restart is, unfortunately, still a fairly common behavior of current software, but usually you&#8217;re still given the choice, ie you can just try to launch the program anyway, and in 99.9% of cases it will work just fine.<br />
BOINC doesn&#8217;t do that: after its installation, BOINC will refuse to start until you actually restart the computer. But the thing is, it won&#8217;t refuse to start because it does need Windows to be restarted, it will refuse to start because it detects that Windows hasn&#8217;t been restarted. Now, I bet you got the idea already: we just need to fool it into thinking you actually restarted.<br />
During its installation, BOINC creates an empty file named <code>RebootPending.txt</code> in its root directory (ie same place as the BOINC executables). And then it schedules it for removal at the next start-up. Just delete that file, and you&#8217;ll be able to start BOINC without restarting the computer. It should then work totally fine, it really doesn&#8217;t need a restart at all, as far as I know.</p>
<p>On a side note, you may also want to remove BOINC from the HKLM run key: it places 2 entries there, no matter how you configure it not to run at start-up. What I mean is, even when you configure it (from its settings) not to run at start-up it <a href="http://boinc.berkeley.edu/dev/forum_thread.php?id=6812">does run at start-up</a>, only it doesn&#8217;t start the distributed computations. Why this design? I have no idea&#8230;<br />
PS: if you&#8217;re looking for HKLM run key: run ([windows key] + R) regedit then browse to <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run</code>. Then the values you want to smash are <code>boincmgr</code> and <code>boinctray</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2197/how-to-avoid-reboot-after-boinc-installation-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching your SATA hard drive from IDE to AHCI</title>
		<link>http://notepad.patheticcockroach.com/2168/switching-your-sata-hard-drive-from-ide-to-ahci/</link>
		<comments>http://notepad.patheticcockroach.com/2168/switching-your-sata-hard-drive-from-ide-to-ahci/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 08:53:55 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2168</guid>
		<description><![CDATA[AHCI (for Advanced Host Controller Interface) is a standard defined by Intel for operating SATA devices (see Wikipedia for some technical gibberish ). Bottom-line is, switching an SATA hard drive from IDE to AHCI will probably give you a nice speed boost, as you can see in this article (in French, sorry). It&#8217;s supported natively [...]]]></description>
			<content:encoded><![CDATA[<p>AHCI (for Advanced Host Controller Interface) is a standard defined by Intel for operating SATA devices (see <a href="http://en.wikipedia.org/wiki/Advanced_Host_Controller_Interface">Wikipedia</a> for some technical gibberish <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ). Bottom-line is, switching an SATA hard drive from IDE to AHCI will probably give you a nice speed boost, as you can see in <a href="http://www.tt-hardware.com/test/hardware/passer-en-ahci-vraiment-la-galere">this article</a> (in French, sorry). It&#8217;s supported natively in Windows Vista/7 and Linux starting with kernel 2.6.19.</p>
<p>From what I read, there are many potential issues for switching from IDE to AHCI under Windows XP and Vista, and I can&#8217;t test those so I just won&#8217;t cover them. Basically on Windows XP you&#8217;ll need to install AHCI drivers, on Windows Vista you&#8217;ll need to apply the latest updates.</p>
<p>For Windows 7, the drivers are already there, but you need to activate them. That is, if you install Windows 7 on a drive already configured in AHCI, you have nothing to do, all will be handled automatically, but if your hard drive was configured in IDE when you installed Windows 7, then you&#8217;ll need to enable AHCI drivers manually. To do so:</p>
<ul>
<li>Launch regedit (hit start button, type &#8220;regedit&#8221; and hit enter)</li>
<li>Navigate to the <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStorV</code> key, and change the <em>Start</em> value from 3 to 0</li>
<li>Do the same with key <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\msahci</code></li>
</ul>
<p>That&#8217;s it, your Windows 7 is now ready to run on an AHCI drive. Now you just need to make the switch from IDE to AHCI in your BIOS.</p>
<p>Source: <a href="http://support.microsoft.com/kb/922976">Microsoft Knowledge Base &#8211; Error message when you start a Windows 7 or Windows Vista-based computer after you change the SATA mode of the boot drive: &#8220;STOP 0x0000007B INACCESSABLE_BOOT_DEVICE&#8221;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2168/switching-your-sata-hard-drive-from-ide-to-ahci/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Graphviz&#8217;s installation error related to Microsoft.VC80.CRT</title>
		<link>http://notepad.patheticcockroach.com/1683/fixing-grapvizs-installation-error-related-to-microsoft-vc80-crt/</link>
		<comments>http://notepad.patheticcockroach.com/1683/fixing-grapvizs-installation-error-related-to-microsoft-vc80-crt/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 15:41:37 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=1683</guid>
		<description><![CDATA[Ok, before even starting I have to tell you this is a long, tedious and probably (quite likely) not 100% reliable solution. You&#8217;ll notably need some secondary OS (the easiest/fastest way is probably to grab an installation CD of Ubuntu and use it as a liveCD), and be ready to use it to manipulate some [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, before even starting I have to tell you this is a long, tedious and probably (quite likely) not 100% reliable solution. You&#8217;ll notably need some secondary OS (the easiest/fastest way is probably to grab <a href="http://www.ubuntu.com/desktop/get-ubuntu/download">an installation CD of Ubuntu</a> and use it as a liveCD), and be ready to use it to manipulate some Windows system files (folder, actually)&#8230; It <strong>will</strong> very likely upset some of your programs, too, even though on my computer all ended well in the end (but at some point, my PC Tools Firewall did complain a little).</p>
<p>If you&#8217;re still with me, on with the problem and its solution <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>The problem</h2>
<p>When installing the latest Graphviz (graphviz-2.26.3.msi) on Windows 7 x64, I got blocked by the following error:</p>
<blockquote><p>An error occurred during the installation of assembly &#39;Microsoft.VC80.CRT,type=&#34;win32&#34;,version=&#34;8.0.50727.42&#34;, publicKeyToken=&#34;1fc8b3b9a1e18e3b&#34;,processorArchitecture=&#34;amd64&#34;&#39;. Please refer to Help and Support for more information.</p></blockquote>
<p><img src="http://img.patheticcockroach.com/01/Graphviz_error.png" alt="Error during the installation of assembly Microsoft.VC80.CRT" width="446" height="162" /><br />
Some researched showed me that this can occur on various other Windows versions: <a href="http://www.graphviz.org/bugs/b1829.html">Vista 32 bits</a>, probably <a href="http://www.graphviz.org/bugs/b2123.html">Windows XP</a> (<a href="http://connect.microsoft.com/VisualStudio/feedback/details/121817/error-1935-an-error-occurred-during-the-installation-of-assembly-microsoft-vc80-mfc-processorarchitecture-x86-publickeytoken-1fc8b3b9a1e18e3b">here&#8217;s a sure one</a>), another one on an <a href="http://www.graphviz.org/bugs/b2046.html">unspecified flavor of Windows 7</a>, etc. So globally, it can happen with any &#8220;recent&#8221; Windows version, from XP to Vista.<br />
From the look of it, I assumed this was <a href="http://notepad.patheticcockroach.com/1666/installing-visual-c-2010-and-windows-sdk-for-windows-7-offline-installer-and-installation-troubleshooting/">once again</a> an issue related to some Visual C++ Redistributable package, and after trying quite a few I eventually tracked it down to Microsoft Visual C++ 2005 SP1 Redistributable Package (x64 in my case). As a matter of fact, here is the original error from that Visual C++ 2005 Redistributable:</p>
<blockquote><p><strong>Error 1935.</strong>An  error occurred during the installation of assembly &#39;Microsoft.VC80.CRT,type=&#34;win32&#34;,version=&#34;8.0.50727.42&#34;, publicKeyToken=&#34;1fc8b3b9a1e18e3b&#34;,processorArchitecture=&#34;amd64&#34;&#39;. Please refer to Help and Support for more information.</p></blockquote>
<p><a href="http://img.patheticcockroach.com/01/Graphviz_error_VC2005_redist.png"><img src="http://img.patheticcockroach.com/01/Graphviz_error_VC2005_redist.png" alt="Error during the installation of assembly Microsoft.VC80.CRT" width="500" height="95" /></a><br />
So here we are with that error and where it comes from.</p>
<h2>The possible solutions</h2>
<p>At first I tried the kind of thing that previously worked fine with the Windows SDK issue: I uninstalled almost all my Visual C++ Redistributable packages (I write &#8220;almost&#8221; because, strangely enough, the Catalyst Control Center was still up and working after I removed what I thought was the last one&#8230;). Then I ran the installer again: no success, even after a restart.</p>
<p>I then tried to look for solutions on Internet.<br />
I found <a href="http://social.msdn.microsoft.com/Forums/en/Vsexpressinstall/thread/beeceb19-69cc-4044-94f0-591feec04626">that weird one</a> saying to install Visual C++ Express 2008&#8230; I didn&#8217;t even try it. In that same thread, which was for Vista, someone suggested to install SP1. I didn&#8217;t try updating my Windows either.</p>
<p>I also found a link to Microsoft&#8217;s knowledge base (sorry I lost it already) suggesting to repair/reinstall the .NET Framework 2.0. Well, I tried that, but the problem is that the installer will refuse to run on Windows 7 because the .NET Framework 2.0 is already included in Windows 7&#8230;</p>
<p>And finally, I found <a href="http://connect.microsoft.com/VisualStudio/feedback/details/121817/error-1935-an-error-occurred-during-the-installation-of-assembly-microsoft-vc80-mfc-processorarchitecture-x86-publickeytoken-1fc8b3b9a1e18e3b">this</a>, a bug reported SEVEN years ago and closed as &#8220;won&#8217;t fix&#8221; :s. The solution is simple: &#8220;It is a known issue when installing multiple interim releases. Go to %windir%\WinSxS and rename each *vc80* file to a different name. Then re-run setup.&#8221; Ok, that was posted by the time of Windows XP. Now in Windows Se7en, you can&#8217;t rename or move those files, even if you&#8217;re on an Administrator account. So we need&#8230; that other OS we mentioned at the beginning. I&#8217;m going to mention that disclaimer once again: messing with those system files can upset Windows and some of your programs. If you&#8217;re <del datetime="2011-04-07">crazy</del> brave enough, let&#8217;s continue <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
If your other OS happens to be some kind of Linux, you need first to mount your Windows partition (in Ubuntu just go to &#8220;Places&#8221; then pick the partition and voilà). Then open a terminal window, browse to the Windows partition (<code>cd /media</code> and then <code>ls</code> to find out the name of the Windows partition, then <code>cd thenameyoufound</code>). Once you&#8217;re in the root of your Windows partition:<br />
<code>cd Windows<br />
sudo mkdir winsxsBAK<br />
cd winsxs<br />
sudo mv *vc80* ../winsxsBAK</code><br />
Here we are: we moved all folders containing &#8220;vc80&#8243; elsewhere. The strange thing with this is that, actually, when searching that winsxs folder on Windows, you see that it contains *vc80* files which can&#8217;t be seen nor moved from Linux. Never mind that though, moving what we moved is enough.<br />
Now reboot on Windows. It may say something about applying updates or such, my guess is that it&#8217;s processing the changes we made to the winsxs folder. I then tried installing Graphviz again, and it still wasn&#8217;t working, but the error message was different (something about a missing dll or system file, I didn&#8217;t take a screenshot).<br />
Now reboot (again) on Linux. We are going to&#8230; move back all those *vc80* folders. So, same as before, go to your Windows partition, then:<br />
<code>cd Windows/winsxsBAK<br />
sudo mv *vc80* ../winsxs</code><br />
Finally (this should be the last one now <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ), reboot on Windows. Once again, it will probably say something about applying updates or such. Try to install Graphviz again&#8230; hopefully it will work (it did for me!).</p>
<p>Oh, and did I mention the best part: the installer of Graphviz reinstalled precisely one of those Visual C++ 2005 Redistributable that I uninstalled earlier&#8230;</p>
<p>Update (2011-04-16): I forgot to mention that the Graphviz team is now <a href="http://www.graphviz.org/bugs/b2166.html">aware of that issue</a>, but the fix isn&#8217;t trivial with their current installer builder, thus the lack of a patched one yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/1683/fixing-grapvizs-installation-error-related-to-microsoft-vc80-crt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sygate Personal Firewall</title>
		<link>http://notepad.patheticcockroach.com/1416/sygate-personal-firewall/</link>
		<comments>http://notepad.patheticcockroach.com/1416/sygate-personal-firewall/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 13:29:25 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=1416</guid>
		<description><![CDATA[Sygate Personal Firewall has always been my favorite firewall&#8230; until I eventually had to move to something newer than Windows XP. Quite some time ago, they got bought by Symantec, which just discontinued it then, so it was never ported to Vista/Se7en. Also, there was a time when it was nearly impossible to find, and [...]]]></description>
			<content:encoded><![CDATA[<p>Sygate Personal Firewall has always been my favorite firewall&#8230; until I eventually had to move to something newer than Windows XP. Quite some time ago, they got bought by Symantec, which just discontinued it then, so it was never ported to Vista/Se7en. Also, there was a time when it was nearly impossible to find, and even though this is now not the case anymore (you can find it notably at Tucows and on Cnet), I thought, although it&#8217;s a little late now, why not mirror it too. So here it is:</p>
<div style="text-align:center;margin-top:0px;margin-bottom:1em;"><a href="http://www.filesonic.com/file/97042762/SygatePersonalFirewall.exe">Sygate Personal Firewall, version 5.6.2808.0 (final)</a></div>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/1416/sygate-personal-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding non-pinned shortcuts to Windows 7 Start Menu</title>
		<link>http://notepad.patheticcockroach.com/1058/adding-non-pinned-shortcuts-to-windows-7-start-menu/</link>
		<comments>http://notepad.patheticcockroach.com/1058/adding-non-pinned-shortcuts-to-windows-7-start-menu/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 17:51:54 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[Windows Se7en]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=1058</guid>
		<description><![CDATA[Really, this Windows 7 was designed to be annoying. They hid the Quick Launch bar (yet it&#8217;s possible to restore it) to replace it with pinning, they added that awful UAC that anyone ends up deactivating after a few hours, and they removed the classic Start Menu. I actually quickly got used to the new [...]]]></description>
			<content:encoded><![CDATA[<p>Really, this Windows 7 was designed to be annoying. They hid the Quick Launch bar (<a href="http://notepad.patheticcockroach.com/535/a-few-windows-7-customization-tips/">yet it&#8217;s possible to restore it</a>) to replace it with pinning, they added that awful UAC that anyone ends up deactivating after a few hours, and they removed the classic Start Menu. I actually quickly got used to the new Start Menu style, which is quite practical after some basic customizations like a huge icon size decrease, except for (again) that pinning stuff: it seems that you can&#8217;t add <em>normal</em> shortcuts to the Start Menu, and of course when you ask about that there&#8217;s always a moron to reply<a href="http://social.answers.microsoft.com/Forums/en-US/w7files/thread/1aa5c179-79f2-4ab7-98d0-34ef49c7ddd1"> &#8220;it&#8217;s easy you just need to pin it&#8221;</a>. No way, pinning isn&#8217;t &#8220;shortcutting&#8221;. But you can stop worrying now, here is how to do it the proper way (step by step, yay <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ):</p>
<ul>
<li>Open Windows Explorer (Windows key + E)</li>
<li>Browse to C:\ProgramData\Microsoft\Windows\Start Menu\Programs</li>
<li>You can then edit like in the good old days of Windows XP (add your new shortcuts or folders there, etc). Maybe you&#8217;ll need to claim ownership of the folder, but at least you&#8217;ll need admin rights to write there.</li>
</ul>
<p>And voilà, you&#8217;re done. Now when you search the start menu you&#8217;ll find the links you just added.</p>
<p>Hint: my personal favorite is to place a shortcut to <em>C:\ProgramData\Microsoft\Windows\Start Menu\Programs</em> in the Quick Launch bar. Pretty neat trick, I can edit the start menu just as easily as in Windows XP now <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/1058/adding-non-pinned-shortcuts-to-windows-7-start-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with WD Advanced Format hard drives on Linux, Windows and Mac OS (part 1)</title>
		<link>http://notepad.patheticcockroach.com/900/dealing-with-wd-advanced-format-hard-drives-on-linux-windows-and-mac-os-part-1/</link>
		<comments>http://notepad.patheticcockroach.com/900/dealing-with-wd-advanced-format-hard-drives-on-linux-windows-and-mac-os-part-1/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 17:25:47 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=900</guid>
		<description><![CDATA[I recently bought the currently biggest Western Digital Caviar Green hard drive, the WD20EARS (on WD) (2 TB, 64MiB cache, Serial ATA 3 Gbps). Since I&#8217;m using Linux and Windows XP I knew I&#8217;d have some trouble partitioning it, since this drive features WD&#8217;s quite recent Advanced Format Technology (AFT). Yet I didn&#8217;t think it [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bought the currently biggest Western Digital Caviar Green hard drive, the <a href="http://www.ldlc.com/fiche/PB00096376.html">WD20EARS</a> (<a href="http://www.wdc.com/en/products/products.asp?driveid=773">on WD</a>) (2 TB, 64MiB cache, Serial ATA 3 Gbps). Since I&#8217;m using Linux and Windows XP I knew I&#8217;d have some trouble partitioning it, since this drive features WD&#8217;s quite recent Advanced Format Technology (AFT). Yet I didn&#8217;t think it would be so time consuming to figure out a working and proper method.</p>
<h2>What&#8217;s the Advanced Format Technology (AFT)?</h2>
<p>To make a long story short, hard drives are organized into sectors. Each sector starts with a Sync/DAM block, then come the &#8220;real&#8221; data, then finally an Error Correction Code (ECC) block&#8230; and then a gap before the next sector (or rather, the next Sync/DAM block). For the last three decades, sectors have been 512 bytes big. This made sense when drive sizes were around some megabytes (since you can&#8217;t place 2 files inside 1 sector, the sector size determines the minimum space a file can use), but with today&#8217;s terabyte drives, this just doesn&#8217;t seem as appropriate (plus anyway modern file systems regroup sectors in indivisible 4KiB clusters). AFT simply changes the sector size to 4096&#160;B (512&#160;B&#160;x&#160;8).<br />
With this larger sector come the following advantages:</p>
<ul>
<li>for a 512 byte sector you needed 40 bytes of ECC, but for a 4096 bytes sector you can use only 100 bytes of ECC, a 220 bytes saving from what it takes for eight 512 bytes sectors (8&#215;40-100=220).</li>
<li>for a 4096 B sector you only need one Sync/DAM block, down from 8 blocks if you have 8 512 B blocks (although I couldn&#8217;t find anywhere if an AFT Sync/DAM block if bigger than a normal Sync/DAM block)</li>
<li>each 4096 B sector, you get a sector gap, while on non-AFT hard drives you get a sector gap after each 512 B sector. So on AFT you have 8 times fewer sector gaps.</li>
</ul>
<p><a href="http://img.patheticcockroach.com/01/legacy_vs_AFT_sectors.png"><img src="http://img.patheticcockroach.com/01/legacy_vs_AFT_sectors.png" alt="512 bytes legacy vs 4096 bytes Advanced Format sectors" width="472" height="97" /></a><br />
So globally, the main point of this is to stick more data into the same physical space (about 7-11% more according the sources I found &#8211; see at the end of this chapter &#8211; so the picture above is quite a bit exaggerated <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ). The use of one bigger ECC block instead of several smaller ones also improves burst error correction by 50% according to WD&#8217;s white paper on AFT. Finally AFT allows better performances (not <em>a lot</em> faster, but still faster): I didn&#8217;t find precisely why, but I guess this has to do with 8 times fewer sectors to read (since an AFT sector has 8 times more data) and smaller areas to read (since the AFT equivalent of 8 legacy 512 sectors is smaller).</p>
<p>I won&#8217;t go deeper into details, if you want further reading there you go:</p>
<ul>
<li><a href="http://www.wdc.com/wdproducts/library/WhitePapers/ENG/2579-771430.pdf">Western digital &#8211; Advanced Format Technology &#8211; White Paper</a> (PDF)</li>
<li><a href="http://hothardware.com/Articles/WDs-1TB-Caviar-Green-w-Advanced-Format-Windows-XP-Users-Pay-Attention/">HotHardware &#8211; Exploring WD&#8217;s Advanced Format HD Technology</a></li>
<li><a href="http://www.anandtech.com/show/2888">AnandTech &#8211; Western Digital’s Advanced Format: The 4K Sector Transition Begins</a></li>
</ul>
<h2>What&#8217;s the problem with Advanced Format Technology?</h2>
<p>As above-mentioned, 512 bytes sectors have been around for like an eternity. Thus any other sector size isn&#8217;t supported by, for instance Windows XP or even recent versions of Linux. To make the disk work anyway in all cases, Western Digital made it emulate 512 bytes sectors (see at the end of the white paper). So AFT disks will work in old OSes. But they won&#8217;t work in an optimal way: the OS will believe the sectors are 512 B, and thus will misalign clusters with physical sectors, which can be pretty much harmful for performance (although not at all physically damaging for the disk).</p>
<h2>Ok, now what&#8217;s the solution?</h2>
<p>If you&#8217;re on Windows or Mac OS 10.4+ using the GUID Partitioning Table scheme (GPT), check <a href="http://www.wdc.com/en/products/advancedformat/">WD&#8217;s AFT page</a>. If your Windows version is Vista or Seven, or if it&#8217;s XP and you&#8217;re sure you won&#8217;t need to edit any partition after using WD Align, that will be all.</p>
<p>Otherwise:</p>
<ul>
<li>if you&#8217;re on Windows XP and willing to edit your partitions after using WD Align, you&#8217;ll need either a third-party partitioning software, or Linux (I used Ubuntu 10.04 on this). This is because once you have aligned partitions using WD Align you shouldn&#8217;t EVER use Windows&#8217;s built-in partitioner (I tried that, it destroyed all my partitions in a fraction of a second) (note that you can still use Windows disk manager, just don&#8217;t try to modify the partitions with it on the whole AFT drive).</li>
<li>if you&#8217;re on Linux: if you&#8217;re on kernel 2.6.34 you should be fine. Otherwise, if you have parted in its version >= 2.1 you can use it with the <code>-a optimal</code> parameter and it should create properly aligned partitions. The source of this information is <a href="http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=5655">WD&#8217;s Knowledge Base</a>. They claim that Ubuntu 10.04 and Fedora 13 should align AFT drives properly (implicit: because they&#8217;re on kernel 2.6.34?). Well, Fedora 13 doesn&#8217;t, and has kernel 2.6.33 if I remember well, and neither does Ubuntu 10.04 (kernel 2.6.32). But Ubuntu 10.04 does have parted version 2.2.</li>
</ul>
<p>OK, so, solved your problem yet? If not, I guess you&#8217;re either:</p>
<ul>
<li>On Mac OS using Apple Partition Manager (APM): you&#8217;re screwed, really. Yet, it works, after all&#8230; just not as fast as it could&#8230;</li>
<li>On Windows XP, willing to edit the partitions later and not willing to buy a specific piece partitioning software: get Linux (you can just use some LiveUSB Linux: no installation required, can install/update packages if you configure persistent storage properly on your USB key)</li>
<li>On Windows XP, willing to edit the partitions later and not willing to buy a specific piece partitioning software nor to get Linux. Well, you&#8217;ll have to make a choice: either don&#8217;t edit the partitions or get what it takes to edit them.</li>
</ul>
<p>Or finally, you might be on Linux, without kernel 2.6.34 and not willing to use parted (or not having a recent enough parted), or just curious about aligning the partitions manually. Well, lucky you: I came up with a solution using GNU fdisk!</p>
<p>Update (17 August): here it is, finally, the fdisk + gparted guide: <a href="http://notepad.patheticcockroach.com/927/dealing-with-wd-advanced-format-hard-drives-on-linux-part-2/">Dealing with WD Advanced Format hard drives on Linux (part 2)</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/900/dealing-with-wd-advanced-format-hard-drives-on-linux-windows-and-mac-os-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

