|"WINDOW WAS UNABLE TO COMPLETE THE FORMAT". |
Assuming that you were trying to format the partition XP was installed on in Windows 7, you should have no problem doing that unless there's something wrong with the hard drive the XP partition was on.
Test your hard drive with hard drive manufacturer's diagnostics.
Seagate's SeaTools will test (almost) any brand of hard drive.
Do the long test.
The Dos bootable versions of SeaTools can test the hard drive when Windows will not load properly, or even when the drive has no data on it.
It the drive itself passes the test, any data problems on the drive can be fixed one way or another.