"but it neads 2 run before boot as the pc will not boot up with the hd pluged in thanks"
Nothing runs before boot - boot is the very first thing the system does, or can do. It's booting that allows it to proceed to anything else.
If the PC won't boot with the drive plugged in, then there is nothing you or I will have that can test the drive.
If this isn't what you mean, please explain further.