<?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>Unknown Kadath</title>
	<atom:link href="http://html5.litten.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://html5.litten.com</link>
	<description></description>
	<lastBuildDate>Tue, 07 May 2013 15:07:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How To Fix: External Disk Drive Suddenly Became RAW</title>
		<link>http://html5.litten.com/how-to-fix-external-disk-drive-suddenly-became-raw/</link>
		<comments>http://html5.litten.com/how-to-fix-external-disk-drive-suddenly-became-raw/#comments</comments>
		<pubDate>Wed, 01 May 2013 19:59:28 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[undelete files]]></category>
		<category><![CDATA[undelete.recover lost files]]></category>
		<category><![CDATA[windows file recovery]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=1084</guid>
		<description><![CDATA[How To Fix: External Disk Drive Suddenly Became RAW DISCLAIMER: These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything [...]]]></description>
				<content:encoded><![CDATA[<h2>How To Fix: External Disk Drive Suddenly Became RAW</h2>
<font size="2" color="navy"><strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em></font><br />
<br />

<p>
A common and befuddling problem with computers is the sudden and seemingly inexplicable disappearance of an external hard drive that has been functioning properly. It can be a breathtaking experience to suddenly be told that your data, often irreplaceable pictures and documents, might be gone forever.</p>
<p>As with many similar situations in life the appropriate response is &#8220;Don&#8217;t panic&#8221;. When approached sensibly and carefully, the situation can be resolved and the data saved more times than not. Here we will look at the causes, fixes and preventative measures for instances involving external drives being used with Windows XP and Windows Vista/7.</p>
<br />  
<br />
<h2>Error Messages</h2>
Common error messages associated with the sudden inability to access an external hard disk drive. <br />
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<table align="center" width="90%">
<tr>
<td align="center"><img src="http://html5.litten.com/images/raw/needfxp.jpg" border="0" /></td>
<td align="center"><img src="http://html5.litten.com/images/raw/needf7.jpg" border="0" /></td>
</tr>
<tr>
<td align="center">Windows XP</td>
<td align="center">Windows 7</td>
</tr>
<tr>
<td colspan="2" align="center"><strong>DO NOT FORMAT THE DRIVE</strong></td>
</tr>
</table>
</div>

<br /><br /><span id="more-1084"></span>
When attempting to access the drive in Windows you may see a message asking you to format the drive <strong>DO NOT FORMAT THE DRIVE</strong><br />
<div style=" 
background-color: #ECEBEB;
padding: 10px;
width: 90%;
">
<code>You need to format the disk in drive before you can use it.<br />
Do you want to format it?<br /></code>
</div>
<br />
Another error that you may see when trying to access the drive in Windows from a program or the command line is&#8230;<br />
<div style=" 
background-color: #ECEBEB;
padding: 10px;
width: 90%;
">
<code>
This volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted.<br /></code>
</div>
<br />
Attempting to run chkdsk in an attempt to repair the problem will give an error also&#8230;<br />
<div style=" 
background-color: #ECEBEB;
padding: 10px;
width: 90%;
">
<code>
chkdsk can not be run on the drive<br />
The type of the file system is RAW.<br />
CHKDSK is not available for RAW drives.<br /></code>
</div>
<br />
The Disk Management window shows the partition as either RAW or without a filesystem type.<br />
<p align="center"><a href="http://html5.litten.com/images/raw/dm.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/dm.jpg" width="450"/></a></p>

<br />
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<table align="center" width="90%">
<tr>
<td colspan="2" align="center">Properties of the drive show that both used and free spaces are 0 byte in size for the raw drive</td>
</tr>
<tr>
<td align="center"><a href="http://html5.litten.com/images/raw/dproxp.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/dproxp.jpg" width="200"/></a></td>
<td align="center"><a href="http://html5.litten.com/images/raw/dpro7.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/dpro7.jpg" width="200"/></a></td>
</tr>
<tr>
<td align="center">Windows XP</td>
<td align="center">Windows 7</td>
</tr>
</table>
</div>
<br /><br />
<h2>What does RAW partition mean</h2>
A RAW filesystem simply means that it is a filesystem that is not recognized by Windows. Therefore all the available filesystem drivers are unable to mount the filesystem as a drive. This often happens when the records determining the filesystem type or location on the disk are damaged or corrupted, usually the partition table or the boot sector.<br /> 
Since Windows sees no filesystem in the partition, it prompts you to format it in order to create a filesystem on it. DO NOT FORMAT IT. <br />
<br />
<br />
<h2>Why does it happen and how to avoid it</h2>
The most common cause of external hard drives suddenly becoming RAW drives is if they are disconnected from a computer without using the &#8220;Safely Remove Hardware&#8221; option. This can happen in many ways such as a power failure, unplugging the drive from the USB port or from its AC adapter, a problem with the computer that causes it to temporarily disconnect the USB hubs and many more circumstances can lead to this occurring.<br />
Always use &#8220;Safely remove hardware&#8221; to disconnect the drive. Left click the icon on the taskbar, select the device from the menu, and wait for the confirmation message.<br />
<br /> 
<br />
<h2>How do you fix it</h2>
For this example, I chose the most heavily damaged disk with this issue that I could find in my collection of damaged disks. It has both of the most common problems. The partition table is corrupted and the boot sector of the main partition is also scrambled. The pictures of error messages above all came from this drive. The pictures of the repair process below are from the actual repair of this drive. Some images are from a virtual machine (simply to make it easier to get the screenshots) and some are from an actual desktop. This is a real repair not a manufactured example.<br /> 
<br />
<b>Before proceeding beyond this point, you need to be aware of the risks involved.</b> If the problem with the drive is not simply a logical error but is a manifestation of physical damage then the more you use it and try to repair, the worse the damage may become. To minimize the risks, the drive can be taken to a professional who is experienced in this type of repair. The drive should not be making strange clicking or beeping noises. That means that there is definitely physical damage and it should be sent to a facility with the proper tools and environment to repair/recover it since trying to repair it as described in this post can make that situation worse. If you wish to continue on your own there are three important rules to remember.<br /><br />
<b>1.</b> Computer problems are variable. You may very well come up with a different situation than I outline below. Make sure that you stop and think things through carefully when the process becomes different than I describe.
<br /><br />
<b>2.</b> You <b>DO NOT WANT TO WRITE ANYTHING TO THE RAW DRIVE</b> except for the repaired MBR and repaired Boot Sector if necessary. Any other writing can overwrite data on the drive that you would want to keep.
<br /><br />
<b>3.</b> This repair does not apply to <a href="http://en.wikipedia.org/wiki/Solid-state_drive">solid-state drives (SSD)</a>. They are very different than  normal drives and can erase important data on a RAW partition just by connecting power to them.
<br /><br />
<h2>Do you want to recover anything extra important first?</h2>
<strong>This step is optional and does not always work. EDIT 1/22/2013</strong><br />
It can put your mind at ease and make the process less stressful if you can successfully and quickly make copies of the most important files on the drive. After making sure that these files are safely copied to another drive, you can continue with repairing the drive with a much more relaxed demeanor and thus be less likely to make a mistake.<br />
Often you can access the data on the missing drive by booting with a Linux LiveCD. The hard disk drive being used in this example is too damaged to do this but there is another <a href="http://fixit.litten.com/linuxfilecopy.html">article with instructions here</a> that uses a drive that while not visible in Windows was accessible with a Linux LiveCD.<br />

<br />
<h2>Repair partition table and boot sector</h2>
<p>In order to repair the most common problems that cause an external disk to suddenly become RAW we will use a PartedMagic Linux boot CD and one of the tools included on it called TestDisk. Both of these items are free and I urge you to donate to them if you are helped by their use and have the ability to make a donation.</p>
<p>This method allows us to work on the drive without attempting to mount it and gives us more direct access to it than trying to fix it in Windows.</p>
<p>First make a bootable CD or USB stick of PartedMagic. <a href="http://fixit.litten.com/makebootcd.html">Instructions can be found here</a>.</p>
<p>Boot the computer that has the bad drive connected to it with the PartedMagic CD/USB that you made. A menu will pop up, please select<br />
<b><i>1. Default Settings (Runs from RAM)</i></b><br />
</p><div align="center"><img src="http://html5.litten.com/images/raw/pmfilec1.jpg" border="0" width="450"></div><br />
<br />
<p>When it finishes booting you will notice that it looks kind of like a Windows desktop. The button in the lower left works like the START button in Windows XP and allows you to select and run various programs or shutdown the computer. To make things easy, I&#8217;ll just refer to this as the START button.</p>
<div align="center"><a href="http://html5.litten.com/images/raw/pm2.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/pm2.jpg" width="450"/></a></div>
<p>Click on the Terminal button down near the START button (It has a picture of a monitor on it) and type<br />
<b>testdisk</b><br />
and press enter.<br /><br />
TestDisk is a console application so you have to use your keyboard to interact with it instead of your mouse.</p>
<p>Choose <b>No Log</b> and hit enter
<div align="center"><a href="http://html5.litten.com/images/raw/td1.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td1.jpg" width="450"/></a></div>
</p>
<p>Make sure that your external disk is highlighted<br />
Choose <b>Proceed</b> and hit enter
<div align="center"><a href="http://html5.litten.com/images/raw/td2.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td2.jpg" width="450"/></a></div>
</p>
<p>Select <b>Intel</b> and hit enter (there is a slight chance that the partition is EFI GPT if the drive is 2TB or greater in size and at the bottom of this screen it says that <b>Hint: EFI GPT was detected</b>. If that is the case, select EFI GPT instead and try that.)
<div align="center"><a href="http://html5.litten.com/images/raw/td3.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td3.jpg" width="450"/></a></div>
</p>
<p>Select <b>Analyse</b> and hit enter
<div align="center"><a href="http://html5.litten.com/images/raw/td4.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td4.jpg" width="450"/></a></div>
</p>
<p>The partition data looks incorrect (an explanation of why is beyond the scope of this article)<br />
Select <b>Quick Search</b> and hit enter
<div align="center"><a href="http://html5.litten.com/images/raw/td5.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td5.jpg" width="450"/></a></div>
</p>
<p>Say &#8216;<b>Y</b>&#8216; if it asks if the disk was made in Vista/Win7 (even if it was made in XP say &#8216;yes&#8217;)
<div align="center"><a href="http://html5.litten.com/images/raw/td6.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td6.jpg" width="450"/></a></div>
</p>
<p>Now the Quick Search will run
<div align="center"><a href="http://html5.litten.com/images/raw/td7.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td7.jpg" width="450"/></a></div>
</p>
<p>When the Quick Search completes, we see one partition (if you only see the option to CONTINUE at the bottom of the screen press ENTER one time to continue to the screen that you need to be at).
<div align="center"><a href="http://html5.litten.com/images/raw/td8.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td8.jpg" width="450"/></a></div>
</p>
<p>Lets look at the data on that partition press<br />
<b>P</b><br />
and you should see a list of files/folders in the partition.
<div align="center"><a href="http://html5.litten.com/images/raw/td9.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td9.jpg" width="450"/></a></div>
</p>
<p>Hmmm&#8230; This looks like a bunch of diagnostic tools but not our missing data. We&#8217;ll need to look further. Press<br />
<b>Q</b><br />
to go back a screen and then press<br />
<b>enter</b><br />
To get to this screen, select <b>DEEPER SEARCH</b> and press enter.
<div align="center"><a href="http://html5.litten.com/images/raw/td10.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td10.jpg" width="450"/></a></div>
</p>
<p>Naturally, the Deeper Search takes longer than the Quick Search
<div align="center"><a href="http://html5.litten.com/images/raw/td11.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td11.jpg" width="450"/></a></div>
</p>
<p>When the Deeper Search completes we now see two partitions. The one we saw after the quick search and another one.
<div align="center"><a href="http://html5.litten.com/images/raw/td12.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td12.jpg" width="450"/></a></div>
</p>
<p>Select the new partition and press<br />
<b>P</b><br />
to see the files/folders and now we see the data we want to make visible again.
<div align="center"><a href="http://html5.litten.com/images/raw/td13.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td13.jpg" width="450"/></a></div>
</p>
<p>Press<br />
<b>Q</b><br />
to go back a screen and then press <b>enter</b> to get to this screen.<br />
Select <b>WRITE</b> and press enter in order to write our new partition table to the drive.<br />
<strong>DO NOT WRITE A NEW PARTITION TABLE IF YOU DID NOT SEE YOUR FILES/FOLDERS</strong> That means the proper partition table was not found and you will have to try a different technique to recover your data.<br />

<div align="center"><a href="http://html5.litten.com/images/raw/td14.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td14.jpg" width="450"/></a></div>
</p>
<p>Press <b>Y</b> to confirm that you want to write the new partition table.
<div align="center"><a href="http://html5.litten.com/images/raw/td15.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td15.jpg" width="450"/></a></div>
</p>
<p>As I mentioned at the start of this repair, this disk also has corruption in the boot sector of the partition that we are trying to make visible again. When this is the case TestDisk will stop at this point and ask you to fix it before it finishes writing the new partition table. If the backup boot sector is good (as in this case) simply choose <b>BACKUP BS</b> and press enter. In the event that the backup boot sector is also bad then choose REBUILD BS. 
<div align="center"><a href="http://html5.litten.com/images/raw/td16.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td16.jpg" width="450"/></a></div>
</p>
<p>Press Y to confirm the boot sector repair
<div align="center"><a href="http://html5.litten.com/images/raw/td17.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td17.jpg" width="450"/></a></div>
</p>
<p>Then choose <b>QUIT</b> and press enter
<div align="center"><a href="http://html5.litten.com/images/raw/td18.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td18.jpg" width="450"/></a></div>
</p>
<p>Regardless of whether a boot sector repair is required or not, you will end up at this screen where all you can do is press enter. Then hit <b>Q</b> until you are out of TestDisk.
<div align="center"><a href="http://html5.litten.com/images/raw/td19.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/td19.jpg" width="450"/></a></div>
</p>
<p>Now remove the PartedMagic CD and shutdown the computer <b>START>SHUTDOWN</b> and then try booting it into Windows to see if the drive is now visible.</p>
<p>Here are the results for the drive used in this example&#8230;
<div align="center"><a href="http://html5.litten.com/images/raw/fix1.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/fix1.jpg" width="450"/></a></div>
<div align="center"><a href="http://html5.litten.com/images/raw/fix2.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/fix2.jpg" width="450"/></a></div>
<div align="center"><a href="http://html5.litten.com/images/raw/fix3.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/raw/fix3.jpg" width="450"/></a></div>
</p>

<br />
<br />
<h2>Backup important files and run chkdsk</h2>
<p>Now you should make backups of all important files on the drive in case it goes bad again and then run chkdsk to fix any other filesystem errors that may still exist.<br />
After backing up important files, right-click the disk in Windows Explorer and choose <b>PROPERTIES</b>. Go to the <b>TOOLS</b> tab and click <b>CHECK NOW</b>. Check both options and click <b>START</b>.</p>
<br />
<br />
<p>Hopefully, this solves your problem. Please feel free to contact me through the contact form or comments if you have any questions or suggestions for this post.</p>
<br />
<br />]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/how-to-fix-external-disk-drive-suddenly-became-raw/feed/</wfw:commentRss>
		<slash:comments>184</slash:comments>
		</item>
		<item>
		<title>XP Won&#8217;t Boot :( Repair Series Part 1: POST and MBR Issues</title>
		<link>http://html5.litten.com/xp-wont-boot-repair-series-part-1-post-and-mbr-issues/</link>
		<comments>http://html5.litten.com/xp-wont-boot-repair-series-part-1-post-and-mbr-issues/#comments</comments>
		<pubDate>Thu, 11 Apr 2013 03:53:01 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[xp boot errors]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[windows file recovery]]></category>
		<category><![CDATA[xp boot error]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=886</guid>
		<description><![CDATA[XP Won&#8217;t Boot Repair Series Part 1: POST and MBR Issues DISCLAIMER: These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility [...]]]></description>
				<content:encoded><![CDATA[<h2>XP Won&#8217;t Boot <img src='http://html5.litten.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <br />Repair Series Part 1: POST and MBR Issues</h2>
<font size="2" color="navy"><strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em></font><br />
<br />
Turning on your computer and having it not start is one of the worst experiences computer users can have. It is often mysterious and you are given little information as to what is wrong. Usually a cryptic blue screen error, a one line error like &#8220;Operating System Missing&#8221; or nothing at all. Just a blank screen that never does anything or just keeps restarting on its own in an endless loop. Every week I fix unbootable XP computers. <br />
<br />
Even though the XP operating system has been off the market for years, it is still almost as common for me to repair as Windows 7 computers.<br />
<br />
A lot of times when I do remote repairs (by phone, email or my private discussion board) the user does not have an XP disc and this complicates things further for them. Many laptops never came with an XP disc and often the user hasn&#8217;t needed the disc for years and if they had one, they have no idea where it may be stored. <br />
<br />
Here are the errors I see most often and some tips on how to repair them.<br />
<br />
We will be looking at Windows XP 32-bit using NTFS for the filesystem.<br />
<br />
When you turn on the computer, its CPU begins to carry out the programming instructions contained in the basic input/output system (BIOS). The BIOS contains the code that starts the computer regardless of the operating system installed. The first set of startup instructions is the Power On Self Test (POST). The POST gets the computer ready for loading the operating system.<br /><br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>Power On Self Test (POST)</strong><br />


<blockquote>    Performs initial hardware checks, such as determining the amount of memory present<br />
<br />
    Verifies that the devices needed to start an operating system, such as a hard disk, are present<br />
<br />
    Retrieves system configuration settings from nonvolatile memory, which is located on the motherboard<br />
<br />
After the motherboard POST completes, add-on adapters that have their own firmware (for example, video and hard drive controllers) carry out internal diagnostic tests.<br />
</blockquote>
<br />
</div><br />
Here we encounter our first common error. These are some of the variations of the text for this error&#8230;<br />
<br />
<ul>
<li>Hard disk absent</li>
<li>Hard disk failed</li>
<li>Hard disk missing</li>
<li>Hard disk not found</li>
<li>Hard disk error</li>
</ul>
The following can also be an MBR error but first you need to make sure that the BIOS is seeing the hard drive correctly&#8230;<br />
<ul>
<li>No Bootable Device Available</li>
<li>No Bootable Devices Found</li>
<li>Boot Device Not Found</li>
<li>Error Insert proper boot device</li>
<li>Reboot and select proper boot device error</li>
</ul>
<h3>Troubleshooting</h3><br />
<span id="more-886"></span>
<font size="2" color="navy"><em>Important safety tips.<br />
When disconnecting or checking the hard drive connections, always make sure the computer is unplugged and has no power (hold down the power button for a few moments to drain any stored power after unplugging). Also, you should be grounded with a wrist strap or take other precautions not to shock anything with static electricity.</em></font><br />
<br />
<strong>Check the BIOS settings</strong><br />
Start the computer and go into the BIOS settings. There should be instructions for how to do this as soon as the computer starts. Like, &#8220;<em>Press F2 to enter system settings</em>&#8220;.<br />
In the BIOS look and see if your hard drive is listed. If it is not, then we need to find out why. If it is listed then make sure that it is also listed as a boot device in the Boot Order section of the BIOS (search online for a manual that is specific to your model for the exact settings location in your BIOS).<br />
If everything looks okay in the BIOS then see if your computer has built in diagnostics. Many brand name computers like Dell, HP and Compaq do. Consult the manual for your computer for details.<br />
If it passes the diagnostics then move on to checking the MBR later in this post.<br />
<br />
If you find a problem in the BIOS then you need to check the physical connections of the hard drive.<br />
<br />
<strong>Desktop Computer</strong><br />
Unplug the power cable and hold down the power button for a few moments to drain any stored power after unplugging.<br />
<br />
<strong>IDE Drives</strong><br />
I have seen the ribbon cable go bad on many IDE hard drives. The easist way to check it is to replace it with a new one or one that you know is good.<br />
Check that the power MOLEX connector is plugged into the drive tightly.<br />
Check that the ribbon cable is properly seated in the Primary IDE socket on the motherboard.<br />
Check that the ribbon cable is properly seated in the socket on the hard drive.<br />
Make sure that the jumpers are set properly so that the boot drive is set as the Primary Master and anything else connected to the cable is set to Primary Slave.<br />
Or<br />
If using Cable Select, make sure the jumpers on the drive are set correctly and that the boot drive is plugged into the Master plug on the ribbon cable (the end plug on an 80 conductor cable or the middle plug on a 40 conductor cable).<br />
Check the BIOS again to see if the drive is now properly detected.<br />
<br />
<strong>SATA Drives</strong><br />
Check that the power and data cables are properly seated in the drive and motherboard.<br />
Check the BIOS settings, particularly ones that look like these (consult your manual for the proper settings)&#8230; <br />
<em>SATA RAID / AHCI Mode<br />
SATA Port Native Mode<br />
Onboard SATA/IDE Crtl Mode </em><br />
Check the BIOS again to see if the drive is now properly detected.<br />
<br />
<strong>Laptop Drives</strong><br />
Unplug the power cable, and remove the battery first before removing the Hard Drive. <br />
Remove any thing else plugged into the laptop.<br />
Pull out the hard drive and carefully reseat it.<br />
Check the BIOS again to see if the drive is now properly detected.<br />
<br />
If you still get the error at this point, it is probably a serious problem with the drive itself. See if it is detected in a different computer. You can see some of my other blog posts on data recovery for instructions on doing this.<br />
<hr />
<br />
<strong>After the POST</strong><br />
When you start a computer from the hard drive, the BIOS identifies the startup drive and reads the master boot record (MBR). The MBR is always located at the first sector so the BIOS can find it. It contains a small program called the master boot code that the BIOS loads into memory and begins to run. 
<br /><br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>The master boot code runs and performs the following activities</strong><br />
    

<blockquote>Scans the partition table for the active partition.<br /><br />
    Finds the starting sector of the active partition.<br /><br />
    Loads a copy of the boot sector from the active partition into memory.<br /><br />
    Transfers control to the executable code in the boot sector.</blockquote>

<br /></div>
<br />
The partition table makes up the rest of the MBR and defines the size and type of the partitions which you usually see as drives in Windows like C: D: etc&#8230;<br />
<br />

If the first hard drive on the system does not contain an active partition, the partition table is corrupted or if the master boot code cannot locate the boot sector of the system volume from the partition table, the MBR displays messages similar to the following:<br />
<br />
<ul>
<li>Invalid partition table.</li>
<li>Error loading operating system.</li>
<li>Missing operating system.</li>
<li>No Bootable Devices Found</li>
<li>Reboot and select proper boot device error</li>
</ul>
<br />
The master boot code is often the same on XP systems but the partition table is changed based on the specifics of your setup. It is also often changed by malware.<br />
<br />
An excellent description of the XP MBR can be found here&#8230;<br />
<a href="http://thestarman.pcministry.com/asm/mbr/Win2kmbr.htm" target="blank">http://thestarman.pcministry.com/asm/mbr/Win2kmbr.htm</a><br />
<br />
<strong>Repairing the MBR from XP Recovery Console</strong><br />
To run the Recovery Console, you will need the Windows XP CD. Solutions for running the Recovery Console without the CD or if you have lost or are unable to get it to accept the administrator password are covered in&#8230;<br />
Part 4: Recovery Console and Other Tools (Coming Soon)<br />
<br />
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />


<blockquote>Boot your computer from the Windows XP CD (see the manual for your computer for instructions on booting from a CD)<br /><br />
When the &#8216;Welcome to Setup&#8217; screen appears, press the R button on your keyboard to start the Recovery Console.<br /><br />
The Recovery Console will start. If you have multiple Windows installations, it will list them, and you enter the number associated with the installation you want to work on and press enter. If you have just one Windows installation, type 1 and press enter.<br /><br />
You will then be prompted for the Administrator&#8217;s password. If there is no password, press enter. Otherwise type in the password and then press enter.<br /><br />
You will now see a <code>C:\Windows&gt;</code> prompt and you can start using the Recovery Console.</blockquote>

<br />
</div>
<br /><br />
You can attempt to repair the MBR with the fixmbr command.<br />
<a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/bootcons_fixmbr.mspx?mfr=true" target="_blank">http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/bootcons_fixmbr.mspx?mfr=true</a><br />
 <br />
<strong>NOTE:</strong> Some rootkits can cause <code>fixmbr</code> to think it worked even though it did not. I always look at the MBR partition table before running <code>fixmbr</code>. Gparted (described further below) makes this easy to do.<br />
<br />
If you are attempting to repair the default boot drive, you can type<br />
<code>fixmbr</code><br />
and hit enter.<br />
<br />
You may see a warning like this&#8230;<br />
<br />
<p align="center"><a href="http://html5.litten.com/images/xp1/1.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/xp1/1.jpg" width="450"/></a></p>
<br />
If you type <code>y</code> then it will quickly write a new MBR to the drive.<br />
Now remove the CD and type<br />
<code>exit</code><br />
and hit enter to reboot the computer and see if it is fixed.<br />
<br />
If this does not fix it there may be deeper problems with the MBR or the problem may be further in the boot process. <br />
<br />
<strong>How to look at your Partitions and MBR (even if your computer doesn&#8217;t boot)</strong><br />
<br />
If your computer sees the hard drive but still does not boot, we can take a look at the MBR using a bootdisk or bootable USB (if the computer has USB booting capabilities).<br />
Lately, I&#8217;ve preferred PartedMagic for this. It is free but be sure to donate to him if his product helps you.<br />
<a href="http://partedmagic.com/" target="_blank">http://partedmagic.com/</a><br />
Follow the directions there to make a boot CD.<br />
<br />
Boot your broken computer from the CD and Select<br />
<code>1. Default Settings (Runs from RAM)</code>   <br />
<br />
Lets take this opportunity to look at the built-in Self-Monitoring, Analysis and Reporting Technology (SMART) diagnostic report of the hard drive.<br />
After PartedMagic loads, double-click the Disk Health icon on the desktop and then double-click the icon for your hard drive and select the <em>Attributes</em> tab.<br />
I usually look for bad sectors &#8220;Reallocated Sector Count&#8221; represented by the raw value of attribute ID 5 (and C5 to a lesser extent).<br />
If this value is greater than 0 you may want to click on the Perform Tests tab and run the &#8220;Short Self Test&#8221; to make sure that it runs with a test result of <em>&#8220;Completed without error&#8221;</em>. If you see problems here, then the drive is probably going bad and you should focus on data recovery and replace it.<br />
<br />
Next we can use the Partition Editor program in Parted Magic called GParted to see if the partitions are showing up properly.<br />
Double click the Partition Editor icon on the desktop and select <code>/dev/sda</code><br />
Make sure that one of the partitions has &#8216;<code>boot</code>&#8216; in the FLAGS column. <br />
<br />
<p align="center"><a href="http://html5.litten.com/images/xp1/2.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/xp1/2.jpg" width="450"/></a></p>
<br />
If not, choose the partition that you want to boot from and right-click it, select <em>Manage Flags</em> and check the box for the <em>Boot</em> flag. Then click the <em>Apply</em> button, remove the CD and reboot to see if that fixed it.<br />
<br />
If you see anything strange here like tiny hidden bootable partitions, you should consult with a professional as this could be malware. Changing the Boot flag on partitions is relatively easy to undo but deleting a partition may make things worse.<br />
<br />
If you don&#8217;t see any partitions on your hard drive listed in the Partition Editor then you can look at the hex of your MBR at the partition table and see if something looks wrong there.<br />
<br />
In PartedMagic there is a button in the lower left corner of the screen that functions much like the START button on a Windows XP desktop so I&#8217;ll refer to it here as the START button.<br />
Open LXTerminal, [b]START&gt;ACCESSORIES&gt;LXTerminal[/b]<br />
Type<br />
<code>dd if=/dev/sda of=/media/sda1/mbr.bin bs=512 count=1</code><br />
and press enter.<br />
<br />
To view the MBR type<br />
<code>hexedit</code><br />
and press enter.<br />
For a filename enter<br />
<code>/media/sda1/mbr.bin</code><br />
<br />
Here is a screenshot showing the partition table data section highlighted (and the Magic number or MBR signature 55 AA or 0xaa55 which all MBRs must have).<br />
<br />
<p align="center"><a href="http://html5.litten.com/images/xp1/4.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/xp1/4.jpg" width="450"/></a></p>
<br />
<strong>Partition Table Recovery/Repair with TestDisk</strong><br />
For this section lets look at an MBR with a messed up partition table. This is from the same drive as the previous picture but I&#8217;ve deleted the partition.<br />
<br />
<p align="center"><a href="http://html5.litten.com/images/xp1/5.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/xp1/5.jpg" width="450"/></a></p>
<br />
When we try to boot from this drive, we get the error&#8230;<br />
<em>Boot device not found</em>.<br />
<br />
Lets boot into PartedMagic again and open <em>LXTerminal</em> and type<br />
<code>Testdisk</code><br />
Choose <em>No Log</em> (since we have no disk to write to)<br />
Select our drive<br />
Here it will tell you if there is an error detected for the disk.<br />
Select <em>Intel</em><br />
Select <em>Analyse</em><br />
Here it will often tell you errors with the partitions (like invalid sector counts) or show bizarre partitions that may be overlapping or corrupted in the partition table.<br />
Select <em>Quick Search</em><br />
Say <em>No</em> to question about Vista<br />
It finds our bootable partition<br />
<br />
<p align="center"><a href="http://html5.litten.com/images/xp1/6.jpg" rel="lightbox[testdisknorm]"><img src="http://html5.litten.com/images/xp1/6.jpg" width="450"/></a></p>
<br />
Press enter and then choose <em>Write</em> and confirm that you want to write the new partition table to the MBR<br />
Now reboot and the system comes back like before the partition was deleted.<br />
This also works for damaged or corrupted partition tables.<br />
More details on using TestDisk to repair partitions can be found here<br />
<a href="http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step" target="_blank">http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step</a><br />
<br />
If you&#8217;ve gotten this far and still haven&#8217;t found the reason why your computer does not boot, then we will move on to the next step in XP&#8217;s boot process. The Bootloader to Logon. Go to <a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/">Part 2</a> for that post.<br />
<br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/">Part 2: Bootloader to Logon Issues</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-3-blue-screen-errors-at-xp-boot/">Part 3: Blue Screen Errors</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-4-recovery-console-and-other-tools/">Part 4: Recovery Console and Other Tools</a></strong><br />
<br />
<hr />
<br /><br />
ALL COMMENTS ARE MODERATED TO PREVENT SPAM]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/xp-wont-boot-repair-series-part-1-post-and-mbr-issues/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XP Won&#8217;t Boot :( Repair Series Part 2: Bootloader to Logon Issues</title>
		<link>http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/</link>
		<comments>http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#comments</comments>
		<pubDate>Tue, 09 Apr 2013 21:22:58 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[xp boot errors]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[windows file recovery]]></category>
		<category><![CDATA[xp boot error]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=951</guid>
		<description><![CDATA[XP Won&#8217;t Boot Repair Series Part 2: Bootloader to Logon Issues DISCLAIMER: These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility [...]]]></description>
				<content:encoded><![CDATA[<h2>XP Won&#8217;t Boot <img src='http://html5.litten.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <br />Repair Series Part 2: Bootloader to Logon Issues</h2>
<font size="2" color="navy"><strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em></font><br />
<br />
In <a href="http://html5.litten.com/xp-wont-boot-repair-series-part-1-post-and-mbr-issues/">part 1</a> we went through the computer powering on, running the code in the BIOS, finding the MBR on the boot disk and using it to find the location of the boot partition on that disk. Now we continue from the point where the code in the boot sector is accessed.<br />
<br />
The last thing the MBR does is to put the code from the first sector of the boot partition into memory and transfer control to it. Since all of this code is still being run in real mode and hasn&#8217;t switched into protected mode yet, you can encounter modified settings for viruses and malware. For example, the MBR could point to an infected or erroneous boot sector. Keep this in mind when investigating anomolies here.<br />
<br />
The XP/NTFS boot sector and subsequent bootstrapping code is a very complex topic that is beyond the scope of this article. If like me, you enjoy that kind of stuff then check out this link for more info&#8230;<br />
<a href="http://thestarman.pcministry.com/asm/mbr/NTFSBR.htm" target="_blank">http://thestarman.pcministry.com/asm/mbr/NTFSBR.htm</a><br />
<br />
The boot sector is in the partition&#8217;s Volume Boot Record (VBR). While the MBR exists at the first sector on the disk, the VBR is located at the first sector of the partition. The MBR determines which VBR is loaded. The VBR is similar to the MBR in the fact that it has a small program in it that is loaded into memory and run to start loading the boot loader which in turn allows you to choose which operating system to load. In our example we are talking about loading a single Windows XP 32-bit OS using an NTFS file system.<br />
<span id="more-951"></span>
<br />
The main purpose of our VBR is to load NTLDR which is a hidden, system file that resides in the root directory of the system partition. NTLDR will start loading XP then Ntoskrnl.exe continues on followed by the Session Manager Subsystem and finally the Logon. <br />
<br />
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<h2>The XP Bootloader to Logon Process</h2>
<strong>NTLDR</strong><br />
  

<blockquote><strong>Initial Boot Loader Phase</strong><br />
    Switches the CPU to protected mode, sets up memory paging and accesses the file system on the boot drive.<br />
    <br />
  <strong>Operating System selection</strong><br />
    If Windows was put in the hibernation state, the contents of hiberfil.sys are loaded into memory and the system resumes where it left off.<br />
    <br />
    Otherwise it reads the boot.ini file and prompts the user with the boot menu if more than one option is available (dual boot for example). In our example it points to the C:\Windows directory. If there is no boot.ini file, it will attempt a default XP boot from C:\Windows.<br />
    <br />
  <strong>Hardware Detection</strong><br />
    NTLDR then runs ntdetect.com, which gathers information about the computer&#8217;s hardware. This list will later be loaded in the registry under the HKEY_LOCAL_MACHINE\HARDWARE key. <br />
    <br />
  <strong>Configuration Selection</strong><br />
    If you have multiple hardware profiles it will ask you to choose one at this point.<br />
  <br />
  <strong>Load Kernel</strong>  <br />
    Starts Ntoskrnl.exe phase 0, passing to it the information returned by ntdetect.com.The Hardware Abstraction Layer (HAL.dll) is loaded to sit between the hardware and the kernel.The screen is cleared and a series of white rectangles progress across the bottom of the screen.<br />
    <br />
  <strong>Load Boot Device Drivers</strong><br />
     Any driver under HKEY_LOCAL_MACHINE\SYSTEM\Services that has a Start value of SERVICE_BOOT_START is loaded. A period is printed to the screen for each loaded file.<br />
     <br />
  <strong>NTLDR is done here and Ntoskrnl carries on.</strong><br />
    At this point, the system displays the XP splash screen with a status bar indicating load status. </blockquote>

<br />
    <br />
<strong>Ntoskrnl.exe phase 1</strong><br />
  

<blockquote>The HAL begins accepting interrupts from devices. If more than one processor is present the additional processors are initialized at this point. All Executive subsystems are reinitialized in the following order: <br />
 <br />


<blockquote>1) Object Manager <br />
2) Executive <br />
3) Microkernel <br />
4) Security Reference Monitor <br />
5) Memory Manager <br />
6) Cache Manager <br />
7) LPCS <br />
8) I/O Manager <br />
9) Process Manager <br /></blockquote>


  <br />
  I/O Manager assembles a prioritized list of drivers and attempts to load them. Failure of a driver to load may prompt NT to reboot and try to start the system using the values stored in the Last Known Good Configuration.<br />
<br />
<br />
  The Session Manager Subsystem (SMSS) is loaded.</blockquote>

 <br />
    <br />
<strong>SMSS</strong><br />
    

<blockquote>SMSS is responsible for creating the user-mode environment.<br />
    SMSS loads the win32k.sys device driver which switches the screen into graphics mode. The Services Subsystem now starts all services mark as Auto Start. Once all devices and services are started the boot is deemed successful and this configuration is saved as the &#8220;Last Known Good Configuration&#8221;.</blockquote>

 <br />
<br />
   <strong>Logon</strong><br />
    

<blockquote>Winlogon.exe file is loaded as a service and loads the Local Security Authority Subsystem (LSASS.EXE) which displays the logon dialog box or logs into the OS automatically depending upon your settings.</blockquote>

<br />
<br />
</div>
<br />
<br />
NTLDR has to be in the root of the active partition as do NTDETECT.COM, BOOT.INI, BOOTSECT.DOS (for multi-OS booting) and NTBOOTDD.SYS (if you have SCSI adapters). NTOSKRNL.EXE HAL.DLL SMSS.EXE WIN32K.SYS and LSASS.EXE are in \WINDOWS\SYSTEM32<br />
<br />
NTLDR also watches for the user to hit F8 and shows the Advanced Boot Options menu if it is detected.<br />
<br />
<h2>Common Boot Errors Bootloader to Logon</h2>
<strong>Problem with the boot sector</strong>. Pressing F8 for Windows Advanced Options menu does not work.<br />
<br />
<ul>
	<li>Black Screen Hang (before splash screen shows)</li>

	<li>Disk Read Error occurred</li>
</ul>
This is often caused by a bad or misconfigured boot sector<br />
<br />
Solutions:<br />
<a href="#disk">Check the disks health</a><br />
<a href="#fixboot">FIXBOOT command in the Recovery Console to rebuild the boot record</a><br />
<br />
<strong>Problem with loading NTLDR</strong> Pressing F8 for Advanced Boot Options menu does not work.<br />
<br />
<ul>
	<li>NTLDR missing</li>

	<li>NTLDR compressed</li>


</ul>

Solutions:<br />
<a href="#ntldr">Copy a good NTLDR to the root of the system drive</a><br />
<a href="#disk">Check the disks health</a><br />
<a href="#fixboot">FIXBOOT command in the Recovery Console to rebuild the boot record</a><br />
<br />
<strong>Problem with boot.ini</strong> Pressing F8 for Advanced Boot Options menu may work but selecting Safe Mode gives an error and does not work.<br />
<br />
<ul>
	<li>Invalid Boot.ini</li>
 
	<li>Boot Device is Inaccesible</li>

	<li>Hal.dll missing or corrupt</li>
</ul>

Solutions:<br />
<a href="#boot">Examine the boot.ini file for errors</a><br />
<a href="#disk">Check the disks health</a><br />
<a href="#rebuild">BOOTCFG /REBUILD command in the Recovery Console</a><br />
<br />
<strong>Problem with ntdetect.com</strong><br />
<ul>
	<li>NTDETECT V1.0 Checking Hardware </li>
   
	<li>NTDetect Failed  </li>
	<li>System Hive is Corrupt</li>

</ul>
Solutions:<br />
<a href="#ntldr">Copy a good NTDETECT.COM to the root of the system drive</a><br />
<a href="#disk">Check the disks health</a><br />
For the System Hive is Corrupt error&#8230;<br />
<a href="http://support.microsoft.com/kb/307545" target="_blank">Registry Repair in the Recovery Console (Microsoft&#8217;s Instructions)</a><br />
<a href="#reg">Registry Repair from Linux Boot Disk</a><br />
<br />
<strong>Problem with ntoskrnl.exe (boot driver error) or Black Screen Hang (after splash screen appears)</strong><br />
<br />
<ul>
	<li>Windows could not start because of a computer disk hardware configuration problem.</li>

	<li>Could not read from the selected boot disk. Check boot path and disk hardware. (After verifying boot.ini is correct)</li>
	<li>Windows NT could not start because the following file is missing or corrupt: Winnt_root\System32\Ntoskrnl.exe</li>
	<li>Winnt_root\System32\Hal.dll missing or corrupt</li>
	<li>Black Screen Hang (after splash screen appears)</li>

</ul>
Solutions:<br />
<a href="#lastconf">Try Last Known Good Configuration</a><br />
<a href="#disk">Check the disks health</a><br />
<a href="#editboot">Edit boot.ini with debugging switches to find which driver is causing the error.</a><br />
<a href="#bootlog">Enable Boot Logging to find which driver is causing the error.</a><br />
For missing/corrupted file errors<br />
<a href="#copy32">Copy a good Ntoskrnl.exe to the windows\system32 directory of the system drive</a><br />
<a href="#copy32">Copy a good hal.dll to the windows\system32 directory of the system drive</a><br />

<br />
<h2>Solution Details</h2>
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="disk"></a><br />
<strong>Check the disk&#8217;s health</strong><br />


<blockquote>Download and run the disk diagnostics program provided by your hard drive&#8217;s manufacturer from their website. If you have a preloaded computer,there is a chance that it has a diagnostic utility built into it. Consult your computer&#8217;s manual for details.<br />
<br />
You could run a free copy of PartedMagic for this. It is free but be sure to donate to him if his product helps you.<br />
<a href="http://partedmagic.com/" target="_blank">http://partedmagic.com/</a><br />
Follow the directions there to make a boot CD.<br />
Boot your broken computer from the CD and Select<br />
<code>1. Default Settings (Runs from RAM)</code>   <br /><br />
<strong>Self-Monitoring, Analysis and Reporting Technology (SMART) diagnostic report of the hard drive.</strong><br />
After PartedMagic loads, double-click the Disk Health icon on the desktop and then double-click the icon for your hard drive and select the <em>Attributes</em> tab.<br />
I usually look for bad sectors &#8220;Reallocated Sector Count&#8221; represented by the raw value of attribute ID 5 (and C5 to a lesser extent).<br />
If this value is greater than 0 then the disk may be going bad. Click on the Perform Tests tab and run the &#8220;Short Self Test&#8221; to make sure that it runs with a test result of <em>&#8220;Completed without error&#8221;</em>. If you see problems here, then the drive is probably going bad and you should focus on data recovery and replace it. If it has no errors from the short test, run the &#8220;Extended Self-Test&#8221; to make sure that the disk is okay.<br />
<br />
You could also run CHKDSK from the recovery console if you found errors on the disk but since we are dealing with system files and sectors, CHKDSK does not usually solve the problem and can in some cases make it more difficult to recover data from the drive. A bad drive needs to be replaced. See my data recovery posts for instructions on getting your data from the bad drive.<br /></blockquote>


<br />
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="fixboot"></a><br />
<strong>FIXBOOT command in the Recovery Console</strong><br />
<blockquote>
Boot your computer from the Windows XP CD (see the manual for your computer for instructions on booting from a CD)<br /><br />
When the &#8216;Welcome to Setup&#8217; screen appears, press the R button on your keyboard to start the Recovery Console.<br /><br />
The Recovery Console will start. If you have multiple Windows installations, it will list them, and you enter the number associated with the installation you want to work on and press enter. If you have just one Windows installation, type 1 and press enter.<br /><br />
You will then be prompted for the Administrator&#8217;s password. If there is no password, press enter. Otherwise type in the password and then press enter.<br /><br />
You will now see a <code>C:\Windows&gt;</code> prompt and you can start using the Recovery Console.<br /><br />
<strong>Attempt to repair the boot sector with the fixboot command.</strong><br />
<a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/bootcons_fixboot.mspx?mfr=true" target="_blank">http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/bootcons_fixboot.mspx?mfr=true</a><br />
 <br />
If you are attempting to repair the default boot drive, you can type<br />
<code>fixboot</code><br />
and hit enter.<br />
Answer <code>y</code> when asked if you are sure.
Type
<code>exit</code>
to close and reboot the computer.
<br />
</blockquote>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="ntldr"></a><br />
<strong>Copy a good NTLDR or NTDETECT.COM file to your disk</strong><br />
<blockquote>
Boot your computer from the Windows XP CD (see the manual for your computer for instructions on booting from a CD)<br /><br />
When the &#8216;Welcome to Setup&#8217; screen appears, press the R button on your keyboard to start the Recovery Console.<br /><br />
The Recovery Console will start. If you have multiple Windows installations, it will list them, and you enter the number associated with the installation you want to work on and press enter. If you have just one Windows installation, type 1 and press enter.<br /><br />
You will then be prompted for the Administrator&#8217;s password. If there is no password, press enter. Otherwise type in the password and then press enter.<br /><br />
You will now see a <code>C:\Windows&gt;</code> prompt and you can start using the Recovery Console.<br /><br />
For NTLDR type<br />
<code>copy C:\WINDOWS\ServicePackFiles\i386\ntldr c:\</code><br /><br />
For NTDETECT.COM type<br />
<code>copy C:\WINDOWS\ServicePackFiles\i386\ntdetect.com c:\</code><br />
</blockquote>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="boot"></a><br />
<strong>Examine the boot.ini file for errors</strong><br />
<blockquote>
Here is an example of a default boot.ini file for a typical Windows XP install.<br /><br />
<code>[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn</code>
<br /><br />

</blockquote>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="rebuild"></a><br />
<strong>BOOTCFG /REBUILD command in the Recovery Console</strong><br />
<blockquote>
Boot your computer from the Windows XP CD (see the manual for your computer for instructions on booting from a CD)<br /><br />
When the &#8216;Welcome to Setup&#8217; screen appears, press the R button on your keyboard to start the Recovery Console.<br /><br />
The Recovery Console will start. If you have multiple Windows installations, it will list them, and you enter the number associated with the installation you want to work on and press enter. If you have just one Windows installation, type 1 and press enter.<br /><br />
You will then be prompted for the Administrator&#8217;s password. If there is no password, press enter. Otherwise type in the password and then press enter.<br /><br />
You will now see a <code>C:\Windows&gt;</code> prompt and you can start using the Recovery Console.<br /><br />
<strong>Attempt to rebuild the boot.ini file</strong><br />
It will scan your drives and then tell you what Windows Installations it found and ask which ones you want in your boot list. Typically, it will find one. <br />Choose <code>YES</code><br />
<br />
Then it will ask for a Load Identifier, which is the name it displays when it lists the OS. You can put something like<br /> 
<code>Windows XP</code><br />
<br />
Then it asks for OS Load Options. Normally you can put<br />
<code>/fastdetect</code><br />
<br />
Type<br />
<code>exit</code><br />
to reboot the computer.<br />
</blockquote>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="reg"></a><br />
<strong>Registry Repair from Linux Boot Disk</strong><br />
<blockquote>
I like to run a free copy of PartedMagic for this. It is free but be sure to donate to him if his product helps you.<br />
<a href="http://partedmagic.com/" target="_blank">http://partedmagic.com/</a><br />
Follow the directions there to make a boot CD.<br />
Boot your broken computer from the CD and Select<br />
<code>1. Default Settings (Runs from RAM)</code>   <br /><br />
Now use either the graphical File Manager or the command line in a terminal to execute the commands in the Microsoft instructions<br /><br />
<a href="http://support.microsoft.com/kb/307545" target="_blank">http://support.microsoft.com/kb/307545</a><br /><br />
without the limitation of accessing protected files. Because of this you must be careful to always back files up properly before making changes to them.<br />
</blockquote>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="lastconf"></a><br />
<strong>Try Last Known Good Configuration</strong><br />
<blockquote>
When you turn on your computer start tapping the F8 key about once per second until the Windows Advanced Options menu appears on the screen. Select <br /><br />
<code>Last Known Good Configuration (your most recent settings that worked)</code><br /><br />
and then press ENTER. The computer will reboot and try to use the configuration that was used the last time that it booted successfully.<br />
</blockquote>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="editboot"></a><br />
<strong>Edit boot.ini with debugging switches</strong><br />
<blockquote>
This is a trick that will help you identify what mysterious driver or setting is causing the computer not to boot past the Windows XP splash screen.<br /><br />
There are two switches that I like to use for this&#8230;<br /><br />
The <code>/sos</code> switch displays the device driver names while they are being loaded. With this you can find the file that the crash is occurring at and can try renaming it temporarily to see if it boots and if it does then reinstall the device or program associated with it.<br /><br />
The <code>/basevideo</code> switch forces XP to use the generic video drivers so you can see if the video drivers are causing the computer not to boot. If they are, you can then try to reinstall or replace your video driver, remove the <code>/basevideo</code> switch and see if it is fixed.<br /><br /> 
To add the switches you can use commands in Recovery Console or edit the boot.ini file directly from a Linux boot CD (make a backup of the file first).<br /> 
The command in Recovery Console to add the <code>/sos</code> switch to a default boot.ini file is&#8230;<br /><br />
<code>bootcfg /addsw SO /ID n</code><br /><br />
To remove it type<br />
<code>bootcfg /rmsw SO /ID n</code><br /><br />
The command in Recovery Console to add the <code>/basevideo</code> switch to a default boot.ini file is&#8230;<br /><br />
<code>bootcfg /addsw BV /ID 1</code><br /><br />
To remove it type<br />
<code>bootcfg /rmsw BV /ID 1</code><br /><br />
If directly editing the boot.ini file here is what a default one looks like with the switches added&#8230;<br /><br />
<code>[boot loader]<br />
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /sos /basevideo</code><br /><br />
The list of available switches is here <a href="http://support.microsoft.com/kb/833721" target="_blank">http://support.microsoft.com/kb/833721</a><br />
<br />
Once you find the driver you suspect is causing the problem use Recovery Console commands to disable the driver or service. Remember that if you <code>disable</code> a driver or service in Recovery Console that you want to look at it first with the <code>listsvc</code> command and write down the start type so you can <code>enable</code> it properly at a later time.<br />
<a href="http://support.microsoft.com/kb/314058" target="_blank">http://support.microsoft.com/kb/314058</a><br />
</blockquote>

</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="bootlog"></a><br />
<strong>Enable Boot Logging to find which driver is causing the error.</strong><br />
<blockquote>
When you turn on your computer start tapping the F8 key about once per second until the Windows Advanced Options menu appears on the screen. Select <br /><br />
<code>Enable Boot Logging</code><br /><br />
and then press ENTER. The computer will reboot and create a report about the drivers it loads or tries to load during the boot process.<br />
The log is saved in a text file in C:\Windows\Ntbtlog.txt. Look at this file for errors to help find what is causing the problem.<br />
<br />
Once you find the driver you suspect is causing the problem use Recovery Console commands to disable the driver or service. Remember that if you <code>disable</code> a driver or service in Recovery Console that you want to look at it first with the <code>listsvc</code> command and write down the start type so you can <code>enable</code> it properly at a later time.<br />
<a href="http://support.microsoft.com/kb/314058" target="_blank">http://support.microsoft.com/kb/314058</a><br />
</blockquote>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><a name="copy32"></a><br />
<strong>Copy a good ntoskrnl.exe or hall.dll to the windows\system32 directory of the system drive</strong><br />
<blockquote>
Boot your computer from the Windows XP CD (see the manual for your computer for instructions on booting from a CD)<br /><br />
When the &#8216;Welcome to Setup&#8217; screen appears, press the R button on your keyboard to start the Recovery Console.<br /><br />
The Recovery Console will start. If you have multiple Windows installations, it will list them, and you enter the number associated with the installation you want to work on and press enter. If you have just one Windows installation, type 1 and press enter.<br /><br />
You will then be prompted for the Administrator&#8217;s password. If there is no password, press enter. Otherwise type in the password and then press enter.<br /><br />
You will now see a <code>C:\Windows&gt;</code> prompt and you can start using the Recovery Console.<br /><br />
For ntoskrnl.exe type<br />
<code>copy c:\windows\system32\ntoskrnl.exe c:\windows\system32\ntoskrnl.bak</code>
<br /><br />
<code>copy C:\WINDOWS\ServicePackFiles\i386\ntoskrnl.exe c:\windows\system32</code><br /><br />
For hall.dll type<br />
<code>copy c:\windows\system32\hall.dll c:\windows\system32\hall.bak</code>
<br /><br />
<code>copy C:\WINDOWS\ServicePackFiles\i386\hall.dll c:\windows\system32</code><br />
</blockquote>
</div>
<br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-1-post-and-mbr-issues/">Part 1: POST and MBR Issues</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-3-blue-screen-errors-at-xp-boot/">Part 3: Blue Screen Errors</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-4-recovery-console-and-other-tools/">Part 4: Recovery Console and Other Tools</a></strong><br />
<br />
<hr />
<br /><br />
ALL COMMENTS ARE MODERATED TO PREVENT SPAM]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>XP Won’t Boot :( Repair Series Part 3: Blue Screen Errors at XP Boot</title>
		<link>http://html5.litten.com/xp-wont-boot-repair-series-part-3-blue-screen-errors-at-xp-boot/</link>
		<comments>http://html5.litten.com/xp-wont-boot-repair-series-part-3-blue-screen-errors-at-xp-boot/#comments</comments>
		<pubDate>Sun, 07 Apr 2013 17:40:49 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[blue screen error]]></category>
		<category><![CDATA[bsod]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[xp boot errors]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[windows file recovery]]></category>
		<category><![CDATA[xp boot error]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=1018</guid>
		<description><![CDATA[XP Won&#8217;t Boot Repair Series Part 3: Blue Screen Errors at XP Boot Diagnosing and fixing blue screen errors at boot in Windows XP is kind of heavy duty so I&#8217;m going to be less detailed on these as I only expect people with a deeper technical understanding and background to attempt to fix these. [...]]]></description>
				<content:encoded><![CDATA[<h2>XP Won&#8217;t Boot <img src='http://html5.litten.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <br />Repair Series Part 3: Blue Screen Errors at XP Boot</h2>

Diagnosing and fixing blue screen errors at boot in Windows XP is kind of heavy duty so I&#8217;m going to be less detailed on these as I only expect people with a deeper technical understanding and background to attempt to fix these.<br /> 
<br />
Please note that this list is based on personal experience as a repair tech and not what I have read. When I researched these for this post, I noticed a lot of differences between what I had in my repair diary and what I found others reporting online so I stuck with what I know from experience so here is my disclaimer <img src='http://html5.litten.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <br />
<br />
<font size="2" color="navy"><strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em></font><br />
<br />
<span id="more-1018"></span>
<b>BSOD 0&#215;00000050</b><br />
<a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">First check the health of the disk.</a><br />

This can be a bad memory stick but almost always I have found it to be caused by a bad device driver. Often the CD or Video drivers.<br />
Try booting into VGA mode or adding the /basevideo switch to boot.ini.<br />
<br />
Then try booting with the /sos switch added to boot.ini or enable Boot Logging to find the file producing the error and if possible remove the device that the erroneous file is a driver for or use Recovery Console commands to disable the driver or service. Remember that if you <code>disable</code> a driver or service in Recovery Console that you want to look at it first with the <code>listsvc</code> command and write down the start type so you can <code>enable</code> it properly at a later time.<br />
<a href="http://support.microsoft.com/kb/314058" target="_blank">http://support.microsoft.com/kb/314058</a> <br />
<br />
To check if it is bad memory, run memtest86.<br />
<br />
Remember, if a device driver that used to work fine suddenly causes this error without you changing anything, expect there to be malware or a virus on the system and scan accordingly. <br />
<br />

<b>BSOD 0x0000007B</b><br />
<a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">First check the health of the disk.</a><br />

If the disk is healthy this error is often indicative of virus activity. Specifically an infected or damaged device driver that is neccessary for booting or the MBR could be pointing to a bad or malicious boot sector. Make sure that the MBR is pointing at the correct active partition and that there is no disk damage that could be in the bootsector or bootstrap code of the active partition.<br />
<br />
If you are able to repair this by changing the MBR expect there to be malware or a virus on the system and scan accordingly.<br /> 
<br />
Try booting with the /sos switch added to boot.ini or enable Boot Logging to find the file producing the error and if possible remove the device that the erroneous file is a driver for or use Recovery Console commands to disable the driver or service. Remember that if you <code>disable</code> a driver or service in Recovery Console that you want to look at it first with the <code>listsvc</code> command and write down the start type so you can <code>enable</code> it properly at a later time.<br />
<a href="http://support.microsoft.com/kb/314058" target="_blank">http://support.microsoft.com/kb/314058</a> <br />
<br />
<b>BSOD 0&#215;00000077</b><br />
<a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">First check the health of the disk.</a><br />
This one can be the same as 0x0000007B but if the appropriate parameters are provided with the error you can use this page to determine if it is being caused by a bad hard drive&#8230;<br />
<a href="http://support.microsoft.com/kb/315266" target="_blank">http://support.microsoft.com/kb/315266</a><br />
<br />
Be sure to check the health of the hard drive if you are seeing this error before trying anything else. You may be running out of time and need to do a data recovery ASAP.<br />
<br />

<b>BSOD 0&#215;00000078</b><br />
<a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">First check the health of the disk.</a><br />
My experience is that this is similar to 0x0000007B but it actually starts reading a seemingly proper boot sector and then crashes while services marked SERVICE_BOOT_START are loading. Booting with the boot.ini /sos switch or Boot Logging enabled may help find the offending driver. Also check the disk health and make sure that the MBR looks correct.<br />
Once you find a suspect driver use Recovery Console commands to disable the driver or service. Remember that if you <code>disable</code> a driver or service in Recovery Console that you want to look at it first with the <code>listsvc</code> command and write down the start type so you can <code>enable</code> it properly at a later time. <br />
<a href="http://support.microsoft.com/kb/314058" target="_blank">http://support.microsoft.com/kb/314058</a><br />
<br />

<b>BSOD 0x0000007E</b><br />
This is very similar to 0&#215;00000050 but without the bad RAM possibility.<br />
<br />

<b>BSOD 0&#215;00000024</b> <br />
<a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">First check the health of the disk.</a> and recover the data ASAP if it is bad. I have never seen this error for anything but a disk going bad.<br />
<br />

<b>BSOD 0x000000D1</b> <br />
<a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">First check the health of the disk.</a><br />
This is another driver error. For this one, try disabling USB then NIC(if it is on board) in the BIOS. If the NIC is a card, remove it and try to boot. If either of these fix the problem then search Microsoft for the hotfix or try a different NIC.<br /> 
<br />

<b>BSOD 0x000000ED</b> <br />
If you see this error, make sure that the computer is running the latest service pack. If not, then <a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">check the health of the disk.</a>. If it is healthy then run chkdsk/r and it should boot. Then upgrade the system to the latest service pack.<br /> 
<br />
If it is running the latest service pack then check the disk health and begin data recovery if it comes up bad. After recovery of important data try chkdsk to see if it repairs the drive.<br />
<br />

<b>BSOD 0x000000f4</b> <br />
I haven&#8217;t seen this much but usually it is a badly connected SATA drive. Check for loose connections or try plugging it into a different socket or with a different cable.<br />
<br />

<b>BSOD 0xc000021a</b> <br />
<a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/#disk">First check the health of the disk.</a><br />
This one has never gone well for me. It is a mess with the final step of the XP boot process and I have always had to do a repair reinstall to fix it. Here is the Microsoft article on it&#8230; <br />
<a href="http://support.microsoft.com/kb/156669" target="_blank">http://support.microsoft.com/kb/156669</a><br />
<br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-1-post-and-mbr-issues/">Part 1: POST and MBR Issues</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/">Part 2: Bootloader to Logon Issues</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-4-recovery-console-and-other-tools/">Part 4: Recovery Console and Other Tools</a></strong><br />
<br />
<hr />
<br /><br />
ALL COMMENTS ARE MODERATED TO PREVENT SPAM
]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/xp-wont-boot-repair-series-part-3-blue-screen-errors-at-xp-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XP Won&#8217;t Boot :( Repair Series Part 4: Recovery Console and Other Tools</title>
		<link>http://html5.litten.com/xp-wont-boot-repair-series-part-4-recovery-console-and-other-tools/</link>
		<comments>http://html5.litten.com/xp-wont-boot-repair-series-part-4-recovery-console-and-other-tools/#comments</comments>
		<pubDate>Sat, 06 Apr 2013 22:18:52 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[blue screen error]]></category>
		<category><![CDATA[bsod]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[xp boot errors]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[windows file recovery]]></category>
		<category><![CDATA[xp boot error]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=1046</guid>
		<description><![CDATA[XP Won&#8217;t Boot Repair Series Part 4: Recovery Console and Other Tools DISCLAIMER: These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no [...]]]></description>
				<content:encoded><![CDATA[<h2>XP Won&#8217;t Boot <img src='http://html5.litten.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <br />Repair Series Part 4: Recovery Console and Other Tools</h2>
<font size="2" color="navy"><strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em></font><br />
<br />
These are the tools that I almost always use to repair unbootable Windows XP computers. If you have your XP CD or access to a working XP computer, they are all free.<br />
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>Windows XP Recovery Console</strong><br />
<blockquote>
Boot your computer from the Windows XP CD (see the manual for your computer for instructions on booting from a CD)<br /><br />
When the &#8216;Welcome to Setup&#8217; screen appears, press the R button on your keyboard to start the Recovery Console.<br /><br />
The Recovery Console will start. If you have multiple Windows installations, it will list them, and you enter the number associated with the installation you want to work on and press enter. If you have just one Windows installation, type 1 and press enter.<br /><br />
You will then be prompted for the Administrator&#8217;s password. If there is no password, press enter. Otherwise type in the password and then press enter.<br /><br />
You will now see a <code>C:\Windows&gt;</code> prompt and you can start using the Recovery Console.<br />
You can find information on the available commands here&#8230;<br />
<a href="http://support.microsoft.com/kb/314058" target="_blank">http://support.microsoft.com/kb/314058</a><br />
<br />
<blockquote>
</div>
<br />


<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br /><strong>Windows XP Recovery Console without a Windows XP CD</strong><br />
<br />
<blockquote><strong>Automated Recovery CD Creator (ARCDC)</strong><br /> 
<a href="http://artellos.com/arcdc-page" target="_blank">http://artellos.com/arcdc-page</a><br /></blockquote>

</div>
<br />


<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>PartedMagic</strong><br />
<a href="http://partedmagic.com/" target="_blank">http://partedmagic.com/</a><br />
<br />
<blockquote><strong>PartedMagic Common Tools for XP Boot Repairs</strong><br />
<a href="http://www.cgsecurity.org/wiki/TestDisk" target="_blank">TestDisk</a><br />
<a href="http://gparted.sourceforge.net/" target="_blank">Gparted</a><br />
<a href="http://www.cgsecurity.org/wiki/PhotoRec" target="_blank">PhotoRec</a><br />
<a href="http://html5.litten.com/windows-file-recovery-series-part-6-readingediting-the-windows-registry-from-outside-of-windows/" target="_blank">chntpw</a><br />
<a href="http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html" target="_blank">ddrescue</a><br />
<a href="http://linux.die.net/man/1/hexedit" target="_blank">hexedit</a><br /></blockquote>


<br />
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"></a><br />
<strong>MBR VBR analyzer</strong><br />
Nate&#8217;s MBR and Boot Sector Analyzer<br />
<a href="http://www.aqfire.com/boot/" target="_blank">http://www.aqfire.com/boot/</a><br />
<br />
In depth information about the MBR and VBR<br />
<a href="http://thestarman.pcministry.com/asm/mbr/Win2kmbr.htm" target="_blank">http://thestarman.pcministry.com/asm/mbr/Win2kmbr.htm</a><br />
<a href="http://thestarman.pcministry.com/asm/mbr/NTFSBR.htm" target="_blank">http://thestarman.pcministry.com/asm/mbr/NTFSBR.htm</a><br />
<br />
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>Boot.ini resources</strong><br />
<a href="http://support.microsoft.com/kb/289022" target="_blank">http://support.microsoft.com/kb/289022</a><br />
<br />
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>Boot Disk for Virus/Malware scanning</strong><br />
<br />
<blockquote><strong>Kaspersky Rescue Disk 10</strong><br />
<a href="http://support.kaspersky.com/viruses/rescuedisk" target="_blank">http://support.kaspersky.com/viruses/rescuedisk</a><br />
Has an update-able virus/malware scanner<br />
File Manager<br />
Registry Editor<br /></blockquote><br />
<br />
</div>
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-1-post-and-mbr-issues/">Part 1: POST and MBR Issues</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-2-bootloader-to-logon-issues/">Part 2: Bootloader to Logon Issues</a></strong><br />
<br />
<strong><a href="http://html5.litten.com/xp-wont-boot-repair-series-part-3-blue-screen-errors-at-xp-boot/">Part 3: Blue Screen Errors</a></strong><br />
<br />
<hr />
<br /><br />
ALL COMMENTS ARE MODERATED TO PREVENT SPAM
]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/xp-wont-boot-repair-series-part-4-recovery-console-and-other-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using HTML5 Canvas for Poker Hand Analysis</title>
		<link>http://html5.litten.com/using-html5-canvas-for-poker-hand-analysis-part-1-introduction/</link>
		<comments>http://html5.litten.com/using-html5-canvas-for-poker-hand-analysis-part-1-introduction/#comments</comments>
		<pubDate>Fri, 05 Apr 2013 20:15:36 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[Canvas Element]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[html5 javascript 'poker hand analysis']]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=1285</guid>
		<description><![CDATA[Using HTML5 Canvas for Poker Hand Analysis FULL DEMO Here UPDATE 5-2-2013 Complete source code available for download here DEMO of the first tab with source code Here Poker hand analysis is an important tool for both the professional/learning player and for an online casino&#8217;s loss prevention staff. The professional and learning players can use [...]]]></description>
				<content:encoded><![CDATA[<h2>Using HTML5 Canvas for Poker Hand Analysis</h2>

<p><a href="http://bukawow.com/mcupc/">FULL DEMO Here</a></p>
<p><strong>UPDATE 5-2-2013</strong> <a href="http://bukawow.com/mcupc/MCU_Chart_HoldEmLimit3-10.zip">Complete source code available for download here</a></p>
<p><a href="/HTML5_1/">DEMO of the first tab with source code Here</a></p>

<p>Poker hand analysis is an important tool for both the professional/learning player and for an online casino&#8217;s loss prevention staff.</p>

<p>The professional and learning players can use hand analysis to examine their own play and the pattern of play that their opponents may use.</p>

<p>The online casino&#8217;s loss prevention staff can use hand analysis to spot anomolies that may be indicative of collusion, cheating or other &#8216;advantage play&#8217; situations.</p>

<h2>The Problem</h2>
<p>Both players and casino gaming survellance experts need to see the data representing the hand and the way it was played out in a concise, easy to follow format. A video takes far more time to watch than neccessary and anyone who has experience working with various &#8216;hand history&#8217; files and formats knows that they are cumbersome and not consistent. The expert or educator wants to learn about or teach the hand without dealing with constant inconsistencies or searching through uneccessary data points. Time truly is money for this situation.</p>

<h2>The Solution</h2>
<p>Several years ago, poker computing legend, Mike Caro (<a href="http://en.wikipedia.org/wiki/Mike_caro">http://en.wikipedia.org/wiki/Mike_caro</a>) came up with a format for representing poker hands in a clear and concise way. He called it the MCU (Mike Caro University) Poker Chart which he published in his book &#8220;Caro&#8217;s Book of Poker Tells: The Psychology and Body Language of Poker&#8221; ISBN 1580420826.
Here is a sample MCU Poker Chart generated from the program that I wrote which we will be discussing in this series of blog posts.</p>
<br />
<img src="/images/form.png" border="0" />
<br />
<span id="more-1285"></span> 
<p>I&#8217;ve had the great pleasure of corresponding with Mr. Caro while working on this project and he is a very nice person in addition to being the somewhat reclusive genius he is portrayed as. I must disclose that I am a bit starstruck by Mr. Caro. He wrote the ORAC poker AI as well as Poker Probe back when I was just starting to learn to program computers.</p>

<p>I wanted to build a solution that can create MCU Poker Charts from varied datasets. Whether it be text file &#8216;hand histories&#8217; direct database access or even live hands as they progress. The hand analyst need only feed it the data and then instantly start their work analyzing the play of the hand.</p>

<p>The solution that I settled on was a client side javascript application that runs on computers, laptops, tablets, phones, etc. using an HTML5 canvas that can be easily converted to an image file for saving or printing.</p>

<p>The first demo <a href="http://bukawow.com/mcupc/">can be found here</a> (go ahead and play with it) and uses a form for input. However, it would be trivial to replace the form with a database connection or the ability to load a hand history file into it. Here is an example output from a database where a specific hand is requested and the MCU Poker Chart is automatically generated and output.</p>
<br />
<img src="/images/handhist.png" border="0" />
<br />
<h2>First Version</h2>
<p>For the initial version of the program we need to select a game that has a low complexity but is among the most popular games played. Once this works it is easy to expand it to cover other more complex games.<br />
For this reason we chose<br /> 
<strong>Limit Hold &#8216;em : No ante : 3 to 10 players</strong></p>
<!--more-->
<p>Using 3 to 10 players avoids the &#8216;forced bet&#8217; difference of heads up (2 player) and using a limited bet version avoids the &#8216;side pot&#8217; &#8216;allin&#8217; betting of &#8216;no limit&#8217;. It is also a very popular game. &#8216;Forced betting&#8217; simply consists of a small blind and big blind which moves with the button (dealer position). Betting amounts and order of betting are strictly governed by specific rules that are easy to simulate in our model.</p> 

<p>Mr. Caro obviously put a lot of thought into what data should be included in the chart. I have discussed this with many people and a few more data elements have been brought up which are not in the chart. Here are some along with my reasons for not adding them in this version. Please provide any feedback or comments that you may have about this or other data that you feel is missing.</p>

<strong>Data that is not in the chart</strong>
<ul>
	<li><strong>Natural acumen</strong> (things that I feel an analyst sees automatically when they view the data in the chart and therefore would be redundant to include.)
    		<ul>
    			<li><strong>Pot odds</strong><br />
      Players using pot odds can easily discern them from the data given. Pot odds become more of a &#8216;feeling&#8217; for players that use them and are often only exactly calculated when they are in the gray area where the player has to decide &#8220;Do I gamble here?&#8221;</li>
    	<li><strong>Strength of hand</strong><br />
      Like pot odds, a person who plays a lot starts to &#8216;feel&#8217; the strength of their hand as cards are revealed. The chart displays betting patterns as cards are revealed so all of the information is there.</li>
    	<li><strong>Tight / Loose play</strong><br />
      This is more of a trend that is determined over a series of hands by the same players. It is an important tool for determining the playing pattern of a potential opponent or for analyzing your own play. It is also an excellent indicator of collusion over a series of games. In the future this will probably be added to a version that analyzes multiple hands at one time and produces a trends graph.</li>
	     </ul>
</li>
	<li><strong>Algorithmic monitoring</strong><br />
I&#8217;ve also been asked about data that I feel should be algorithmically detected by online casinos and is not really necessary for players to see. There is however, one of these data elements that is very important in analyzing live &#8216;in person&#8217; play but not online play (except behind the scenes by algorithms).
That is the timing of play.<br />
In a &#8216;real life&#8217; game at a table there is a lot of knowledge to be gained by seeing a player agonize over a raise for longer than normal or quickly call. Online, this kind of timing is often useless because their phone could be ringing or their cat jumped on the keyboard. You don&#8217;t know.<br />
Algorithmic monitoring of this by the online casino can be used in conjunction with mouse and key-press tracking to detect bots. At which point further examination or a Turing test of some sort becomes appropriate. There is more to it than that but I don&#8217;t think it is wise or pertinent to this discussion to go into more detail.<br />
Since this application is being targeted to online play, timing is not included in this version. The &#8220;Add Note&#8221; feature on the form version can easily be used to add a footnote that describes an unusual timing.
</li>

</ul>




<p>So after boiling away all that appears to be extraneous data, we are left with Mr. Caro&#8217;s original chart. I think this speaks to how well thought out it is.</p>

<p>Again, I am alone in this project and would welcome any suggestions or arguments about the points I&#8217;ve made or missed completely.</p>

<h2>Frameworks used.</h2>
<p>I&#8217;d like to keep this free in the spirit that Mr. Caro wished it to be when he created it so all frameworks used are open source. Any of my custom code will also be open source.<br />
This is important for the ability of the code to be reviewed. Especially if it is ever needed as evidence of a crime or fraud or to prevent its misuse for such.</p>

<p>I&#8217;ve opted to keep as much of this as possible on the client side using Javascript so that the creation of the chart occurs on the user&#8217;s device and not on a server that they have no control over.</p>

<p><strong>Cross-browser Compatibility (works in all common browsers on all devices)</strong><br />
JQuery <a href="http://jquery.com/">http://jquery.com/</a><br />
JQuery-UI (for the form version) <a href="http://jqueryui.com/">http://jqueryui.com/</a><br />
Google Chrome Frame add-on<a href=" https://developers.google.com/chrome/chrome-frame/"> https://developers.google.com/chrome/chrome-frame/</a> (for compatability with older Internet Explorer browsers)</p>

<h2>Source Code of the first tab</h2>
<p>The two main features of the MCU Poker Chart Generator are<br />
<blockquote><strong>1.</strong> It runs on all devices and operating systems.<br />
<strong>2.</strong> It works off of all the different data sources out there for hand histories with minimal customization.</blockquote>
</p>

<p>These goals are met by using a client-side Javascript solution.</p>

<p>Simply put, the application.<br />
<blockquote>Gets the data.<br />
Draws the canvas.<br />
Draws the data in the proper positions on the canvas.</blockquote></p>

<p>The demo uses a fake form (DIV with input elements) for data input and this is accessed by the application using the DOM. It could just as easily be accessing a JSON data set or XML or data straight from any database even straight from a text hand history file.</p>

<p>Let&#8217;s take a look at the code that grabs the data from the first tab of the form and uses it to start placing data on the canvas.</p>

<p>Go here to see single tab demo and source code</p>

<p><a href="/HTML5_1/">DEMO of the first tab with source code Here</a></p>
<p><strong>UPDATE 5-2-2013</strong> <a href="http://bukawow.com/mcupc/MCU_Chart_HoldEmLimit3-10.zip">Complete source code available for download here</a></p>
<p><a href="http://bukawow.com/mcupc/">FULL DEMO Here</a></p>

<p>Continuing with this method for the other tabs creates an application that can take data from nearly any source and display an MCU Poker Chart for the hand on any device.</p>

<p>It is easy to modify for any poker game. If you&#8217;d like more information on creating something like this for your website or business, contact me.</p>]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/using-html5-canvas-for-poker-hand-analysis-part-1-introduction/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Fix: Recover Data From a Scratched or Damaged CD or DVD</title>
		<link>http://html5.litten.com/how-to-fix-recover-data-from-a-scratched-or-damaged-cd-or-dvd/</link>
		<comments>http://html5.litten.com/how-to-fix-recover-data-from-a-scratched-or-damaged-cd-or-dvd/#comments</comments>
		<pubDate>Sun, 10 Feb 2013 15:23:48 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[undelete files]]></category>
		<category><![CDATA[undelete.recover lost files]]></category>
		<category><![CDATA[windows file recovery]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=1238</guid>
		<description><![CDATA[How To Fix: Recover Data From a Scratched or Damaged CD or DVD DISCLAIMER: These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take [...]]]></description>
				<content:encoded><![CDATA[<h2>How To Fix: Recover Data From a Scratched or Damaged CD or DVD</h2>
<font size="2" color="navy"><strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em></font><br />
<br />
<p>
In the course of repairs that my clients ask me to perform, occasionally I am confronted with a CD or DVD that they wish to get the data from but are having difficulty.
</p>

<p>
There are many reasons that this can happen such as scratches, dirt, ink seeping through from the label or even cracks.<br />
<strong>IF THE CD/DVD IS CRACKED, BE PREPARED FOR THE POSSIBILITY THAT IT MAY SHATTER IN THE DRIVE. SINCE TIME MAY BE LIMITED, YOU PROBABLY WANT TO MOVE STRAIGHT TO ATTEMPTING TO IMAGE THE DISC AND HANDLE IT AS LITTLE AS POSSIBLE.</strong><br />
I have lost two optical drives to exploding discs. Both times the discs were badly cracked and attempts were made to limit the speed and maintain the best possible balance but they still exploded. Fortunately a large amount of data (all of it in one case) was recovered prior to the disc self destructing.
</p>

<p>
Normally though, I encounter discs that are scratched and scuffed to the point that they are no longer readable. Often you can view the disc and the files on it but any attempts to open or read the files gives an error.
</p>

<h2>Let&#8217;s make a mess.</h2>
<p>
First, we&#8217;ll make a CD with some public domain documents, video and audio files.</p>
<p align=center style='text-align:center'><img width=500 src="/cdimages/cd_before.jpg"></p>
<span id="more-1238"></span>
<p>Then we&#8217;ll damage it by slicing the surface with a knife held at an angle to simulate really bad scratches.<br />
<p align=center style='text-align:center'><img width=500 src="/cdimages/scratch.jpg"></p>
Now the disc does show the list of files on it but trying to access them does not work.
</p>
<p align=center style='text-align:center'><img width=500 src="/cdimages/cd_after.jpg"></p>
<p>
<h2>Clean it</h2>
The main rule for cleaning is simple to state but may be difficult to execute.
DO NOT MAKE THE DAMAGE WORSE
That&#8217;s all you need to do when cleaning. Simple, no?
Not always <img src='http://html5.litten.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
</p>

Here is how I proceed with cleaning. Usually I stop after the first step. They rarely seem to require any kind of scrubbing or wiping so I avoid it as much as possible.<br />
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>REMEMBER TO STOP WHEN IT SEEMS AS CLEAN AS IT WILL GET. YOU DO NOT NEED TO DO ALL OF THESE STEPS</strong><br /><br />
<ol>
<li>Rinse with warm water. Blot dry with soft cloth.</li>
<li>Rinse with warm water. Smear with a gentle soap like baby shampoo. Rinse with warm water. Blot dry with soft cloth.</li>
<li>If there is gunky sticky residue on it that must be removed try a cotton swab and some Unscented Isopropyl Alcohol <strong>BE GENTLE</strong>.</li>
</ol>
</div>
<br />
<p>
Let me to repeat the main rule of cleaning.<br />
<strong>DO NOT MAKE THE DAMAGE WORSE</strong><br />
You are removing foreign material, not altering the physical state of the disk.<br /> You are not trying to buff out scratches.<br />
</p>


<p>
Try reading the disc again<br />
<strong>MAKE SURE THE DISC IS COMPLETELY DRY</strong><br />
Sometimes cleaning is enough to give you an opportunity to copy all of the important files from the disc.<br />
If you have access to multiple optical drives try them all. They can differ in quality and I have found some to be excellent at reading damaged discs that others simply won&#8217;t read.
</p>


<h2>Make a rescue image of the disc</h2>
You still can&#8217;t read the disc. Sorry to hear that but there is hope.<br />
<br />

<h2>Tools</h2>
<p><span class=Heading3Char><i>If a free tool helps you, please
donate to the people who created it.</i></span></p>
<p style='margin-left:.25in'><b>PartedMagic by Patrick J. Verner
(Free)</b></p>
<p style='margin-left:.5in'><a href="http://partedmagic.com">partedmagic.com</a></p>
<p style='margin-left:.25in'><b>GNU ddrescue (Free, included in PartedMagic)</b></p>
<p>&nbsp;</p>
<p>To get started, <a href="http://fixit.litten.com/makebootcd.html">download and burn a PartedMagic BootCD/DVD</a>
and boot the computer with it.</p>
<p>&nbsp;</p>

<p>
In this example, we&#8217;ll make the image on a USB flash drive plugged into the computer so we will need to mount the partition on that which is, in our case, /media/sdd1. We&#8217;ll use the MOUNT DEVICES button in the lower left hand corner of the desktop to open Mount-gtk and then press the MOUNT button next to /media/sdd1.
</p>
<p align=center style='text-align:center'><img width=500 src="/cdimages/mountflash.jpg"></p>

<p>
<strong>Make an image with GNU ddrescue</strong><br />
Now we can open a Terminal window by clicking the monitor icon next to the MOUNT DEVICES icon in the lower left corner of the desktop.
</p>

<p>
We will do this in at least two passes. The first one will simply get all of the data that is easy to read and in good shape. For this pass we type in the command&#8230;
</p>
<pre>ddrescue -n -b 2048 /dev/sr0 /media/sdd1/mystuff.iso /media/sdd1/mystuff.log</pre>

<p align=center style='text-align:center'><img width=500 src="/cdimages/firstpass1.jpg"></p>

<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<pre><strong>ddrescue</strong> : The ddrescue command 
<strong>-n</strong>       : Tells it not to split failed blocks which would dig 
deeper into the problem areas but it does still attempt to trim 
failed blocks.

<strong>-b 2048</strong>  : Sets the block size to 2048 which is the standard 
block size for CD/DVD

<strong>/dev/sr0</strong> : This is the optical drive with the bad CD in it 
(other versions of Linux may call this something else such as 
/dev/cdrom)

<strong>/media/sdd1/mystuff.iso</strong> : The recovered ISO file which will 
be saved on our flash disk.

<strong>/media/sdd1/mystuff.log</strong> : The log file which will be saved on 
our flash disk and will allow us to stop and resume the recovery 
whenever we wish without having to start from the beginning again.</pre>
<br />
</div>
<br />
<p>
It finishes in about 20 minutes but it does not look good. While it recovered about 310MB of data, it was not able to recover 155MB so we are still missing a third of our data.
</p>
<p align=center style='text-align:center'><img width=500 src="/cdimages/firstpass2.jpg"></p>

<p>
At this point, we can try mounting that ISO and see what is on it. In this case, I found many files were intact but some of the audio books had large gaps in them or would not play at all even though they appeared to be the right size (since ddrescue fills the errors with empty spaces).
</p>

<p align=center style='text-align:center'><img width=500 src="/cdimages/afterfirstpass.jpg"></p>

<p>
You can go through the files and if the important files that you want are intact and not damaged then you can recover them and you are done. However, if like in my example, the files you want to recover are damaged then you need to continue on to the second pass. It is often much more time consuming than the first pass was.
</p>

<h2>Second Pass</h2>
<p>
This time in the terminal we type<br />
<pre>ddrescue -d -b 2048 /dev/sr0 /media/sdd1/mystuff.iso /media/sdd1/mystuff.log</pre>
We removed the -n so this time it will dig deeper to recover errors and we are using -d to give us direct access to the drive without any caching.
</p>
<p align=center style='text-align:center'><img width=500 src="/cdimages/secondpass1.jpg"></p>

<p>
After 24 hours (almost to the minute) it finished but was still unable to get 21MB of the data. That is a lot better than the 155MB that was missing after the first pass. When we mount the image, everything is fine except the cartoon. It is still messed up and corrupted in some parts. It is 86MB so 21MB is about a quarter of it. Playing it works but there are sections where the image or audio is corrupted and scrambled.
</p>
<p align=center style='text-align:center'><img width=300 src="/cdimages/filmstillbad.jpg"></p>

<h2>Try another CD/DVD player to get even more</h2>
<h2>Third Pass</h2>
<p>
I have a very good external optical drive that I can use to try to get some more of that data. Here we hook it up and attempt a third pass using the same command as we did for the second pass (we change the source path to the external optical drive) and we add -r 3 to have it retry all the data that it could not get before three more times.
</p>
<pre>ddrescue -d -r 3 -b 2048 /dev/sr1 /media/sdd1/mystuff.iso /media/sdd1/mystuff.log</pre>

<p>
After 24 hours that only got us another 2.2MB so there is still about 18MB missing. It never even finished completing the first retry in that time.
</p>


<h2>Fourth Pass</h2>
<p>
Next we try a standard internal drive from an old broken computer that we hook up externally with a PATA/USB bridge. I don&#8217;t expect it to do much but let&#8217;s try it.
</p>

Again, the external drive is detected in PartedMagic as /dev/sr1 so we use the same command that we used for the third pass.<br />
<pre>ddrescue -d -r 3 -b 2048 /dev/sr1 /media/sdd1/mystuff.iso /media/sdd1/mystuff.log</pre>

<p>
Wow! After 24 hours an additional 5MB of the worst damage is recovered so there is only 13MB left that is a recovery of 97.2% of the data. We&#8217;ll let this one run for a while longer. After another 12 hours we get another 2MB and that seems to be the extent of our recovery efforts with these tools and drives.
</p>


<pre>First pass 20 minutes 155MB missing out of 470MB 33% data lost
Second pass 24 hours 21MB missing out of 470MB 4.5% data lost
Third pass 24 hours 18MB missing out of 470MB 3.8% data lost
Fourth pass 36 hours 11MB missing out of 470MB 2.3% data lost</pre>

<p>
97.7% recovered after three and a half days. I tried several more optical drives and also retried drives that I had already used but could only get less than 100Kb more so this appears to be the best we can do with this technique. All of the data is playable, viewable and readable except for some periods of audio and video corruption in the cartoon.
</p>
<br /><br /><br />


]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/how-to-fix-recover-data-from-a-scratched-or-damaged-cd-or-dvd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing and Assessing a Hard Drive&#8217;s S.M.A.R.T. Data</title>
		<link>http://html5.litten.com/accessing-and-assessing-a-hard-drives-s-m-a-r-t-data/</link>
		<comments>http://html5.litten.com/accessing-and-assessing-a-hard-drives-s-m-a-r-t-data/#comments</comments>
		<pubDate>Mon, 21 Jan 2013 20:14:28 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[blue screen error]]></category>
		<category><![CDATA[bsod]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[windows file recovery]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=1164</guid>
		<description><![CDATA[Accessing and Assessing a Hard Drive&#8217;s S.M.A.R.T. Data DISCLAIMER: These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you [...]]]></description>
				<content:encoded><![CDATA[<h2>Accessing and Assessing a Hard Drive&#8217;s S.M.A.R.T. Data</h2>
<font size="2" color="navy"><strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em></font><br />
<br />
<h2>1.0 Introduction</h2>
<p>
Being able to effectively analyze the S.M.A.R.T. data on a hard disk drive (HDD) enables you to quickly identify problems that can aid you in recovering all of the data from it before it becomes irretrievable or requires significant expense to retrieve.
</p>

<p>
The vast majority of hardware repairs that I do for clients involve problems with hard disk drives. If the computer&#8217;s BIOS sees the drive okay and it is not making any unusual sounds, the first thing I do is examine the S.M.A.R.T. data on the drive.
</p>

<p>
<b>S.M.A.R.T. stands for Self-Monitoring, Analysis and Reporting Technology</b> and is the hard drive’s record of its internal diagnostic monitoring and usage statistics packaged for being accessed externally. The primary purpose of S.M.A.R.T. is to alert us to an impending failure of the drive while there is still time to save the data. When a hard drive reports that the S.M.A.R.T. health is FAILED you must get the important data off of it immediately and not use the drive anymore.</p>

<p>
<strong>IT IS IMPORTANT TO UNDERSTAND THAT DIFFERENT MANUFACTURERS AND DIFFERENT DRIVE MODELS CAN STORE AND DISPLAY DIFFERENT SUBSETS OF S.M.A.R.T. DATA AND CALCULATE VALUES AND TOLERANCES DIFFERENTLY.</strong></p>

<p>
S.M.A.R.T. data is best used as a general guide. For specifics, the hard drive’s technical documentation must be consulted. Sometimes that information is difficult to come by and can be proprietary. For example, the formulas for how some manufacturers calculate normalized values for attributes can be very difficult to find.
</p> 
<p><a href="http://en.wikipedia.org/wiki/S.M.A.R.T." title="Wikipedia entry for S.M.A.R.T.">Wikipedia entry for S.M.A.R.T.</a></p>


<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<b>Proper analysis of S.M.A.R.T. data</b>
  <ul>
  <li>Can help determine if the problem is physical damage or just logical damage.
    <ul>
      <li>With logical damage, the drive can be trusted and continue to be used after being repaired.</li> 
      <li>With physical damage, you want to get any important data off of the drive and replace it.</li>
    </ul></li> 
  <li>Helps you choose the best method for recovering all of the data from the drive.</li>
  <li>Prevents you from accidentally doing things that may make matters worse.</li>
</ul>
</div>
<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>In order to check the S.M.A.R.T. data on a HDD</strong>
  <ul>
  <li>The drive should not be making strange clicking or beeping noises. That means that there is definitely physical damage and it should be sent to a facility with the proper tools and environment to repair/recover it.</li>
  <li>The drive needs to be accessible by the computer&#8217;s BIOS during POST (responds to the ATA command IDENTFY_DEVICE).</li> 
  <li>In the case of external drives connected via USB they need to be detected by the computer&#8217;s Plug and Play software (responds to the ATA command IDENTFY_DEVICE).</li>
</ul>
</div>
<br />
<span id="more-1164"></span>
<p>After making sure that the connection between the drive and
the computer is correct and its quality is the best it can be, you need to
check the health of the drive itself. Then you can rule out physical damage
that requires repair with specialized tools in a controlled environment.</p>

<p>It is best to do this in Linux because Windows will try to
mount the drive&#8217;s file systems automatically and that may add layers of abstraction
that make it difficult to access the health statistics on the drive. A Linux
LiveCD or boot CD is fine.</p>

<h2>1.1 Drive Health Check Summary Using S.M.A.R.T. Data</h2>

<p style='text-indent:-.25in'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><b>Does the drive make noises that it did not make before?</b></p>

<p style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span>Loud clicking or a periodic beeping sound may indicate mechanical
damage. Physical damage may require the drive to be sent to a facility with the
proper tools and equipment to recover the data.</p>

<p style='text-indent:-.25in'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><b>Does S.M.A.R.T. show any errors or bad attribute values?</b></p>

<p style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span>See section 1.2 below for details on checking S.M.A.R.T.
attributes with ID#s 1, 5 and 197.</p>

<p style='text-indent:-.25in'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><b>Does it pass the S.M.A.R.T. Short Self-Test?</b></p>

<p style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span>See section 1.3 below for details on how to run the S.M.A.R.T.
Short Self-Test.</p>

<p>If it does not pass any of these tests, you need to either
get important files off of the drive immediately (if you can access them) or
make an image of the drive (see <a href="http://fixit.litten.com/datarecoveryflowchart.htm#flow6" title="Making an image with ddrescue">&#8220;Making an image with ddrescue&#8221;</a> for how to make an image of a
failing drive) and attempt recovery of data from the image.</p>

<h2><a name="_Toc341362376"></a><a name="_Toc341359692">Tools </a></h2>

<p><span class=Heading3Char><i>If a free tool helps you, please
donate to the people who created it.</i></span></p>

<p style='margin-left:.25in'><b>GSmartControl by Alexander
Shaduri (using smartctl by Bruce Allen) (Free)</b></p>

<p style='margin-left:.5in'><a href="http://gsmartcontrol.berlios.de">gsmartcontrol.berlios.de</a></p>

<p style='margin-left:.25in'><b>PartedMagic by Patrick J. Verner
(Free)</b></p>

<p style='margin-left:.5in'><a href="http://partedmagic.com">partedmagic.com</a></p>

<p>&nbsp;</p>

<h2><a name="_Toc341362377">1.2 Check the S.M.A.R.T. Data on the Drive</a></h2>

<p>To get started, <a href="http://fixit.litten.com/makebootcd.html">download and burn a PartedMagic BootCD/DVD</a>
and boot the computer with it.</p>

<p><a href="http://partedmagic.com">partedmagic.com</a></p>

<p>&nbsp;</p>

<p>The GUI version of GSmartControl is preinstalled in
PartedMagic and appears on the desktop as an icon that says DISK HEALTH beneath
it. (GSmartControl can also be run from Windows but it may be more difficult to
access a failing drive due to automated attempts to mount file systems on the
drive)</p>

<p align=center style='text-align:center'><img width=274
height=157 src="/smartimages/image056.jpg"></p>

<p>&nbsp;</p>

<p>In this example, we’ll look at a Western Digital Scorpio
Blue hard drive that is known to have errors. We select our drive and the
results of the ATA interface command IDENTIFY DEVICE are displayed on the first
tab. Notice that at the bottom it says that it has passed the Self-Assessment
test. This drive has errors but not bad enough ones for it to fail S.M.A.R.T.</p>

<p align=center style='text-align:center'><img width=372
height=319 src="/smartimages/image057.jpg"></p>

<p align=center style='text-align:center'>&nbsp;</p>

<p>The Attributes tab gives a quick grid view of the S.M.A.R.T.
attributes that are tracked and reported by this drive and their data. We’ll
discuss these later when we look at the report we create for this drive. As you
can see, some of the lines are highlighted pink in order to bring attention to
potential error data.</p>

<p align=center style='text-align:center'><img width=479
height=314 src="/smartimages/image058.jpg"></p>

<p align=center style='text-align:center'>&nbsp;</p>

<p>The Capabilities tab tells us what S.M.A.R.T. features this
hard drive has available, including self-tests that it can do and how it
periodically saves the S.M.A.R.T. data.</p>

<p align=center style='text-align:center'><img width=473
height=302 src="/smartimages/image059.jpg"></p>

<p>&nbsp;</p>

<p>The Error Log tab shows the error log data that is being
stored in the hard drive’s S.M.A.R.T. and usually only contains the last five
errors.</p>

<p align=center style='text-align:center'><img width=500
height=358 src="/smartimages/image060.jpg"></p>

<p align=center style='text-align:center'>&nbsp;</p>

<p>The Self-Tests Log tab shows the results of any Self-Tests
that have been run. </p>

<p align=center style='text-align:center'><img width=500
height=321 src="/smartimages/image061.jpg"></p>

<p align=center style='text-align:center'>&nbsp;</p>

<p>The Perform Tests tab has the options for you to have it
perform any of the S.M.A.R.T. self-tests available for that hard drive.</p>

<p align=center style='text-align:center'><img width=481
height=308 src="/smartimages/image062.jpg"></p>

<p align=center style='text-align:center'>&nbsp;</p>

<p>Click the SAVE AS button at the bottom of the screen to save
the S.M.A.R.T. report for the drive. Make sure that you have mounted a drive to
save it to first otherwise it will save it to the RAM disk which is in memory
and will disappear as soon as you shut down the computer. The easiest way to mount
a drive in PartedMagic is to click the MOUNT DEVICES button in the lower left
corner of the desktop.</p>

<p><b>Let’s look at our report.</b></p>

<p>First we see some of the information that the hard drive
reports when it is sent the ATA command IDENTIFY DEVICE. We also see if the
drive is in smartctl’s database of drives so it knows if there are any special
considerations for interpreting the S.M.A.R.T. data for that drive. </p>

<p>&nbsp;</p>

<pre style='font-size:x-small'>
smartctl 5.42 2011-10-20 r3458 [i686-linux-3.4.4-pmagic] (local build)
Copyright (C) 2002-11 by Bruce Allen, 

http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Scorpio Blue Serial ATA
Device Model:     WDC WD1200BEVS-75RST0
Serial Number:    WD-WXE607356256
LU WWN Device Id: 5 0014ee 2005c2a3e
Firmware Version: 04.01G04
User Capacity:    120,034,123,776 bytes [120 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Fri Nov 16 09:31:04 2012 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
</pre>


<p>&nbsp;</p>

<p>Next is the drive’s health assessment. This is followed by
details of the S.M.A.R.T. capabilities that this drive has.</p>
<p>&nbsp;</p>
<pre style='font-size:x-small'>
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      ( 112)	The previous self-test completed having
					the read element of the test failed.
Total time to complete Offline 
data collection: 		( 5400) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 (  70) minutes.
Conveyance self-test routine
recommended polling time: 	 (   6) minutes.
SCT capabilities: 	       (0x103f)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.
</pre>

<p>&nbsp;</p>

<p class=code><span style='color:#002060'>&nbsp;</span></p>

<p>Next the attributes that are monitored by this drive are
listed. This is a pretty common subset of attributes listed in our report here
but you will come across others. For example, Hitachi drives often have a “<span
class=postdetails>G-Sense Error Rate”</span> attribute that uses accelerometers
inside the drive to detect and record any strong shocks if the drive is dropped
or bumped very hard.</p>


<p>&nbsp;</p>
<pre style='font-size:x-small'>
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   192   190   051    Pre-fail  Always       -       54689
  3 Spin_Up_Time            0x0003   187   185   021    Pre-fail  Always       -       1633
  4 Start_Stop_Count        0x0032   096   096   000    Old_age   Always       -       4058
  5 Reallocated_Sector_Ct   0x0033   193   193   140    Pre-fail  Always       -       49
  7 Seek_Error_Rate         0x000e   143   143   051    Old_age   Always       -       3023
  9 Power_On_Hours          0x0032   086   086   000    Old_age   Always       -       10887
 10 Spin_Retry_Count        0x0012   100   100   051    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0012   100   100   051    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   000    Old_age   Always       -       3653
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       88
193 Load_Cycle_Count        0x0032   162   162   000    Old_age   Always       -       115356
194 Temperature_Celsius     0x0022   120   078   000    Old_age   Always       -       27
196 Reallocated_Event_Count 0x0032   174   174   000    Old_age   Always       -       26
197 Current_Pending_Sector  0x0012   175   167   000    Old_age   Always       -       506
198 Offline_Uncorrectable   0x0010   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   051    Old_age   Offline      -       0
</pre>

<p>&nbsp;</p>

<p><b>Interpreting attributes</b></p>

<p>Attributes can be calculated differently by different
manufacturers so here are some general rules to guide you. Let’s look at our
drive’s values for attribute with ID# 1.</p>
<p>&nbsp;</p>
<pre style='font-size:x-small'>
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   192   190   051    Pre-fail  Always       -       54689
</pre>

<p>&nbsp;</p>

<p style='margin-left:.25in'><b>ID#</b></p>

<p style='margin-left:.5in'>This ID for the attribute is
displayed as a decimal number in this report but other reports may display it
in its native hexadecimal format.</p>

<p style='margin-left:.25in'><b>Attribute Name</b></p>

<p style='margin-left:.5in'>The human readable description of
the ID#</p>

<p style='margin-left:.25in'><b>Flag</b></p>

<p style='margin-left:.5in'>This is a hexadecimal description
of the purposes of this attribute combined so they can be represented by a
number. For example is it for performance, error rates or pre-fail or some
combination of these and others.</p>

<p style='margin-left:.25in'><b>Value</b></p>

<p style='margin-left:.5in'>This is a normalized version of
the data that starts at its best possible value (like 200 for this attribute)
and then decreases as it gets worse (now 192 for this attribute).</p>

<p style='margin-left:.25in'><b>Worst</b></p>

<p style='margin-left:.5in'>The worst that the Value has ever
been.</p>

<p style='margin-left:.25in'><b>Threshold (THRESH)</b></p>

<p style='margin-left:.5in'>The threshold for the Value. Once
the Value goes below this, the drive will consider it to be FAILED for this
attribute and depending on the attribute (like this one) the whole drive will
be considered to be failing and warnings will be sent to backup and replace it.</p>

<p style='margin-left:.25in'><b>Type</b></p>

<p style='margin-left:.5in'>A human readable version of the
Flag value but not as detailed.</p>

<p style='margin-left:.25in'><b>Updated</b></p>

<p style='margin-left:.5in'>How often the attribute’s value is
updated.</p>

<p style='margin-left:.25in'><b>When Failed</b></p>

<p style='margin-left:.5in'>If there was a failure where the
value reached or went below the threshold value, the power-on lifetime is
displayed here (usually in hours )</p>

<p style='margin-left:.25in'><b>Raw Value</b></p>

<p style='margin-left:.5in'>The raw non-normalized value of
the attribute.</p>

<p><span>&nbsp;</span></p>
<p><span>&nbsp;</span></p>

<p >The attributes that you should pay careful attention to are
ID#s 1, 5 and 197 (01, 05, C5 in hexadecimal). These are the most common
attributes with problems that cause a recoverable disappearance of drives.</p>

<p style='text-indent:.25in'><b>ID#1 or 01 ‘<span>Raw Read Error
Rate’</span></b><span> is related to the frequency of errors
appearing while reading RAW data from a disk. Ignore the Raw Value and go by
the normalized Value. If it is decreasing and getting close to the threshold value then the drive can probably be
recovered by making an image of it (see <a href="http://fixit.litten.com/datarecoveryflowchart.htm#flow6" title="Making an image with ddrescue">&#8220;Making an image with ddrescue&#8221;</a> for how to make an image of a
failing drive) but it should then be
replaced after the data is retrieved from it.</span></p>

<p style='text-indent:.25in'><b>ID#5 or 05 ‘Reallocated Sector
Count’</b> is the quantity of remapped sectors. This is the number of ‘hard’
bad sectors that have been reallocated by the internal controls of the hard
drive. The hard drive has a number of sectors in reserve to replace these bad
ones. These are inaccessible sectors that the drive expects to be bad forever
which means they are most likely physically damaged. Data that was in those
sectors was probably lost for good. Modern hard drives should not have any. My
personal ‘rule of thumb’ is that if there are less than 10 of these (Raw Value
is less than 10) and after checking it periodically during use I find that the
number is not increasing, I then believe the drive to be trustworthy for future
use but continued monitoring of the value is recommended. That’s my personal
rule but I would not fault anyone who replaces a drive because there is just
one of these.</span></p>

<p style='text-indent:.25in'><b>ID#197 or C5 ‘Current Pending
Sector’ </b>is the quantity of sectors that are not able to be read but have
not been reallocated yet. These are ‘soft’ bad sectors because there is still a
chance that they will be successfully read. The way they typically become ‘hard’
bad sectors is when an attempt is made to write to them and is unsuccessful.
When this happens, they are removed from this attribute and added to ID#5. When
this happens a new sector is pulled from the reserve pool of sectors on the
hard drive and used to replace this one. Many programs proclaim that they can
repair bad sectors. What they often do is not really repair them. Instead they
force the drive to attempt to write to them and if they are unable to it forces
them to be reallocated with sectors from the reserve pool and to the computer
user, it appears as if the ‘soft’ bad sector has been repaired. In fact, the
data in the sector has been lost and it has been replaced with a new and
healthy sector. I typically treat this number the same as ID#05. My personal
‘rule of thumb’ is that if there are less than 10 of these (Raw Value is less
than 10) and after checking it periodically during use I find that the number
is not increasing, I then believe the drive to be trustworthy for future use
but continued monitoring of the value is recommended. That’s my personal rule
but I would not fault anyone who replaces a drive because there is just one of
these.</span></p>

<p><span>&nbsp;</span></p>

<p>Next in our report is the data from the S.M.A.R.T. data’s
error log and the results of any self-tests that have been performed. You can
identify if the errors have occurred recently by looking at the timestamp on
the error.</p>
<pre style='font-size:small'>
Error 58074 occurred at disk power-on lifetime:<b>10886 hours</b> (453 days + 14 hours)
</pre>
<p>In our case the most recent error occurred at 10886 power-on
lifetime hours and the report we ran was at 10887 power-on lifetime hours according to the value of attribute 09. </p>
<pre style='font-size:small'>
9 Power_On_Hours  0x0032 086   086   000  Old_age   Always  -  <b>10887</b>
</pre>
<p>So the error occurred within the last hour of it being powered on and is recent.</p>

<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<b>Common Error Codes in S.M.A.R.T. Error Log</b>
<ul><li>UNC &#8211; Uncorrectable Error</li>
<li>BSY – drive busy</li>
<li>ERR &#8211; The Last Result was an Error</li>     
<li>WRFT &#8211; Write Fault</li>
<li>IDNF- Sector ID Not Found</li>
<li>AMNF &#8211; Address Marker Not Found</li> 
<li>ABRT &#8211; Command Aborted</li>
<li>TONF &#8211; Track 0 not found</li>
<li>ECC &#8211; There is a problem reading from ECC and it does not match</li></ul>
</div>
<br />

<p>&nbsp;</p>
<pre style='font-size:x-small'>
SMART Error Log Version: 1
ATA Error Count: 58074 (device log contains only the most recent five errors)
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 58074 occurred at disk power-on lifetime: 10886 hours (453 days + 14 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 08 da da d7 ed  Error: UNC at LBA = 0x0dd7dada = 232250074

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  20 00 08 da da d7 0d 00      13:53:18.903  READ SECTOR(S)
  20 00 01 00 00 00 00 00      13:53:18.902  READ SECTOR(S)
  c6 00 00 da da d7 00 00      13:53:18.902  SET MULTIPLE MODE
  20 00 80 da da d7 0d 00      13:53:15.871  READ SECTOR(S)
  20 00 08 ba 78 da 0d 00      13:53:15.868  READ SECTOR(S)

Error 58073 occurred at disk power-on lifetime: 10886 hours (453 days + 14 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 80 da da d7 ed  Error: UNC at LBA = 0x0dd7dada = 232250074

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  20 00 80 da da d7 0d 00      13:53:15.871  READ SECTOR(S)
  20 00 08 ba 78 da 0d 00      13:53:15.868  READ SECTOR(S)
  30 00 08 ba 78 da 0d 00      13:53:15.864  WRITE SECTOR(S)
  40 00 08 ba 78 da 0d 00      13:53:15.864  READ VERIFY SECTOR(S)
  20 00 01 00 00 00 00 00      13:53:15.862  READ SECTOR(S)

Error 58072 occurred at disk power-on lifetime: 10886 hours (453 days + 14 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 05 d5 da d7 ed  Error: UNC at LBA = 0x0dd7dad5 = 232250069

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  20 00 08 d2 da d7 0d 00      13:53:12.988  READ SECTOR(S)
  20 00 01 00 00 00 00 00      13:53:12.988  READ SECTOR(S)
  c6 00 00 d5 da d7 00 00      13:53:12.988  SET MULTIPLE MODE
  20 00 80 d2 da d7 0d 00      13:53:09.796  READ SECTOR(S)
  20 00 08 b2 78 da 0d 00      13:53:09.793  READ SECTOR(S)

Error 58071 occurred at disk power-on lifetime: 10886 hours (453 days + 14 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 7d d5 da d7 ed  Error: UNC at LBA = 0x0dd7dad5 = 232250069

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  20 00 80 d2 da d7 0d 00      13:53:09.796  READ SECTOR(S)
  20 00 08 b2 78 da 0d 00      13:53:09.793  READ SECTOR(S)
  20 00 08 c2 da d7 0d 00      13:53:09.790  READ SECTOR(S)
  20 00 08 b2 78 da 0d 00      13:53:09.787  READ SECTOR(S)
  30 00 08 b2 78 da 0d 00      13:53:09.784  WRITE SECTOR(S)

Error 58070 occurred at disk power-on lifetime: 10886 hours (453 days + 14 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 07 cb da d7 ed  Error: UNC at LBA = 0x0dd7dacb = 232250059

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  20 00 08 ca da d7 0d 00      13:53:06.877  READ SECTOR(S)
  20 00 01 00 00 00 00 00      13:53:06.876  READ SECTOR(S)
  20 00 08 c2 da d7 0d 00      13:53:06.874  READ SECTOR(S)
  20 00 01 00 00 00 00 00      13:53:06.873  READ SECTOR(S)
  c6 00 00 cb da d7 00 00      13:53:06.873  SET MULTIPLE MODE

</pre>

<p>&nbsp;</p>
<p>Next we see the log of the results from any self-tests that have been run</p>
<pre style='font-size:x-small'>
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed: read failure       50%     10887         232252410
# 2  Extended offline    Completed: read failure       90%     10886         186194165
# 3  Conveyance offline  Completed: read failure       90%     10886         186194165
# 4  Short offline       Completed: read failure       90%     10886         186194165
# 5  Short offline       Completed: read failure       90%     10872         186178051
# 6  Short offline       Completed without error       00%         1         -
# 7  Extended offline    Completed without error       00%         1         -
# 8  Short offline       Completed without error       00%         0         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
</pre>

<p>&nbsp;</p>

<h2>1.3 S.M.A.R.T. Self-Tests</h2>

<p>Most S.M.A.R.T. capable drives have several self-tests that
you can ask them to perform. For example, in GSmartControl you can find and
execute the available tests on the PERFORM TESTS tab.</p>

<p><b>S.M.A.R.T. Self Tests (Not available on all drives)</b></p>

<p style='text-indent:-.25in'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><b>Conveyance Test</b></p>

<p style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span>Intended as a quick test to identify damage incurred during
transporting of the device from the drive manufacturer to the computer
manufacturer.</p>

<p style='text-indent:-.25in'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><b>Short Test</b></p>

<p style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span>Checks the electrical and mechanical performance as well as the
read performance of the disk. This is the test that you want to run. If it
fails, make an immediate image of the drive (see <a href="http://fixit.litten.com/datarecoveryflowchart.htm#flow6" title="Making an image with ddrescue">&#8220;Making an image with ddrescue&#8221;</a> for how to make an image of a
failing drive).</p>

<p style='text-indent:-.25in'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><b>Long Test</b></p>

<p style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span>A longer and more thorough version of the short self-test. It
scans the entire disk surface, with no time limit. <b>If the drive has a little
damage, this test may make it worse</b>. Do not run it until the important data
on the drive has been recovered and backed up elsewhere.</p>

<p style='text-indent:-.25in'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><b>Selective Test</b></p>

<p style='margin-left:1.0in;text-indent:-.25in'><span
style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;
</span></span>Some drives allow selective self-tests of just a part of the
surface.</p>

<p>&nbsp;</p>

<p>The drive in this example had to have an image made of it
(see <a href="http://fixit.litten.com/datarecoveryflowchart.htm#flow6" title="Making an image with ddrescue">&#8220;Making an image with ddrescue&#8221;</a> for how to make an image of a
failing drive) in order to recover the data from it. It was a successful
recovery but the drive was no longer trustworthy for continued use.</p>

<br /><br /><br />
]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/accessing-and-assessing-a-hard-drives-s-m-a-r-t-data/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Data Recovery Flowchart</title>
		<link>http://html5.litten.com/data-recovery-flowchart/</link>
		<comments>http://html5.litten.com/data-recovery-flowchart/#comments</comments>
		<pubDate>Mon, 17 Sep 2012 19:15:36 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[windows repair]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[undelete files]]></category>
		<category><![CDATA[undelete.recover lost files]]></category>
		<category><![CDATA[windows file recovery]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=1069</guid>
		<description><![CDATA[Data Recovery Flowchart Use this when the drive is still detected by the computer but the data on it has become inaccessible. Click any of the flowchart blocks for a more detailed explanation. If you need personal help from me go here]]></description>
				<content:encoded><![CDATA[<h2>Data Recovery Flowchart</h2>
<div id="tcolumn_how">
    Use this when the drive is still detected by the computer but the data on it has become inaccessible.<br /><br />
    <b>Click any of the flowchart blocks for a more detailed explanation.</b><br />
    </div>  
    <div style="background-color: rgb(255, 255, 255); padding: 10px; width: 90%; border-radius: 25px 25px 25px 25px; box-shadow: 10px 10px 25px rgb(213, 213, 213);" align="center">
    <br />
    <img src="http://fixit.litten.com/flowchart.jpg" usemap="#flow" border="0">
    <map name="flow">
      <area shape="rect" coords="83,9,454,178" href="http://fixit.litten.com/datarecoveryflowchart.htm#flow1">
      <area shape="rect" coords="1,171,220,475" href="http://fixit.litten.com/datarecoveryflowchart.htm#flow2">
      <area shape="rect" coords="313,184,546,470" href="http://fixit.litten.com/datarecoveryflowchart.htm#flow3">
      <area shape="rect" coords="96,499,442,652" href="http://fixit.litten.com/datarecoveryflowchart.htm#flow4">
      <area shape="rect" coords="1,662,237,1062" href="http://fixit.litten.com/datarecoveryflowchart.htm#flow5">
      <area shape="rect" coords="300,662,548,987" href="http://fixit.litten.com/datarecoveryflowchart.htm#flow6">
      <area shape="rect" coords="161,1095,392,1185" href="http://fixit.litten.com/datarecoveryflowchart.htm#flow7">
    </map>
    <br />
      <div id="box-footerMn">
           
      <div id="fleft">If you need personal help from me go <a href="http://fixit.litten.com/start.htm">here</a></div>
      <div class="spacer"></div>
      </div>
      </div>    
]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/data-recovery-flowchart/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows ‘File Recovery’ series : Part 6 Reading/Editing The Windows Registry From Outside of Windows</title>
		<link>http://html5.litten.com/windows-file-recovery-series-part-6-readingediting-the-windows-registry-from-outside-of-windows/</link>
		<comments>http://html5.litten.com/windows-file-recovery-series-part-6-readingediting-the-windows-registry-from-outside-of-windows/#comments</comments>
		<pubDate>Mon, 14 May 2012 22:13:01 +0000</pubDate>
		<dc:creator>James Litten</dc:creator>
				<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Windows File Recovery]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[registry editing]]></category>
		<category><![CDATA[windows file recovery]]></category>

		<guid isPermaLink="false">http://html5.litten.com/?p=838</guid>
		<description><![CDATA[Windows ‘File Recovery’ series Part 6 Reading/Editing The Windows Registry From Outside of Windows DISCLAIMER: These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I [...]]]></description>
				<content:encoded><![CDATA[<h2>Windows ‘File Recovery’ series<br />
Part 6 Reading/Editing The Windows Registry From Outside of Windows</h2>
<strong>DISCLAIMER:</strong><em> These examples use techniques that I actually employ in the real world to deal with real problems. They might be wrong or dangerous. They might be inefficient. If you try them yourself, it might cause damage or irreparable loss. I take no responsibility for anything you do based on my examples or the information that I provide here.</em><br />
<br />
In this series we&#8217;ll look at some real world examples of disastrous situations salvaged and made better again.<br />
<br />
<span style="color: #ff0000;"><strong>Caution</strong></span><br />
<span style="color: #ff0000;">Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.</span><br />
<br />
<span style="color: #ff0000;"> <strong>Caution</strong></span><br />
<span style="color: #ff0000;">Do not edit the registry directly unless you have no alternative. These techniques bypasses standard safeguards, allowing settings that can degrade performance, damage your system, or even require you to reinstall Windows. If you must edit the registry directly, back it up first.</span><br />
<br />
<p>
Most of the time you can use standard registry editing tools on a Windows computer that cannot boot into Windows. <br /><br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>If you are able to boot the machine into Safe Mode with Command Prompt</strong> then you can use the reg command<br />
Reg Command <br />
<a href="http://technet.microsoft.com/en-us/library/bb490984.aspx">http://technet.microsoft.com/en-us/library/bb490984.aspx</a><br />
<br />
<strong>Recovery Console Command prompt on Windows Vista /  7</strong><br />
You can run regedit.exe.<br />
You can also use the reg.exe command.<br />
<br />
<strong>Windows 8 Startup Repair Command Prompt</strong><br />
You can run regedit.exe.<br />
You can also use the reg.exe command.<br />
<br />
</div><br /><br />
I&#8217;m sure that there are other ways. Computers are always full of new surprises when it comes to breaking them.   
</p>
Then there is Windows XP<br />
<strong>Recovery Console Command prompt in Windows XP has no reg or regedit command.</strong><br />
<br />
<h2>Using <em>chntpw</em> as a Windows registry editor</h2>
Anyone who repairs consumer computers on a regular basis comes across this scenario sooner or later.<br />
<br />
Client has a Windows XP computer with a problem that can be easily repaired from the XP Recovery Console. You proceed to boot into XP Recovery Console and ask the client &#8220;Is there an administrator password to this machine?&#8221; and they respond with something like &#8220;I don&#8217;t think so&#8230;&#8221;.<br />
<br /><span id="more-838"></span>
You proceed to choose the Windows install listed in the Recovery Console and it asks you for an administrator password so you press enter as if there is no password and up pops &#8220;The password is not valid&#8221;<br />
<br />
This is how I first came to know the program <em>chntpw</em> (which I presume stands for Change NT Password). It allows you to modify the Windows registry from a Live Linux CD and change the password.<br />
<br />
It doesn&#8217;t just give you the ability to change that part of the registry. It can view and edit other parts that can help you get a damaged machine to boot such as from a partial removal of malware that can cause an orphaned or erroneous registry value that crashes the Windows boot process.<br />
<br />
Before we look at some examples, I just want to be sure that you saw the disclaimers.<br />
<br />
<span style="color: #ff0000;"> <strong>Caution</strong></span><br />
<span style="color: #ff0000;">Do not edit the registry directly unless you have no alternative. These techniques bypasses standard safeguards, allowing settings that can degrade performance, damage your system, or even require you to reinstall Windows. If you must edit the registry directly, back it up first.</span><br />
<br />
For our examples, we will use a PartitionMagic Live CD to boot the Windows machine into Linux and use the tools that are available on it to view/edit the Windows registry on the machine.<br />
You can find the iso file for creating a PartedMagic boot CD here<br />
<a href="http://partedmagic.com/doku.php?id=downloads">http://partedmagic.com/doku.php?id=downloads</a><br />
<br />
In real life situations, I only reach this point when it is the last thing to try before a repair-reinstall which can take a considerable amount of time and is fraught with potential pitfalls.<br />
As I open the terminal in Linux and start typing chntpw commands I feel a little like Commisioner Gordon picking up the BatPhone and calling Gotham City&#8217;s last hope for salvation.<br />
<br />

<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<strong>This means that&#8230;</strong><br />
<ul>
<li>The machine won&#8217;t boot into Windows XP safe mode or normal mode. </li>
<li>A System Restore is not an option or does not work.</li>
<li>The Last Known Good Configuration option does not work.</li>
</ul><br />
</div><br /><br />
<br />
<em>chntpw</em> is a console based tool that is included with the PartitionMagic Live CD that has a built-in registry editor which can be used to manipulate the Windows registry. To invoke the registry editor you have to specify the <code>-e</code> option with the name of registry hive file.<br />
<br />
Boot the Windows machine with the <a href="http://partedmagic.com/doku.php?id=downloads">PartitionMagic boot CD</a>.<br />
The button on the PartedMagic desktop in the lower left corner behaves like the START button on an XP desktop so we&#8217;ll call it START when we refer to it.<br />
<br />
Mount the disk that contains the registry hives.<br />
<strong>START&gt;SYSTEM TOOLS&gt;MOUNT-GTK</strong><br />
Click the mount button next to the drive that contains the Windows install that we will be working on. In our example it is <code>sda1</code> so this will mount it as <code>/media/sda1</code><br />
<br />
open a terminal window<br />
<strong>START&gt;ACCESSORIES&gt;LXTERMINAL</strong><br />
Go to the directory containing the registry hives (remember it is case sensitive)<br />
<code>cd /media/sda1/WINDOWS/system32/config</code><br />
<br />
<img src="http://html5.litten.com/images/reg/configlist.jpg" width="450"/><br />
<br />
Make a backup of the hive file that you will be editing<br />
<div style=" 
background-color: #F8F8F8;
padding: 10px;
width: 90%;
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
    -webkit-box-shadow: 10px 10px 25px #D5D5D5;
    -moz-box-shadow: 10px 10px 25px #D5D5D5;
    box-shadow: 10px 10px 25px #D5D5D5;
"><br />
<table align="center" width="85%">
<tr><td><strong>Registry Key Name</strong></td><td><strong>Hive Filename</strong></td></tr>
<tr><td>HKEY_CURRENT_USER</td><td>NTuser.dat</td></tr>
<tr><td>HKEY_LOCAL_MACHINE\SAM</td><td>SAM</td></tr>
<tr><td>HKEY_LOCAL_MACHINE\SECURITY</td><td>SECURITY</td></tr>
<tr><td>HKEY_LOCAL_MACHINE\SOFTWARE</td><td>SOFTWARE</td></tr>
<tr><td>HKEY_LOCAL_MACHINE\SYSTEM</td><td>SYSTEM</td></tr>
<tr><td>HKEY_USERS\DEFAULT</td><td>DEFAULT</td></tr>
</table>
<br />
</div>
<br />
We&#8217;re going to play with the software hive so lets make a backup copy of it before we do anything.<br /><br />
<code>cp software software.mybak</code><br />
<br />
Now we can edit it with <em>chntpw</em><br />
<br />
<code>chntpw -e software</code><br />
<br />
We are now in the simple registry editor. Typing ? shows the options available to us.<br />
<br />
<img src="http://html5.litten.com/images/reg/options.jpg" width="450"/><br />
<br />
To navigate to the key<br />
<strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows<br />\CurrentVersion\Run</strong><br />
type (Case sensitive and use forward slashes)<br />
<br />
<code>cd Microsoft\Windows\CurrentVersion\Run</code><br />
<br />
and type <code>ls</code> to list the values in the key<br />
<br />
Lets add a value that will cause Windows Calculator (calc.exe) to run when a user logs in.<br />
Type<br />
<code>nv ?</code><br />
<br />
to see a list of the values for the different types.<br />
<br />
<img src="http://html5.litten.com/images/reg/values.jpg" width="400"/><br />
<br />
For our value we can type<br />
<br />
<code>nv 1 test</code><br />
<br />
now if we type <br />
<br />
<code>ls</code><br />
<br />
we see our new value listed<br />
<br />
Now to edit the contents of the value we type<br />
<br />
<code>ed test</code><br />
<br />
and we are asked to enter our string which in our case is <br />
<br />
<code>c:\windows\system32\calc.exe</code><br />
<br />
Then you can see the new value by typing<br />
<br />
<code>cat test</code><br />
<br />
<img src="http://html5.litten.com/images/reg/cattest.jpg" width="350"/><br />
<br />
Press <strong>q</strong> to exit the program and it gives you the option to save the changes that you made.<br />
<br />
Now when you reboot into Windows, the calculator program will open when a user logs in.<br />
<br />
<img src="http://html5.litten.com/images/reg/calc.jpg" width="400"/><br />
<br />
This is a very sensitive technique and you should do one change at a time and reboot to make sure everything is working. If not, restore your backup by copying it (so you have it still if there is another mishap) and try again. I have had to do this before.<br />
<br />
I have never used <em>chntpw</em> with Windows XP 64-bit but I have successfully used it with Windows XP 32-bit, Windows 7 64-bit and Windows 8 Consumer Preview 64-bit.<br /><br />]]></content:encoded>
			<wfw:commentRss>http://html5.litten.com/windows-file-recovery-series-part-6-readingediting-the-windows-registry-from-outside-of-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
