I think it's best not to install package adjtimex along ntp as they try to do
the same thing (keep the system on time).
ntp server will indeed no set the time if it's way off. However, Setting the
time to a wild approximation (+/- 1 hour) of the current time is usually
enough for ntp to start.
Setting the time by hand can be done by running date as root with appropriate
params (see date --help) or using ntpdate at startup
once system time is set correctly, you can use hwclock to copy system time to
Hardware on shutdown, and read it back on boot.
Cheers,
Ernest.
On Friday 29 October 2004 07:07, Stephen Waters wrote:
OK, so if your system clock is way off and NTP doesn't work, try this
before blaming hardware:
1) delete /etc/adjtime
2) run /etc/init.d/hwclock.sh
3) run adjtimexconfig
4) run ntpdate <server>
5) run /etc/init.d/ntp-server start
Turns out my adjtime was way off due to a bad clock on the previous box
this hard drive was in.
Cheers,
-s