To the OP - when you say the machine "shuts down" after booting, do you mean the operating system instigates a proper shut down procedure, or the machine drops straight to a restart?
Have you checked the event logs? If you have multiple disc or disc controller errors in there, I would suspect either a crappy HDD or SATA cable, otherwise it does sound like a failing PSU.