A "corrupted" hard drive may be perfectly OK physically, but could have one
(or more) important files related to XP that are bad, or corrupted.
Thus, the drive may be OK for reading and even for writing, but it is not
good enough to run XP.
The simplest way to test the drive vs the operating system on that drive is
to boot the PC from a different operating system. If the drive were
formatted as FAT32, you could boot from a windows 98 or ME floppy.
Unfortunately, the drive is probably formatted as NTFS, which is the norm
for XP, so you need to boot with something that can read NTFS. My favorite
(free) different operating system is KNOPPIX, run from a "live" CD. Live
means that it runs directly from the CD, without installing anything on the
internal hard drive. By default you can only read internal hard drive, or
copy from them to external hard drives. That can be changed, but these
defaults make KNOPPIX safe to use.
KNOPPIX is available as one of two ISO image downloads. One is a CD-version
and the other is a DVD-version. The primary difference is that the DVD
contains a lot more applications programs. You your purpose, the CD-version
will suffice. Download, and use an option like burn-from-image to get the
ISO onto the CD. If you simply copy it, the CD will not be bootable.
KNOPPIX is available at:
http://www.knopper.net/knoppix/index-en.html
Other live CDs can be found at:
http://www.livecdlist.com/
To boot from a CD, you >>may<< need to change the boot order in the BIOS
setting. Basically, CD must be before internal hard drive in the boot
order. But, your PC may already be set to do that. So, just try booting
from the CD. If that is ignored, then read the motherboard manual, PC
manual, or go to the PC maker's support website for information on how to
change it to boot first from CD.
Once it starts booting from the CD, sit back and relax. As a first try,
accept all defaults. KNOPPIX usually does a good job of recognizing
hardware, installing drivers (into RAM, not to hard drive), etc. In a few
minutes you should be at a LINUX desktop level. Look for icons of hard
drives on the left side. They will be named something like "hda1" or
similar. If you see a hard drive icon, try double-clicking on it to open it
in a file manager. If it opens, the odds are good that you can copy file
from it to an external hard drive, pen drive, etc.
If KNOPPIX can not read the hard drive, then either it is physically bad, or
maybe the partition table is bad.
At this point you could download disk testing software from the support of
the hard drive maker (Western Digital in your case). It is often available
as an ISO image of a bootable CD. Make the CD, boot, and run diagnostics.
WARNING: avoid destructive tests, such as anything that sounds like
"format", "erase", "low level", etc. The difference between XP, KNOPPIX,
and disk makers software is that the latter can often "see" and test disks,
even if they are unformatted, have an unknown format, or are otherwise
inaccessible via an operating system. Unknown format would encompass a
defective partition table.
If you conclude that the disk is OK, but the partition table is bad (and
that may be more guessing than conclusive logic), there are programs that
can fix such problems. This "table" is nothing but a bunch of 1's and 0's,
but a very important set. Search the web for "partition recovery". This
article might be a good place to start:
http://www.ntfs.com/partition-recovery-concepts.htm However, if you are not
sure what you are doing, it might be better to get some professional help to
at least diagnose, and maybe repair the table.
Note, if the partition is visible, but not all files are listed, it could be
that the MFT (master file table) is corrupt. This can >>sometimes<< be
fixed via the XP command "CHKDSK drive_letter /R". To do this, the hard
drive must be connected to a machine running XP. However, a connection via
USB is sufficient.
One could also boot from a live XP CD, such as "Bart's", but that can take
some effort to create. Another live XP-based CD is called "the ultimate
boot CD for Windows"
http://www.ubcd4win.com/index.htm That also requires
the user to build a CD image, but is easier than a plain Bart's CD. At this
point you might ask why not just download a pre-made XP-based bootable CD?
Well, that would mean that someone, other than Microsoft, was effectively
giving away XP (or parts thereof), and would be a major violation of the XP
license. Microsoft would call this "piracy". In contrast, many LINUX
distributions are given away freely, and in many case one can also obtain
the source code, if desired.
Beyond CHKDSK, there are many programs than can search a hard drive for
files, even if the MFT is bad. Try a Google search on "file recovery". You
might also want to look at the "Major Geeks website", sub-category file
recovery.
http://majorgeeks.com/
If the disk is physically bad, and there is vital information on it, there
are professional services that for a high price >>may<< be able to recover
data by mounting the magnetic platter in a different disk.