Gentoo Archives: gentoo-user-ru

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-user-ru@l.g.o
Subject: Re: Re[2]: [gentoo-user-ru] clock
Date: Sat, 28 Jan 2006 15:59:13
Message-Id: 1138463983.19832.24.camel@localhost
In Reply to: Re[2]: [gentoo-user-ru] clock by "Kanogin A.A."
1 On Сбт, 2006-01-28 at 02:28 +0300, Kanogin A.A. wrote:
2
3 > На i815 - вообще на час вперед прыгают после перезагрузки :)
4 > Где почитать про данную фичу?
5
6 Я думаю вам надо удалить /etc/adjtime.
7
8 И вот пост из gentoo-user. Думаю он поможет частично разобраться.
9
10 From:
11 Benno Schulenberg
12 <benno.schulenberg@×××××.com>
13 Reply-To:
14 gentoo-user@l.g.o
15 To:
16 gentoo-user@l.g.o
17 Subject:
18 Re: [gentoo-user] Wrong time on
19 reboot. Not a CMOS battery problem.
20 Date:
21 Fri, 27 Jan 2006 22:25:33 +0100
22 (Сбт, 00:25 MSK)
23
24 Abhay Kedia wrote:
25 > Then, I shutdown the system and boot after a few hours. What I
26 > see is that Gentoo sets the system time to the same one at which
27 > I halted it. For example if I shutdown 4 hours ago at 14:00 hrs
28 > and boot at 18:00 hrs, it will still set the time to 14:00 hrs
29 > instead of the correct time.
30
31 Try running 'hwclock --show --debug', and run it again a bunch of
32 seconds later. Is the hardware clock ticking?
33
34 Here's a sample output:
35
36 # hwclock --show --debug
37 hwclock from util-linux-2.12r
38 hwclock: Open of /dev/rtc failed, errno=2: No such file or
39 directory.
40 Using direct I/O instructions to ISA clock.
41 Last drift adjustment done at 1138395601 seconds after 1969
42 Last calibration done at 1138395601 seconds after 1969
43 Hardware clock is on UTC time
44 Assuming hardware clock is kept in UTC time.
45 Waiting for clock tick...
46 ...got clock tick
47 Time read from Hardware Clock: 2006/01/27 21:04:32
48 Hw clock time : 2006/01/27 21:04:32 = 1138395872 seconds since 1969
49 Fri Jan 27 22:04:32 2006 -0.579761 seconds
50
51 If it is ticking , then set the hardware clock to the correct time
52 with 'hwclock --set --date=<thistime>', then throw away the
53 /etc/adjtime file. Throw it away, as it might be the adjusting
54 feature that thinks your clock is drifting a full hour per hour
55 (that is: ticks away two hours in one).
56
57 > # /etc/conf.d/clock
58 > CLOCK="local"
59
60 Do you need the "local" time thing? If Linux is the only OS on your
61 box it's easier to use UTC.
62
63 Your time zone is set correctly? Where is /etc/localtime linking
64 to?
65
66 Benno

Attachments

File name MIME type
signature.asc application/pgp-signature