From owner-freebsd-questions@FreeBSD.ORG Mon Jan 17 16:28:05 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 349F016A4CE for ; Mon, 17 Jan 2005 16:28:05 +0000 (GMT) Received: from pd4mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC74343D54 for ; Mon, 17 Jan 2005 16:28:04 +0000 (GMT) (envelope-from flowers@users.sourceforge.net) Received: from pd2mr8so.prod.shaw.ca (pd2mr8so-qfe3.prod.shaw.ca [10.0.141.11])2004))freebsd-questions@freebsd.org; Mon, 17 Jan 2005 09:28:04 -0700 (MST) Received: from pn2ml8so.prod.shaw.ca ([10.0.121.152]) by pd2mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IAG00KY8Z2S19E0@pd2mr8so.prod.shaw.ca> for freebsd-questions@freebsd.org; Mon, 17 Jan 2005 09:28:04 -0700 (MST) Received: from procyon.nekulturny.org (S0106000c41b2b9a3.cg.shawcable.net [68.144.45.143]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IAG00IOGZ2S7P@l-daemon> for freebsd-questions@freebsd.org; Mon, 17 Jan 2005 09:28:04 -0700 (MST) Date: Mon, 17 Jan 2005 09:28:04 -0700 From: Danny MacMillan In-reply-to: <41D23B31.2030907@adelphia.net> To: Kevin Smith Message-id: <20050117162804.GA756@procyon.nekulturny.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <41D23B31.2030907@adelphia.net> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: system time mysteriously changes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 16:28:05 -0000 On Tue, Dec 28, 2004 at 09:05:53PM -0800, Kevin Smith wrote: > I'm having a problem with my system clock. The time will be fine for > a few days, then all of a sudden, I will notice that it has jumped > ahead by a number of hours (usually enough to change the day to the > next day). I can confirm that the time has changed on the system > cloth in the BIOs setup as well. This has happened once every few > days. > > I thought it may be a clock battery problem on the the motherboard, but > I am thinking that this is not the case as the minutes are usually OK - > it is just the hours/day that changes. > > Another idea that I had was that because I am dual booting windows (on > occasion) and freeBSD, windows may be the culprit, but I verified that > by rebooting windows, it is not resetting the system clock. If you told FreeBSD when installing that your system clock was set to UTC that is likely the problem. Windows assumes the system clock is set to local time. It's moving exactly 8 hours, which appears to be your time zone offset from UTC. Go into /stand/sysinstall and tell it your system clock is set to local time. I'm not sure where that is; there might even be command line utilities that will do it more easily but it should be easy to find. You'll probably have to reset the clock afterwards but I suspect that will be the end of your problems. > Any ideas on what could be wrong ? I also have ntpd running, which I > used as an attempt to keep the clock set correctly (in effort to find a > solution to the problem), but it does not appear to be able to handle > correcting the time. If the offset is too large ntpd won't by default be able to correct it. A good idea is to enable ntpdate at boot as well. ntpdate will sync the clock at boot, and ntpd will keep it synced thereafter. I have this in my rc.conf, in addition to my ntpd setup: ntpdate_enable="YES" ntpdate_flags="-b -v" You shouldn't have to specify a server in your case; ntpdate will read your existing ntp.conf for that. > How can I debug who/when is changing the time on the clock ? > > thanks, > -Kevin -- Danny