LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1113|回复: 2

amd64Debian的时间设置问题

[复制链接]
发表于 2006-1-28 20:02:24 | 显示全部楼层 |阅读模式
我的BIOS时间是北京时间,我想使用的时间也是北京时间。我设置时区为上海。然后在终端设置时间为正确的时间。但是,当我启动之后,时间快了8个小时。搜索论坛发现应该是系统认为我的BIOS是UTC时间了。以前的帖子说编辑/etc/sysconfig/clock 文件但是我没有这个文件。我应该怎么办?

而且有下面的问题:
debian:~# hwclock --systohc --utc
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
debian:~#
debian:~# hwclock --debug
hwclock from util-linux-2.12p
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
No usable clock interface found.
Cannot access the Hardware Clock via any known method.
发表于 2006-1-29 08:47:53 | 显示全部楼层
内核启动加上参数noapictimer
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-29 11:51:33 | 显示全部楼层
Post by qyl1
内核启动加上参数noapictimer

谢谢,不过这样导致无法启动。

这是一个bug,好像只能编绎内核:
hwclockfirst.sh must run before modules are loaded [1], therefore, any
kernel which is foolish enough to have CONFIG_RTC=m will have errors in
hwclockfirst.sh, and the accompanying issues found in Bug#50572.

The good news is that hwclock.sh runs shortly after that, and will set
the time, providing pre-hwclockfirst.sh behavior.

Thanks to Adrian Bunk for the pointer

http://groups.google.com/group/l ... en#cc9a4f4dc3129445
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表