Link to home
Start Free TrialLog in
Avatar of gerrymac1943
gerrymac1943Flag for Afghanistan

asked on

increase accuracy of the hwclock linux ubuntu pc when not connected to network

i am currently using the following commands to set the clock date & time using a network connection on a linux pc:

# dpkg-reconfigure tzdata
# ntpdate-debian
# /sbin/hwclock –systohc

The pc will be will not be connected to a network for a long period of time. Has anyone got suggestion on how to stop /slow the time drift in the PC clock time once the PC has been disconnected from the network?

Avatar of mcuk_storm
mcuk_storm
Flag of United Kingdom of Great Britain and Northern Ireland image

You are probably best having a look at this for some background and further info:
http://tldp.org/HOWTO/Clock-2.html

If it is a server and the time is critical you can get atomic clock cards or radio clock cards to go in the machine to provide a more accurate time. e.g. something like:
http://www.atomictimeclock.com/clockcard.php
Avatar of simoesp
simoesp

do you whant to stop time when network it's off or to fix time ?
Avatar of gerrymac1943

ASKER

i just want to keep the time as accurate as possible i.e. as if it was connected to a network . I've noticed that the time can drift by up to 1 hour after a week when disconnected from a network.
ASKER CERTIFIED SOLUTION
Avatar of simoesp
simoesp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks