It sounds like the hard drive is not working. Perhaps the circuitry is fried, and that's why it only appears sporadically.

You weren't very clear about the error messages that Windows gives you. What exactly did it say? Also, what is X51L?

I can't suggest much right now, but, if the drive turns out to be dead, you'll need to call the drive manufacturer (Toshiba, in your case).