For some time now I've been having problems with my ubuntu 14.04 installation on my assembled pc. The main component is the motherboard, an ASRock Q1900M Pro3, 4gb ram, and two pci sata controllers.
I use this computer as home server, the main functions are file sharing (samba), local web server (LAMP), bittorrent downloader (Tixati) and "muxing station" (because I need it, don't ask). On top of that I use for web browsing whenever I don't feel like I need to power on my main pc, which uses 3 time more electricity while idle.
I can't install the server version of ubuntu because Tixati would not work and browsing the internet and muxing would be an hard task. Also a desktop environment in general is way more usable than the command line.
I have 2 kinds of problems:
- the machine randomly stops working after a quite considerable time lapse being powered on and running (problems occur after about 24+ hours of uptime, sometimes even sooner). The freeze occurs most of the times when I'm not using directly the pc, but 2-3 time it froze while I was giving input. The effect is that the screen freezes to the last frame it processes (I guess) and ANY type of input is ignored. I also observed that it disconnects from the local network but the Ethernet LEDs still work, with the link green LED always on and the orange activity one blinking a few without any specific frequency (one may say randomly). From the dd-wrt router I can see that the host is disconnected and if I try to ping the pc I get 100% packet loss (on top of the samba share being down). The hard disk activity led also doesn't blink at all in this state. The only way I'm able to reboot the machine is the hard way (keeping the power button pressed). When I go to check the dmesg log file I can't find any suspicious entry before the freeze, last time it happened the last entry was crontab running an automatic job, but other times it was doing something else, like ufw blocking. The screen does never deactivate so I can see the last thing before it freezes; I've never seen any error messages of any kind, the only odd thing I noticed was that one time the screen was entirely grey, and I didn't leave it that way.
- To solve this problem I thought that maybe if I made it automatically reboot once a day using crontab would solve the problem, but it is here that I encountered the second problem I want to tell you about. The second problem is that most of the times crontab reboots the pc, it would shut it down successfully but it would fail the consequential boot, leaving the system hanging in a limbo between the end of the grub and the start of loading from hard disk to ram. It just stays there with a purple screen, not showing any messages, even if I use the "text" option (or deleting quiet splash) in the grub (yes, doing update grub after the changes to the file). The fun part is that from that state I have to shutdown the hard way, and when I turn it on again the boot sequence works just fine, the grub comes up, enters the selected option after 10 secs (start ubuntu normally) and the system boots with all the kernel messaged showing correctly and fast. I tried the repair boot tool automatic fix option, it worked for 4-5 automatic reboots but for some reason it won't work any more even if I run it again.
here is the boot repair initial analysis http://paste.ubuntu.com/12589606/
here is the dmesg log file http://paste.ubuntu.com/12632375/
- line 1192: system freeze forced reboot -> no errors logged
- line 2399: automatic reboot fail, system hangs between grub and loading files into ram -> no errors logged
- line 5423: manual reboot to install updates, system hangs between grub and loading files into ram -> no errors logged
gallery of my bios settings: working on it
video of the pc behaviour when in freeze state: working on it
video of the pc failing automatic reboot: working on it
let me know if you need additional informations. Thanks for your help.