What do you mean

"it'll run for a while then just shutdown."

Will it run for a few minutes, a few hours, a few days? What are you doing when it shuts down?

Other solutions could be: "secured virtual memory" problem'' (uncheck it)''

Not enough free space on the HD

FileVault acting up

N.