View previous topic :: View next topic |
Author |
Message |
GreazyMF n00b
Joined: 24 May 2004 Posts: 11
|
Posted: Fri Dec 17, 2004 8:57 pm Post subject: Sharing XP and Gentoo on my system messes up system time. |
|
|
Hi all,
Just wondering if anyone else has had the same problem as me. I have a dual boot laptop (XP and 2.6.9-gentoo-r9). Whenever I boot into Gentoo after having been in my XP partition, my system clock is off by 2 or 6 hours.
I noticed that the time is off in XP when I first boot it up, but XP "corrects" itself.
I am in Minneapolis MN, USA. That is in the Central Standard Time Zone. I had made a link in /etc/localtime before I built the kernel like so:
Code: |
ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
|
However, that link isn't valid anymore. Maybe because I used KDE to adjust the time???
So, does anyone have any ideas how to stop this from happening? It isn't the end of the world, just annoying. Plus, if we could, it would be nice to fix it a la XP whereby it sees that the time is off when it boots up and corrects it.
Thanks,
--Greazy _________________ It wasn't easy being Greazy ....but it was interesting. |
|
Back to top |
|
|
nyteryda Guru
Joined: 26 Jul 2003 Posts: 337 Location: London
|
Posted: Fri Dec 17, 2004 9:03 pm Post subject: |
|
|
are you usually connected to the internet when you boot up ? because you could try using ntp
Which checks a servers time and automatically corrects your clock at boot time
you should also remake that link.
also is XP set to the correct time zone ? _________________
Code: | #include "forums.h"
int main() {while (bollox) postcount++;}
|
|
|
Back to top |
|
|
Taladar Guru
Joined: 09 Oct 2004 Posts: 458 Location: Bielefeld, Germany
|
Posted: Fri Dec 17, 2004 9:08 pm Post subject: |
|
|
If you don't want dual-boot to mess with your time you should change
to
in /etc/conf.d/clock. Windows stores the local time in the hardware clock while Linux stores the Time in UTC (a.k.a. GMT) per default so the hardware clock is not affected by daylight saving time changes. With the above mentioned change you can switch Linux to interpret the hardware time as local time instead. |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Fri Dec 17, 2004 9:41 pm Post subject: |
|
|
I always run ntpclient at startup to sync the clock on my machine with a known timesource.
emerge ntp
should get you going...
Erik _________________ 'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.' |
|
Back to top |
|
|
GreazyMF n00b
Joined: 24 May 2004 Posts: 11
|
Posted: Fri Dec 17, 2004 9:45 pm Post subject: |
|
|
Hey all,
Thanks so much for the fast responses. Unfortunately, I am not always connected to a network at bootup, so I don't think that ntp is "the" solution.
I am interested in the post by Taladar however, I don't have a file named /etc/conf.d/clock. Is that file part of a specific package?
Thanks,
--Greazy _________________ It wasn't easy being Greazy ....but it was interesting. |
|
Back to top |
|
|
Dgege n00b
Joined: 14 Jun 2004 Posts: 59
|
Posted: Fri Dec 17, 2004 10:52 pm Post subject: |
|
|
IT's actually in /etc/rc.conf
Try it. |
|
Back to top |
|
|
GreazyMF n00b
Joined: 24 May 2004 Posts: 11
|
Posted: Fri Dec 17, 2004 10:55 pm Post subject: |
|
|
Thanks Dgege,
I've made the change and will give it a test here shortly.
--Greazy. _________________ It wasn't easy being Greazy ....but it was interesting. |
|
Back to top |
|
|
Boris27 Guru
Joined: 05 Nov 2003 Posts: 562 Location: Almelo, The Netherlands
|
Posted: Fri Dec 17, 2004 11:29 pm Post subject: |
|
|
rc.conf will do the trick.
dont forget to remove /etc/adjtime after you change that value, and reboot.
should be working fine... (to think it took me the thick end of a year to figure this out....:S) _________________ we are microsoft, lower your firewalls and surrender your pc's. we will add your biological and technological distinctiveness to our own. your culture will adapt and service us. resistance is futile. |
|
Back to top |
|
|
ArsDangor Guru
Joined: 20 May 2003 Posts: 477
|
Posted: Sat Dec 18, 2004 3:49 am Post subject: |
|
|
Dgege wrote: | IT's actually in /etc/rc.conf
Try it. |
It's not anymore. If you updated your system recently, the next time you boot up you'll find a message telling you not to use /etc/rc.conf but /etc/conf.d/clock _________________ Cómo usar Portage correctamente |
|
Back to top |
|
|
mcdermottpa Tux's lil' helper
Joined: 06 Oct 2004 Posts: 95
|
Posted: Sat Dec 18, 2004 4:37 am Post subject: |
|
|
It's been awhile since I used windows but I was almost sure you could set it to use UTC as well. So I did some searching and found this gem that explains the problem. http://weblogs.asp.net/oldnewthing/archive/2004/09/02/224672.aspx . Every time someone asks me why I don't use windows any longer I think of things like this. _________________ Murphy's Military Laws:
#19.There is no such thing as an atheist in a foxhole.
#54. Killing for peace is like screwing for virginity. |
|
Back to top |
|
|
|