LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian & Windows dual boot, system time issue (https://www.linuxquestions.org/questions/debian-26/debian-and-windows-dual-boot-system-time-issue-424727/)

Vigacmoe 03-14-2006 08:49 AM

Debian & Windows dual boot, system time issue
 
I have a debian & windows dual boot system, everything seems to be fine except the system date in both os. Each time I logout from one os and boot into another, the system date jump several hour forward.
For example, if the system date is 12:00 when I logout from Windows, it will become, say, 22:00 after I boot into Debian.
My timezone setting is the same in windows and debian, is there a way to synchronize the system date in both os?
Thanks!

rickh 03-14-2006 09:04 AM

Depending on your hardware, there could be some different reasons for this, but a first step would probably be to install 'ntpdate'

dracae 03-14-2006 09:21 AM

The hw clock is assumed to be in UTC since it cannot store the offset. Windows has not concept of this, it sets the hw clock to local time. To work around this issue, make sure that the hw clock is set to local time and change UTC=yes to UTC=no in /etc/default/rcS

lestoil 03-14-2006 01:22 PM

That same time problem started for me when I upgraded Sarge to Etch with 2.6.12 kernel. It was very frustrating because no offered solution worked. Neither Kanotix nor Mepis nor Sarge ever had problem. Then after several weeks my upgrading kernel to 2.6.14 and system to Etch/Sid resolved time errors. Cheers.

Vigacmoe 03-14-2006 11:59 PM

Thanks for the replies. :)

Quote:

Originally Posted by dracae
make sure that the hw clock is set to local time and change UTC=yes to UTC=no in /etc/default/rcS

The hwclock is set to local time, and the value of UTC in /etc/default/rcS is "no". But still, the problem remain.

Quote:

Originally Posted by lestoil
Then after several weeks my upgrading kernel to 2.6.14 and system to Etch/Sid resolved time errors. Cheers.

My system is Sid, and my kernel is 2.6.15.

Quote:

Originally Posted by rickh
Depending on your hardware, there could be some different reasons for this, but a first step would probably be to install 'ntpdate'

You mean get time from internet servers? But I don't have a constant internet connection available.

rickh 03-15-2006 12:08 AM

It helps if we know a little bit about your system. Is it a 64-bit ... smp ... those hardware configurations are known to have time related idiosyncracies.

Vigacmoe 03-15-2006 10:37 PM

No, rickh, it's an old pc, not a 64-bit system.
cpu: p4 2.66 northwood
mainboard: msi 6533e

dracae 03-15-2006 11:01 PM

It would help to know where the clock skew is coming from
boot bios -> set time
boot windows -> check time
boot bios -> check time
boot debian -> check time
boot bios -> check time

ypsiliur 08-31-2006 12:14 AM

Maybe it is bugs.debian.org/cgi-bin/bugreport.cgi?bug=346342

(sorry for the incomplete url but i am not allowed to add links to other sites :( )

see also man 5 rcS

when it is that problem you just should copy your zoneinfo file under /usr/share/zoneinfo to /etc/localtime

Greetz Stefan


All times are GMT -5. The time now is 05:52 PM.