could the sata controller died maybe?
dont think so--though anything is possible
memtest probably 3 passes or so
usually errors show really quickly
though some people leave it running overnight
my thoughts would be either memory--graphics card or psu
if it was a software fault then ubuntu should have ran ok