红联Linux门户
Linux帮助

xp和Ubuntu10.04双系统xp时间显示不准问题

发布时间:2010-09-08 15:14:51来源:红联作者:ggccll77
我装了xp和Ubuntu10.04双系统(不是用虚拟机安装的),每次退出Ubuntu后再进入xp,xp的时间都会变掉,每次都要重新设定,找了很久都不知道原因!望高手帮忙解决!
*Ubuntu的时间一直是显示正确的
文章评论

共有 9 条评论

  1. sleeyoyo 于 2010-09-10 21:22:43发表:

    如果是双系统要关闭UTC时间吧
    把/etc/default/rcS文件中的“UTC=yes”改为“UTC=no”

  2. 137006200 于 2010-09-10 15:37:18发表:

    我装的是XP 和 fedora 13 ,时间也是不准啊!!也求解决办法

  3. lolo.tmp 于 2010-09-10 11:18:21发表:

    Usage: hwclock [function] [options...]

    Functions:
    --help show this help
    --show read hardware clock and print result
    --set set the rtc to the time given with --date
    --hctosys set the system time from the hardware clock
    --systohc set the hardware clock to the current system time
    --adjust adjust the rtc to account for systematic drift since
    the clock was last set or adjusted
    --getepoch print out the kernel's hardware clock epoch value
    --setepoch set the kernel's hardware clock epoch value to the
    value given with --epoch
    --version print out the version of hwclock to stdout

    Options:
    --utc the hardware clock is kept in coordinated universal time
    --localtime the hardware clock is kept in local time
    --rtc=path special /dev/... file to use instead of default
    --directisa access the ISA bus directly instead of /dev/rtc
    --badyear ignore rtc's year because the bios is broken
    --date specifies the time to which to set the hardware clock
    --epoch=year specifies the year which is the beginning of the
    hardware clock's epoch value
    --noadjfile do not access /etc/adjtime. Requires the use of
    either --utc or --localtime
    --adjfile=path specifies the path to the adjust file (default is
    /etc/adjtime)


    校时之后, 用hwclock --hctosys 就好了

  4. lolo.tmp 于 2010-09-10 10:59:25发表:

    我的红旗时间是经常比xp要慢, 怎么调都不行.

    # ntpdate pool.ntp.org
    # hwclock -w

    这样做了很多遍了. 就是不管用, date 显示时间 还是越走越慢. 没辙了

  5. liukevin 于 2010-09-10 00:50:33发表:

    我以前也是和你一样双系统,没有出现过这种现像。

  6. ggccll77 于 2010-09-09 08:46:02发表:

    我照着沙发的方法设置后再在teminal输入sudo hwclock --systohc,重启进入xp,时间还是不对,试了几次都是如此,
    算了,貌似不是什么大问题,不影响使用,就先不管他

  7. roeta 于 2010-09-08 16:25:00发表:

    同沙发

  8. ggccll77 于 2010-09-08 15:47:08发表:

    回家试试,先谢了

  9. yippee 于 2010-09-08 15:19:47发表:

    ubuntu 下设置时区为 +8 区 beijing CST 然后设置时间为当前时间,然后执行命令写入硬件:
    sudo hwclock --systohc