On 27 January 2006 17:28, Abhay Kedia wrote: > Hello Everyone, > > I am facing a very annoying problem with my system clock. Here is what is > happening. > > I manually set correct time using sites like worldtimezone.com. Then, I > shutdown the system and boot after a few hours. What I see is that Gentoo > sets the system time to the same one at which I halted it. For example if I > shutdown 4 hours ago at 14:00 hrs and boot at 18:00 hrs, it will still set > the time to 14:00 hrs instead of the correct time. > > The CMOS battery is fine. I can say this because if I enter the BIOS (after > 4 hours reboot) it shows the correct time. I start a Live CD, it shows the > correct time as well, but when I start Gentoo it sets the wrong system time > or as mentioned in example: "4 hours back". It writes the time it was > shutdown on, over the BIOS Clock instead of reading from it. How can I > solve it? How can I force Gentoo to read from the BIOS Clock at the time of > boot, instead of writing it. If it helps, here is my /etc/conf.d/clock. > > --------------------------------- > # /etc/conf.d/clock > CLOCK="local" > CLOCK_OPTS="" > CLOCK_SYSTOHC="no" (have tried both yes and no) > SRM="no" > ARC="no" > ---------------------------------
Your system has two different clocks, the system clock which is software and the hardware clock which is, well, hardware. After adjusting your system clock with "date" try this: "hwclock -w. Does that solve the problem? If so, you are set. If not so, what is your timezone (in real life)? And what is the timezone in your gentoo setup set to? That is, what is /etc/localtime pointing to? Do they match? Is TZ set in your environment? If so, unset it and let /etc/localtime do the job. > > I am not using ntp or any other such softwares because I don't have an all > time working Internet Connection. Once your clocks are sorted out, you can still use ntpdate to synchronise your system clock with a time server whenever you go online. Uwe -- Unix is sexy: who | grep -i blonde | date cd ~; unzip; touch; strip; finger mount; gasp; yes; uptime; umount sleep -- gentoo-user@gentoo.org mailing list