APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > Linux Articles > Fedora time bug
Printer Friendly Version




Linux Section

Fedora time bug


The question of setting time comes up frequently. Setting the timezone and the system clock can be confusing, particularly if the machine is dual boot. Nowadays I don't see too many of those (a sign that Linux has grown up enough or just that it's cheap enough to run separate machines?), so the answer is usually simple: set the hardware clock to UTC, run ntpd and set your timezone correctly. But for those who want to understand how everything works, http://www.tldp.org/HOWTO/Clock-2.html has all the details. http://www.linuxsa.org.au/tips/time.html is also a useful summary.

So when a local reseller called recently saying he couldn't get a Fedora Core 4 box to hold time upon reboot, I assumed he just didn't have things set right and referred him to the docs.

I was wrong. The next thing I heard from the reseller was that he had found a fix.












Apparently there is a current bug with some Intel motherboards: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144894. To fix, you don't use UTC on the hardware clock, and you add CLOCKFLAGS=--directisa to the /etc/sysconfig/clock file.

I'm not sure where he found that, and am actually surprised that he did. Googling for anything time related turns up thousands of "hwclock" man pages and duplicates of the LDP docs; it's hard to sort through all that and find a problem like this. The final comment he had was:

All is working fine now.  I think the only problem is that when
daylight savings hits, the customer will have to update the bios
and the Linux date separately.
 

Technorati tags:
If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

4 comments




More Articles by Anthony Lawrence - Find me on Google+



Click here to add your comments





Wed Dec 7 14:54:47 2005:   BigDumbDinosaur


I think the only problem is that when daylight savings hits, the customer will have to update the bios and the Linux date separately.

Huh? UTC has no daylight savings time concept, so why would the CMOS clock have to be changed? The switch from standard to daylight and back is something that the kernel would handle.



Wed Dec 7 14:59:03 2005:   TonyLawrence

gravatar
But it's not set to UTC with this fix.





Thu Dec 8 17:15:19 2005:   BigDumbDInosaur


Oops! Guess that part of the story didn't sink in. <Sheepish...er...dinosaurish Grin>



Tue Mar 6 04:41:18 2007:   anonymous


I am having this same problem on my machine here, not intel. I came to the same conclusion independently to put CLOCKFLAGS=--directisa in /etc/sysconfig/clock.

For some reason the /dev/rtc is not working on FC6 for some machines. I noticed that when i loaded an older kernel with the "rescue disk" that hwclock works fine. I think this is a real bug that has not bubbled to the surface yet.

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



ad

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide




 I sell and support
 Kerio Mail server
pavatar.jpg

This post tagged:

       - Linux
       - Unix




Unix/Linux Consultants

Skills Tests

Guest Post Here