From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 13:22:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFDC71065673 for ; Tue, 28 Oct 2008 13:22:24 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 439308FC1A for ; Tue, 28 Oct 2008 13:22:23 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id m9SDM30J053095; Wed, 29 Oct 2008 00:22:04 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 29 Oct 2008 00:22:03 +1100 (EST) From: Ian Smith To: Polytropon In-Reply-To: <20081028120023.39C04106577C@hub.freebsd.org> Message-ID: <20081028235448.B70117@sola.nimnet.asn.au> References: <20081028120023.39C04106577C@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org, geseeker@yahoo.com Subject: Re: odd problem, system clock stops while power-down X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 13:22:24 -0000 On Tue, 28 Oct 2008 12:46:58 +0100 Polytropon wrote: > On Tue, 28 Oct 2008 03:17:39 -0700 (PDT), Richard Smith wrote: > > How do i get around this so i wouldn't have to set the clock every > > time i boot into freebsd? and by the way, does freebsd use the > > CMOS clock? > > An idea would to use NTP to get the exact time from your > local atomic time dealer at system startup. :-) > > See ntpd and ntpdate for further information. Definitely the best advice. However it doesn't explain why his system apparently fails to retrieve the current date & time from CMOS on boot. Mine always have, though CMOS clocks rarely keep good time, so using NTP after network connection after boot I see initial corrections of several seconds usually .. still it's better than having all your log timestamps screwed after reboot until NTP does its thing. Richard: are you running UTC or local time in CMOS? If the latter, does the file /etc/wall_cmos_clock exist? cheers, Ian