I had a machine do that. Keep in mind that my encounter does not mean it's the same issue. In my case the hard drive had begun to fail.

-> Your post about "managed to get it working" sounds like there are issues with this machine. Here on a good Mac I just load the OS from the DVD and it smiles.