解决Ubuntu与Windows双系统的时间不同步问题

在双系统下。,进入完Ubuntu后再进XP,XP的时间慢了8个小时,Ubuntu的时间是没错的。

Ubuntu系统使用的是UTC时钟(其实安装是可以选择的),如果你在安装时选择了UTC的,那么Ubuntu会把BIOS时间当作UTC标准时间然后根据你选的时区来调整系统时间。

但是Windows把BIOS时间当作系统时间。所以时间总是相差1个时区。

解决办法:

将ubuntu下的UTC标志置为no.

在终端执行命令 :

sudo vi /etc/default/rcS

文件内容如下 :

#
#
/etc/default/rcS
#
#
Default settings for the scripts in /etc/rcS.d/
#
#
For information about these variables see the rcS(5) manual page.
#
#
This file belongs to the "initscripts" package.

TMPTIME
=0
SULOGIN
=no
DELAYLOGIN
=no
UTC
=yes
VERBOSE
=no
FSCKFIX
=no
将之改为UTC=no即可

posted @ 2011-02-24 19:02  ARVision  阅读(276)  评论(0编辑  收藏  举报