Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 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 at 5:53

Your Answer

 
discard

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.