You are not logged in.

#1 2009-11-19 18:43:04

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

How to tell why a computer rebooted

Twice now I've had my desktop reboot for seemingly no reason, and I'd like to know why.  It happened yesterday and today. Both times I was not with it nor had I iterated with it in hours.

The first time it rebooted it failed to mount my root partition, claiming it was an invalid filesystem (or something). I just hit Ctrl-D to reboot and it rebooted, did an fsck, and everything was fine. This last time I went to the computer in the late morning and there was simply a login prompt awaiting; uptime showed that it happened at about 6:30 AM. We haven't had any power outages and there are no other users for the computer.

Is there a way to see at what time the computer is rebooted and, say, what process issued the command? I want to see if it's actually being rebooted or if it's randomly crashing. My nearly identical laptop install hasn't experienced any instability recently, though.

Offline

#2 2009-11-19 18:49:24

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: How to tell why a computer rebooted

Maybe you should look into

/var/log/messages.log
/var/log/daemon.log
/var/log/kernel.log

/var/log/Xorg.0.log will be overridden, afaik.

Last edited by MadTux (2009-11-19 18:50:04)

Offline

#3 2009-11-19 19:04:05

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: How to tell why a computer rebooted

use uptime to calculate the time of the reboot, then grep through /var/log/everything.log for just before the 'event'.   that's my best guess.

Offline

#4 2009-12-29 17:56:10

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: How to tell why a computer rebooted

Thanks for the replies.

For others with related questions, the "last" command shows recent logins and logoffs.

Anyway, never figured out what the problem was, and I haven't had any problems for the last month and a half.

Offline

Board footer

Powered by FluxBB