Moving Data to a New Hard Drive in an Emergency

Yesterday I had to change my hard drive and had a few issues that I was able to fix.

The problems started in the morning when my wife called me and told me that the computer would not boot. We have been having trouble with our hard drive for a while now and I was able to fix each time by just reseting the PC. This time though the computer was not seeing the hard drive. Using tools and knowledge that I had I had to do the following:

Install new hard drive
First of all I had to install the new hard drive. I was able to do this by disconnecting my CDR and leaving myDVD drive, two old hard drives in the machine, plus a new 80 gig drive with a 16 meg cache. I was unsuccessful at loading Windows though as I kept getting an error as the Windows setup was starting, after loading the drivers I would get an error that it could not load the setup. I switched to my CDR from the DVD drive and had no problems.

Setup Windows
I successfully did a quick format of the new drive (thanks for that new feature Windows XP) and successfully loaded Windows XP although now I have my operating system on the E drive.

Rebuild hard drive partition table
After I booted to Windows I saw that my old drive was not showing up as a drive or a partition. If I reight clicked on the partition in disk Management it knew that the drive existed but could no longer find a partition on it. Windows Disk Management said that the drive was healthy, My first attempt was to create a partition but not to format the partition as I did not want to lose the data for good. I fought with this for a couple of hours as I did not back up lately and the wife would kill me if I lost all of her data. In the end I was able to use Test Disk from the Filesystem tools of the Dos Ultimate Boot Disk. It ends up that the partition table had a start but not an end and the program was able to fix this