Re: Time Issue



Andreas wrote:
I had the same kind of problem here, it happened only sometimes and only
when I restarted the pc, never the first time after I switched it on. The
clock was off by 7 hours, and when I tried to correct if with yast, it had
set itself as soon as the window opened.

Ah. And that is clearly related to you HW time. From your header:
Date: Sat, 16 Sep 2006 22:21:35 -0700
See, if people explain how much the time difference is, it is a lot
easier to understand where the problem comes from and where it thus
should be repaired.

After changing the bootscript /etc/init.d/boot.clock the bug did not
reoccur. Here is the diff for the Suse 10.1 bootscript. I simply added a
short delay before the system time was set:

I asume that this will delay the booting of the system a bit. About a
second and a half.

--- boot.clock~ 2006-04-28 04:52:14.000000000 -0700
+++ boot.clock 2006-04-29 14:59:14.000000000 -0700
@@ -79,6 +79,7 @@
fi
/sbin/hwclock --adjust $HWCLOCK
rc_status
+ sleep 1.5
/sbin/hwclock --hctosys $HWCLOCK
rc_status
else

For those who don't understand what the above means, here a 'human
readable' translation.

1) open a terminal
2) become root with `sux -`
3) open /etc/init.d/boot.clock with your favorite editor
4) Look for the line "/sbin/hwclock --adjust $HWCLOCK"
6) Put "sleep 1.5" in the line just before it, no quotes
7) Save the file
8) Exit as root
9) close the terminal

So there. Oh and step 5 is : drink beer.

houghi
--
If God doesn't destroy Hollywood Boulevard, he owes Sodom and
Gomorrah an apology.
.



Relevant Pages

  • Re: NTP precision
    ... You also need to add half the root delay. ... worst case error due to clock frequency error integrated over the time ... > only through the currently selected peer chain back to its root. ...
    (comp.protocols.time.ntp)
  • Re: Cant boot 8.0-BETA4 from USB stick
    ... Another brand of memory sticks? ... I've been asking around about an option to delay before mounting root as ... The tree discovery needs to happen before the bus scan, and no amount of root delay tweaks will help that, except maybe accidentally by shifting timings. ...
    (freebsd-current)
  • Re: Clock delay
    ... > takes this delay progressively during the first two hours. ... > the system time right after it starts up, ... > before shutdown, and the BIOS time after shutdown. ... set the hardware clock from network time. ...
    (Fedora)
  • Re: Bootup time regression from 2.6.27 to 2.6.28-rc3+
    ... I discovered about 10 secs delay before mounting the root fs and running init ... Mounted root readonly. ... Freeing unused kernel memory: 332k freed ...
    (Linux-Kernel)
  • Bootup time regression from 2.6.27 to 2.6.28-rc3+
    ... I discovered about 10 secs delay before mounting the root fs and running init ... Mounted root readonly. ... Freeing unused kernel memory: 332k freed ...
    (Linux-Kernel)