標(biāo)題: hwclock 時鐘同步失敗 [打印本頁] 作者: yangsjxiao 時間: 2009-11-15 16:29 標(biāo)題: hwclock 時鐘同步失敗 安裝好hwclock命令,執(zhí)行出錯
然后用下面的命令查看,如下
#hwclock --debug
hwclock from util-linux-2.13-pre7
hwclock: Open of /dev/rtc failed, errno=19: no such file or directory
No usable clock interface found.
Cannot access the Hardware Clock via any known method.
然后我到/dev下看,有rtc設(shè)備,不知什么原因
高手們幫我解答一下啊
謝謝作者: chinese_ys 時間: 2009-11-16 22:01
你看看你的/etc/sysconfig/clock里hwclock的設(shè)定。
# Set to "-u" if your system clock is set to UTC, and to "--localtime"
# if your clock runs that way.
#
HWCLOCK="-u"作者: gugong 時間: 2009-11-20 14:15
最近剛升級到X64位linux系統(tǒng),用的centos 5,升級了內(nèi)核到2.6.26.8,但發(fā)現(xiàn)系統(tǒng)時間總是不對
#hwclock --debug
hwclock from util-linux-2.13-pre7
hwclock: Open of /dev/rtc failed, errno=19: no such file or directory
No usable clock interface found.
Cannot access the Hardware Clock via any known method.
#ll /dev/rtc*
crw------- 1 root root 10, 135 Jan 12 2009 /dev/rtc
crw------- 1 root root 254, 0 Jan 11 19:06 /dev/rtc0
嘗試升級內(nèi)核到2.6.28,不行;
使用網(wǎng)上提供的解決方式,重新編譯內(nèi)核時編譯選項:
Device Drivers;
* Real Time Clock;
* PC_style 'CMOS'
將Real Time Clock和其下的選項PC_style ‘CMOS’都直接編譯進內(nèi)核,但在我的嘗試中2.6.26/2.6.28都沒有成功;