uptime / last reboot inconsistency

Joined
May 13, 2011
Messages
1
Reaction score
0
Points
1
So on my Macbook Pro 10.6.6, I see

$ who -b
reboot ~ Apr 6 20:43
-------------
$ uptime
7:04 up 36 days, 10:23, 9 users, load averages: 0.37 0.37 0.32
-------------
$ last reboot

wtmp begins Mon Apr 18 09:08
-------------
So, 'who -b' and 'uptime' are reporting correct values (i know last reboot was on apr 6), but 'last reboot is wildly off by 12 days --- what gives ??
 
Joined
Oct 10, 2004
Messages
10,345
Reaction score
597
Points
113
Location
Margaritaville
Your Mac's Specs
3.4 Ghz i7 MacBook Pro (2015), iPad Pro (2014), iPhone Xs Max. Apple TV 4K
hmmmm..that is odd.....

Then again, when I run last reboot on mine it says today (13 May) when I know it was actually a few days ago. Not just you.

EDIT: From This Page...

Tips & Warnings

Laptops and computers with "Sleep" and "Hibernation" modes may display inaccurate data if the "Sleep" and "Hibernation" modes are utilized frequently.

That explains mine....
 

bobtomay

,
Retired Staff
Joined
Dec 22, 2006
Messages
26,561
Reaction score
677
Points
113
Location
Texas, where else?
Your Mac's Specs
15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '14 1.8 i7 8GB 10.11; 21" iMac '13 2.9 i5 8GB 10.11; 6S
I don't know a whole lot about this stuff, but the last reboot command is not showing you any boot at all.

The wtmp merely shows the time the log started. If there are any reboots in the log, they would appear in a list above that.

As to why the log gets interrupted or restarts, don't have a clue, but remember reading something about it 3-4 years ago - maybe with 10.5.
 
Joined
Oct 10, 2004
Messages
10,345
Reaction score
597
Points
113
Location
Margaritaville
Your Mac's Specs
3.4 Ghz i7 MacBook Pro (2015), iPad Pro (2014), iPhone Xs Max. Apple TV 4K
I don't know a whole lot about this stuff, but the last reboot command is not showing you any boot at all.

The wtmp merely shows the time the log started. If there are any reboots in the log, they would appear in a list above that.

Yep. Mine shows the same thing which is odd. What we should see is This...

YourMac:~user$ last reboot
reboot ~ Tue Sep 22 12:52
reboot ~ Sun Aug 30 23:17
reboot ~ Sat Aug 29 01:12
reboot ~ Fri Aug 28 22:07

...or something like it....
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top