From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 02:20:39 2004 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 3545816A4CE for ; Mon, 8 Mar 2004 02:20:39 -0800 (PST) Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id C16DB43D41 for ; Mon, 8 Mar 2004 02:20:38 -0800 (PST) (envelope-from marko@freebsd.org) Received: from freebsd.org (parish.gotadsl.co.uk [62.3.235.43]) by smtp.nildram.co.uk (Postfix) with ESMTP id 3B2F824E5BE for ; Mon, 8 Mar 2004 10:17:26 +0000 (GMT) Message-ID: <404C483C.3010507@freebsd.org> Date: Mon, 08 Mar 2004 10:17:32 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (Windows/20040303) X-Accept-Language: en-gb, en-us MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Wierd time 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, 08 Mar 2004 10:20:39 -0000 I'm completely baffled by this one. When FreeBSD shuts down/reboots it changes the system clock. It *always* sets the hours to 20 and changes the minutes and seconds (but I haven't worked out a pattern for that), but the date stays the same (see /var/log/messages below) although I once saw it keep the time and date correct, but set the year back *four* years(!) but that was when the correct time was 22:mm:ss. If you look at the extract from /var/log/messages below, the time changes on the third line but it _doesn't_ change the system clock at that point; if I go into the BIOS, or boot WinXP (the box dual boots), when it reboots then the time is still correct. However, the next time I boot FreeBSD (whenever that may be) all the boot messages in /var/log/messages have the same timestamp (the same (incorrect) one as when it last shutdown) until the end of the boot sequence when the timestamp jumps forward ~20 seconds (which reflects the time it takes to boot). It is during the boot that it sets the system clock. Since I can't find anyone else reporting this (in the mailing lists or searching on Google) I guess it is some strange interaction with my BIOS. I have seen WinXP do this *once* when it crashed with a BSoD (I've had several BSoDs though). The m/b is an Asus A7M266-D running dual Athlon MP2800+ CPUs with BIOS version 1011 beta 3. The fact that it is a beta BIOS (needed for the MP2800 CPUs) maybe related. Even so, FreeBSD is storing the corrupted time somewhere and using it to set the system clock at the next boot. FreeBSD 5.2-RELEASE #10: Tue Jan 13 19:36:15 GMT 2004 I have since u/g to 5.2.1 and still have the same problem which occurs with both the GENERIC kernel and my customized kernel. Can anyone shed any light on this at all please? Needless to say it causes problems, especially when it changes the clock by several years!!! Thanks. Regards, Mark ----------- begin /var/log/messages ----------- Feb 11 16:17:28 redshift reboot: rebooted by root Feb 11 16:17:28 redshift syslogd: exiting on signal 15 Feb 11 20:19:10 redshift syslogd: kernel boot file is /boot/kernel/kernel Feb 11 20:19:10 redshift kernel: boot() called on cpu#1 Feb 11 20:19:10 redshift kernel: Waiting (max 60 seconds) for system process `vnlru' to stop...stopped Feb 11 20:19:10 redshift kernel: Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped Feb 11 20:19:10 redshift kernel: Waiting (max 60 seconds) for system process `syncer' to stop...stopped Feb 11 20:19:10 redshift kernel: Feb 11 20:19:10 redshift kernel: syncing disks, buffers remaining... 3 3 Feb 11 20:19:10 redshift kernel: done Feb 11 20:19:10 redshift kernel: Copyright (c) 1992-2004 The FreeBSD Project. [There was ~1 hour before the reboot into FreeBSD - first booted WinXP] Feb 11 20:19:10 redshift kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Feb 11 20:19:10 redshift kernel: The Regents of the University of California. All rights reserved. Feb 11 20:19:10 redshift kernel: FreeBSD 5.2-RELEASE #10: Tue Jan 13 19:36:15 GMT 2004 Feb 11 20:19:10 redshift kernel: root@redshift:/usr/obj/usr/src/sys/REDSHIFT ........ Feb 11 20:19:10 redshift kernel: cd2 at ahc0 bus 0 target 5 lun 0 Feb 11 20:19:10 redshift kernel: cd2: Removable CD-ROM SCSI-2 device Feb 11 20:19:10 redshift kernel: cd2: 5.000MB/s transfers (5.000MHz, offset 16) Feb 11 20:19:10 redshift kernel: cd2: Attempt to query device size failed: NOT READY, Medium not present Feb 11 20:19:10 redshift kernel: Mounting root from ufs:/dev/da1s1a Feb 11 20:19:28 redshift login: ROOT LOGIN (root) ON ttyv0 ---------- end /var/log/messages -------------