Hi I am Jim
How big is the new drive?
are your sata ports enabled in the bios? do you have the latest bios?
*** edit ***
just noticed you said sometimes.
Does the machine hang more when rebooting but boots better from a cold boot?
If so then thats most likely the old power supply problem. I had a fairly good OCZ (or so I thought) do exactly this as it failed to deliver enough juice to the 12v mainboard connector.