[ale] Fixing time error

James P. Kinney III jkinney at localnetsolutions.com
Mon Oct 21 11:30:59 EDT 2002


Step 1. Replace the bios battery!
#2 Add a line in rc.local that sets the system time from a good time
source. Mine is:

/usr/bin/rdate -s ntp1.csx.cam.ac.uk && /sbin/hwclock --systohc --utc

This sets system time from ntp1.csx.cam.ac.uk and then sets hardware
clock from system time.

Use the last part, /sbin/hwclock --systohc --utc , as part of a shutdown
script .

But replace the battery ASAP!

On Mon, 2002-10-21 at 11:24, Tomer Tishgarten wrote:
> I keep getting an error message (see below). I know it must be due to a 
> recent restart. During the process, the time within the BIOS was lost 
> (it looks like my battery on the motherboard is dead).  When I brough it 
> back up, I started it under the default time, which included 1980 as the 
> year.  And ever since that, my time is stuck though I've gone back in the 
> BIOS and updated it.  How do I fix this issue?
> 
> Thanks in advance for your help,
> Tomer
> 
> ---------- Forwarded message ----------
> Date: Mon, 21 Oct 2002 04:02:00 -0400
> From: Cron Daemon <root at tish.dynu.com>
> To: root at tish.dynu.com
> Subject: Cron <root at tish> run-parts /etc/cron.daily
> 
> /etc/cron.daily/logrotate:
> 
> error: bad year 1980 for file /var/log/messages in state file /var/lib/logrotate.status
> 
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
-- 
James P. Kinney III   \Changing the mobile computing world/
President and CEO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 This is a digitally signed message part




More information about the Ale mailing list