I have a rpi running as a home backup server. It used to work fine, had an uptime of months, but ever since rebuilding it a few weeks ago with the latest raspbian, it has started dropping off the network, and when I go and look at it, it only has the red power light on. Sometimes (I have no idea what triggered it), it came back.
In trying to figure out the problem, I have set up a crontab that outputs "uptime" to a text file. Having this cron job on seems to wake the box up when it falls asleep, but it still falls asleep: since adding the cron job (12h ago) it stayed up for 5h, and then seems to have fallen over regularly, rebooting 6 times over the next c6h. But it's not after a regular time: the longest it has reached is 1:45, whereas another time it rebooted after just 20m.
I found this question that I originally thought was related:
How do I disable suspend mode?
But I don't think it is now, for two reasons: I am not connecting via wifi (and no wifi adaptors are attached), and I am not running X at all. I ran the xset commands in the last answer anyway, out of desperation, but it made no difference.( Other info:
- I have a Seagate Central mounted via CIFS/SMB (but I would not recommend them!) - this is the only thing that has changed since the set up worked perfectly, but I find it hard to believe this is the problem. Maybe I'll unmount it and see if it helps.
- I have a USB hard drive plugged in
- It's plugged into my router via a homeplug
Anyone any idea what might be going on? Could it be a bad SD card? I think I've tried two. What can I run to see if it is that?