OK so the problem started when I was playing a game and it crashed on a loading screen, I then could only boot into windows extremely slowly so I knew something was wrong.
Since then I have booted into safe mode and done a virus check and it found nothing, I had then done a start up repair multiple times and for one reason or another the system would then reboot just as the login screen is loading.
I have recently de fragmented the drive externally and run a slow disk check which found nothing. I've launched start up repair again which says it's unable to fix the problem and I can't boot into safe mode because it'll reboot.
I should also mention I was having problems with the drive a few weeks ago where I was getting different error messages before booting but I managed to sort that out. If a solution can't be found it would be safe to say the drive is failing.
Here is the bsod when I disabled automatic rebooting along with the startup repair error.
STOP: c00002e3 Security Accounts Manager initialization failed because of the following error: A device attached to the system is not functioning (presumably the hard drive)
Error Status: 0xc0000001. Please click ok to shutdown this system and reboot into safe mode, check the event log for more detailed information.
Problem event name: startuprepairoffline
problem event signature 1: 6.1.7600.16385
problem event signature 2: 6.1.7600.16385
problem event signature 3: unknown
problem event signature 4: 21200656
problem event signature 5: autofailover
problem event signature 6: 2
problem event signature 7: corruptvolume
intel dual core 2.2 @2.7
msi p965 neo mobo
1tb samsung HD
XFX GTS 250
Any help would be seriously appreciated.