Open it up and make sure the fans are running when you start the computer.
Looks especially for a Power Supply fan (can see it from the back) and the CPU Fan.
Most computers shut down when they detect fans are slow or stopped (the fact that it was noisy probably means the bearings were worn ou and now the fan is ceased)
Astrophel at capitaltechmd.com, February 2009