Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The RTC remembers its time set, and how does the linux kernel gets this time from dev/rtc and set it as the linux time. In other words on boot up - when does kernel reads the rtc and updates its linux time.

share|improve this question
up vote 3 down vote accepted

Linux kernel has following option RTC_HCTOSYS to restore system time from RTC on startup.

If you say yes here, the system time (wall clock) will be set using the value read from a specified RTC device. This is useful to avoid unnecessary fsck runs at boot time, and to network better.

Another way is to use a startup script, that will use hwclock utility to set system time from RTC.

hwclock --hctosys
share|improve this answer
simply running the hwclock , syncs the rtc clock to that of the linux. – jebina Feb 4 '14 at 5:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.